email-notifications

Adding recipients to Woocommerce email notifications based on product variation term

旧街凉风 提交于 2021-02-08 07:32:34
问题 I have created a Woocommerce plugin and require it to do two things: Send a notification message to a specific email address, based on which product variation is in the cart. The email must contain only the relevant product, and not products that contain other attributes. For example: Product A has an Attribute named Chef, with chef-one and chef-two as variable Terms. The user may select Product A from chef-one or chef-two. If the user selects Product A from chef-one, a notification email

Customizing email subject with dynamic data in Woocommerce [closed]

懵懂的女人 提交于 2021-02-08 03:34:45
问题 Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Improve this question Not a duplicate of Display order total with and without VAT in Woocommerce's order email notification. How can I customize the subject of the E-mail, (not the body. I know how to edit the variables in the body, but the same variables don't work in the subject for some reason). So

Customizing email subject with dynamic data in Woocommerce [closed]

那年仲夏 提交于 2021-02-08 03:34:31
问题 Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Improve this question Not a duplicate of Display order total with and without VAT in Woocommerce's order email notification. How can I customize the subject of the E-mail, (not the body. I know how to edit the variables in the body, but the same variables don't work in the subject for some reason). So

Adding custom text after order total in Woocommerce orders and emails

拟墨画扇 提交于 2021-01-28 07:55:41
问题 I am using this to display a custom text for customers from specific countries on the cart and checkout page: add_filter( 'woocommerce_cart_totals_order_total_html', 'custom_total_message_html', 10, 1 ); function custom_total_message_html( $value ) { if( in_array( WC()->customer->get_shipping_country(), array('US', 'CA') ) ) { $value .= '<small>' . __('My text.', 'woocommerce') . '</small>'; } return $value; } This does however NOT add the custom text after the order totals in the plain order

Add the order total weight to WooCommerce new order email notification

大兔子大兔子 提交于 2021-01-27 17:43:52
问题 Is it possible to show the total weight for an order in the WooCommerce "New order" email notification (for admins)? 回答1: Here is that custom function hooked in woocommerce_email_after_order_table action hook, that will show on "New order" email notification the total weight add_action('woocommerce_email_after_order_table','show_total_weight', 10, 4); function show_total_weight( $order, $sent_to_admin, $plain_text, $email ){ if ( 'new_order' != $email->id ) return; $total_weight = 0; foreach(

Custom action missing from WooCommerce Order actions Metabox dropdown

前提是你 提交于 2020-12-26 04:52:18
问题 With the help of this page I've added an additional email to the WooCommerce emails. I wanted it te be a manual email that I can send to the customer, but it's not showing up in the order in the dropdown list of emails to send. I'm guessing I'm missing something, but I don't know what. This is de code of the plugin I use: <?php /** * Plugin Name: WooCommerce Custom Order Email * Plugin URI: http://www.skyverge.com/blog/how-to-add-a-custom-woocommerce-email/ * Description: Demo plugin for

Custom action missing from WooCommerce Order actions Metabox dropdown

蓝咒 提交于 2020-12-26 04:51:21
问题 With the help of this page I've added an additional email to the WooCommerce emails. I wanted it te be a manual email that I can send to the customer, but it's not showing up in the order in the dropdown list of emails to send. I'm guessing I'm missing something, but I don't know what. This is de code of the plugin I use: <?php /** * Plugin Name: WooCommerce Custom Order Email * Plugin URI: http://www.skyverge.com/blog/how-to-add-a-custom-woocommerce-email/ * Description: Demo plugin for

Custom action missing from WooCommerce Order actions Metabox dropdown

寵の児 提交于 2020-12-26 04:50:08
问题 With the help of this page I've added an additional email to the WooCommerce emails. I wanted it te be a manual email that I can send to the customer, but it's not showing up in the order in the dropdown list of emails to send. I'm guessing I'm missing something, but I don't know what. This is de code of the plugin I use: <?php /** * Plugin Name: WooCommerce Custom Order Email * Plugin URI: http://www.skyverge.com/blog/how-to-add-a-custom-woocommerce-email/ * Description: Demo plugin for

Custom heading and subject email notification for custom order status in WooCommerce 4

大憨熊 提交于 2020-12-25 05:00:32
问题 i have created the custom status shipped but unfortunately mail are send default of processing when we change order status to shipped not the one we define in fuction shipped_status_custom_notification , can you please help me /** * Add custom status to order list */ add_action( 'init', 'register_custom_post_status', 10 ); function register_custom_post_status() { register_post_status( 'wc-shipped', array( 'label' => _x( 'Shipped', 'Order status', 'woocommerce' ), 'public' => true, 'exclude