email-notifications

Add Applied Coupon Code in Admin New Order Email Template - WooCommerce

假装没事ソ 提交于 2020-07-15 03:53:44
问题 Let me clear my question: I have downloaded & activated WooCommerce Plugin for E-Commerce Functionality. I want to add "Applied coupon code" in Admin New Order Email Template using my custom plugin. Now: Can you tell me that exact Hook or Function which is actually setting up that New Order Email Template so that i will override it? Can you tell me how to call applied coupon code, so that i will display this in email template? It would be great, if you help me please. 回答1: This can be done

Add Applied Coupon Code in Admin New Order Email Template - WooCommerce

╄→尐↘猪︶ㄣ 提交于 2020-07-15 03:52:33
问题 Let me clear my question: I have downloaded & activated WooCommerce Plugin for E-Commerce Functionality. I want to add "Applied coupon code" in Admin New Order Email Template using my custom plugin. Now: Can you tell me that exact Hook or Function which is actually setting up that New Order Email Template so that i will override it? Can you tell me how to call applied coupon code, so that i will display this in email template? It would be great, if you help me please. 回答1: This can be done

Customize customer new account mail based on user role in Woocommerce

二次信任 提交于 2020-06-29 04:55:32
问题 I use code to let users choose which role to use when registering for WooCommerce. This is because I have 2 types of people: private and professional. What I would like is to send a different email according to the role selected in the registration. The following code allows a new user to immediately choose a user role during registration /* Add Role Choose Option on Registration */ //adding role select option on registration form function wooc_extra_register_fields() { global $wp_roles; ?>

Change “Shipping” label in Woocommerce email table totals?

走远了吗. 提交于 2020-06-25 05:56:32
问题 I am customizing the order email template in WooCommerce and need to change the title of "Shipping" to "Delivery," as well as change "Shipping address" to "Delivery address". I tried a plugin, "Say What" that would change the text but it did not work. There is a loop that handles all of this information. Woocommerce email template This is the code on line 52 in the "email-order-details.php" page. if ( $totals = $order->get_order_item_totals() ) { $i = 0; foreach ( $totals as $total ) { $i++;

Change “Shipping” label in Woocommerce email table totals?

依然范特西╮ 提交于 2020-06-25 05:56:12
问题 I am customizing the order email template in WooCommerce and need to change the title of "Shipping" to "Delivery," as well as change "Shipping address" to "Delivery address". I tried a plugin, "Say What" that would change the text but it did not work. There is a loop that handles all of this information. Woocommerce email template This is the code on line 52 in the "email-order-details.php" page. if ( $totals = $order->get_order_item_totals() ) { $i = 0; foreach ( $totals as $total ) { $i++;

Customize order item meta only for WooCommerce admin email notifications

生来就可爱ヽ(ⅴ<●) 提交于 2020-05-23 10:18:26
问题 I need to add custom taxonomy to admin new order emails but not to customer emails. My current code displays my custom taxonomy for each item in the order but it is showing up in both admin and customer emails, which I don't want. Looking thru email-order-items.php I don't see a way to utilize $sent_to_admin in the hook that I am using. Am I missing something? How do I add my custom taxonomy only to admin emails using just hooks and filters? add_action( 'woocommerce_order_item_meta_end',

Add recipients from product custom fields to Woocommerce new order email notification

与世无争的帅哥 提交于 2020-05-11 03:34:27
问题 In Woocommerce, I would like to add a email custom field with the Advanced Custom Fields plugin to products post type. If customer place an order I would like to add the corresponding email adresses for each order items to new order email notification . How to add recipients from product custom fields to Woocommerce new order email notification? 回答1: For "New order" email notification, here is the way to add custom emails from items in the order (The email custom field is set with ACF in the

Add the tax total as a separated row on Woocommerce email notifications

有些话、适合烂在心里 提交于 2020-02-29 04:24:41
问题 I would like to edit the contents of the Woocommerce invoice that a customers gets after ordering. I think I have to edit this file located at wp-content/plugins/woocommerce/templates/emails/email-order-details.php Using the following code: <tr> <th class="td" scope="row" colspan="2" style="text-align:<?php echo esc_attr( $text_align ); ?>; <?php echo ( 1 === $i ) ? 'border-top-width: 4px;' : ''; ?>"><?php echo wp_kses_post( $total['label'] ); ?></th> <td class="td" style="text-align:<?php

Add the tax total as a separated row on Woocommerce email notifications

别说谁变了你拦得住时间么 提交于 2020-02-29 04:24:23
问题 I would like to edit the contents of the Woocommerce invoice that a customers gets after ordering. I think I have to edit this file located at wp-content/plugins/woocommerce/templates/emails/email-order-details.php Using the following code: <tr> <th class="td" scope="row" colspan="2" style="text-align:<?php echo esc_attr( $text_align ); ?>; <?php echo ( 1 === $i ) ? 'border-top-width: 4px;' : ''; ?>"><?php echo wp_kses_post( $total['label'] ); ?></th> <td class="td" style="text-align:<?php

Advanced Custom Fields in WooCommerce Email templates

久未见 提交于 2020-02-27 13:46:58
问题 I am using Advanced Custom Fields (ACF) plugin in WooCommerce and I have set a custom field named "tracking-no". How can I display the value of this custom field in the Woocommerce template emails/customer-completed-order.php ? I am using this code: <?php if(get_field('tracking-no')) { echo '<p>' . get_field('tracking-no') . '</p>'; } ?> But I doesn't get anything. Thanks 回答1: In your WooCommerce template you should get first the order ID as argument in get_field(): <?php // Get the $order ID