=== CC Email Manager for WooCommerce === Contributors: aisimpleplugin Tags: woocommerce, cc-email, carbon copy, notifications, order emails, Requires at least: 6.0 Tested up to: 6.9 WC tested up to: 10.7 Requires PHP: 7.2 Stable tag: 1.0.3 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Add CC (carbon copy) emails per customer and automatically send WooCommerce notifications to additional recipients based on selected order statuses. == Description == **CC Email Management for WooCommerce** allows store owners to assign **one or two CC email addresses per customer**, and automatically send WooCommerce order emails to these additional recipients depending on the order status. This plugin is especially useful for: - **B2B companies** where invoices or order updates must be sent to accounting or team members - **Multi-user workflows** in organizations - **Wholesale accounts** that want to receive notifications at multiple addresses - **Store owners** who need simple, reliable CC email management per customer == ✨ Key Features == - Add **CC Email 1** and **CC Email 2** per customer - Choose exactly **which order statuses** trigger CC notifications - Supports all official WooCommerce statuses: *Pending payment, Processing, On hold, Completed, Cancelled, Refunded, Failed* - Automatically hides CC Email 2 settings when unused - Clean, simple UI integrated directly into the WordPress User Profile - Fully compatible with WooCommerce email templates - Lightweight and optimized – no impact on performance == 🎯 Perfect For == - B2B stores - Wholesale shops - Companies with accounting departments - Admins who need multiple recipients for order emails - Those who want per-user CC configuration == 🛡️ Secure and Reliable == - Follows all WordPress coding standards - Uses sanitized and validated email fields - Includes nonce verification for secure profile editing - Works seamlessly with all WooCommerce email systems --- == Installation == 1. Upload the plugin files to `/wp-content/plugins/cc-email-management-for-woocommerce/` 2. Activate the plugin through the **Plugins** menu in WordPress 3. Edit any customer profile under **Users → Edit User** 4. Enter one or two CC email addresses 5. Select the WooCommerce order statuses that should trigger CC notifications 6. Save the profile — you're done! --- == Frequently Asked Questions == = Does this plugin work with all WooCommerce email templates? = Yes. CC recipients are added to the native WooCommerce email header system. This ensures full compatibility with custom templates and third-party email plugins. = Does it work for B2B and wholesale customers? = Absolutely. This plugin is built for B2B workflows where multiple people need order emails. = Can customers manage their own CC emails? = No. Only administrators can manage CC recipients, ensuring correct and secure configuration. = What happens if CC Email 2 is empty? = The entire CC Email 2 settings block remains hidden automatically. = Does it work with custom order statuses? = Yes — all official WooCommerce statuses are supported. Additional statuses from third-party plugins may or may not appear depending on how they are registered. = Does this plugin modify email templates? = No. It only adds CC headers, keeping templates untouched. --- == Screenshots == 1. **Customer profile settings** — Add CC Email 1 and CC Email 2 2. **Order status selection** — Choose which statuses send CC notifications 3. **Automatic CC injection** — WooCommerce emails with additional recipients --- == Changelog == = 1.0.3 = * Tested up to WordPress 7.0 = 1.0.2 = * Fixed: Corrected wording in the pending payment email notice description. = 1.0.1 = * Improved: Converted `AISP_CC_Email_Settings_Page` from standalone functions to a dedicated class for better consistency across the plugin codebase. * Improved: Centralized all class instantiation in the main plugin file. `AISP_CCEmail_User_Column` no longer self-instantiates at the bottom of its file. * Fixed: Removed duplicated `$aisp_cc_meta_keys` array declaration in `uninstall.php`. * Improved: Translated French inline comments to English in `class-aisp-cc-email-tools.php` for better code consistency. * Fixed: CSV import now validates imported order statuses against `wc_get_order_statuses()`, and invalid values are discarded. * Improved: CSV export now processes users in paginated batches of 200 to reduce memory usage on large sites. Users without CC email data are automatically skipped. = 1.0.0 = * Initial release --- == Upgrade Notice == = 1.0.1 = This update improves plugin structure, optimizes CSV import/export performance on large sites, and fixes minor data handling issues. No action required. = 1.0.0 = Initial release — safe to install and use on all WooCommerce shops.