Completed email not sending to customer
-
Hi,
I have setup my completed email slightly differently, as I need it to only go to our shipping department once the payment has been confirmed (so the New Order email is not suitable). I have got this code in functions.php/*Send email on completion*/ add_filter( 'woocommerce_email_recipient_customer_completed_order', 'your_email_recipient_filter_function', 10, 2); function your_email_recipient_filter_function($recipient, $object) { $recipient = $recipient . 'info@hempfarm.co.nz, kathy@e-pack.co.nz, info@wholesalehemp.co.nz,'; return $recipient; }Weirdly, the first address (info@hempfarm.co.nz) also never gets the email, so I just use it as a placeholder. However, I have now found that the customer no longer gets their email, although we get it just fine. Can I add a hook to this code to ensure they do, or do you have another suggestion?
FYI, I also have the template customer-completed-order.php copied into public_html/wp-content/themes/shop-isle-child/woocommerce/emails so I could add some text to the email.
In the future, I would love to see a “Recipients” field for the completed email under “Settings” in the WordPress Dashboard.
### WordPress Environment ### Home URL: http://wholesalehemp.co.nz Site URL: http://wholesalehemp.co.nz WC Version: 2.6.14 Log Directory Writable: ✔ WP Version: 4.7.2 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ✔ Language: en_NZ ### Server Environment ### Server Info: Apache PHP Version: 5.6.22 PHP Post Max Size: 512 MB PHP Time Limit: 30 PHP Max Input Vars: 1000 cURL Version: 7.38.0 OpenSSL/1.0.1e SUHOSIN Installed: – MySQL Version: 5.6.35 Max Upload Size: 512 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 2.6.14 : woocommerce_sessions: ✔ woocommerce_api_keys: ✔ woocommerce_attribute_taxonomies: ✔ woocommerce_downloadable_product_permissions: ✔ woocommerce_order_items: ✔ woocommerce_order_itemmeta: ✔ woocommerce_tax_rates: ✔ woocommerce_tax_rate_locations: ✔ woocommerce_shipping_zones: ✔ woocommerce_shipping_zone_locations: ✔ woocommerce_shipping_zone_methods: ✔ woocommerce_payment_tokens: ✔ woocommerce_payment_tokenmeta: ✔ ### Active Plugins (15) ### Advanced CSS Editor: by Hardeep Asrani – 3.0 BAW Login/Logout menu: by Juliobox – 1.3.3 Spam Protection by CleanTalk: by СleanTalk – 5.58.1 Easy WP SMTP: by wpecommerce – 1.2.3 PayPal for WooCommerce: by Angell EYE – 1.3.3 Peter's Login Redirect: by Peter Keung – 2.9.1 Woocommerce Advanced Shipping: by Jeroen Sormani – 1.0.9 WooCommerce Min/Max Quantities: by WooCommerce – 2.3.15 WooCommerce Discounts Per Payment Method: by Claudio Sanches – 2.3.0 WooCommerce Wholesale Pricing: by Danyo Borg – 2.1.4 WooCommerce Xero Integration: by WooThemes – 1.7.5 WooCommerce: by WooThemes – 2.6.14 WooCommerce Helper: by WooCommerce – 1.7.2 WP Approve User: by Konstantin Obenland – 2.4.0 WP Rocket: by WP Media – 2.8.14 ### Settings ### Force SSL: – Currency: NZD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 ### API ### API Enabled: ✔ ### WC Pages ### Shop Base: #4 - / Basket: #5 - /cart/ Checkout: #6 - /checkout/ My Account: #7 - /my-account/ ### Taxonomies ### Product Types: external (external) grouped (grouped) simple (simple) variable (variable) ### Theme ### Name: ShopIsle Child Version: 1.1.2 Author URL: https://themeisle.com Child Theme: ✔ Parent Theme Name: Shop Isle Parent Theme Version: 2.2.0 Parent Theme Author URL: http://themeisle.com WooCommerce Support: ✔ ### Templates ### Overrides: shop-isle-child/woocommerce/emails/customer-completed-order.php
The topic ‘Completed email not sending to customer’ is closed to new replies.