email-notifications

Advanced Custom Fields in WooCommerce Email templates

旧街凉风 提交于 2020-02-27 13:43:06
问题 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

Avoid customer email notification for a specific product category in Woocommerce

痞子三分冷 提交于 2020-01-25 07:24:27
问题 In Woocommerce, I am trying to stop customer order email for a particular product category in woocommerce. What I have tried is: add_filter('woocommerce_email_recipient_customer_processing_order', 'wc_change_customer_new_order_email_recipient', 10, 3); function wc_change_customer_new_order_email_recipient( $recipient, $order ) { global $woocommerce; $items = $order->get_items(); $category_ids = array( 10 ); $flagHasProduct = false; foreach ( $items as $item ) { $product_id = $item['product_id

Avoid customer email notification for a specific product category in Woocommerce

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-25 07:24:06
问题 In Woocommerce, I am trying to stop customer order email for a particular product category in woocommerce. What I have tried is: add_filter('woocommerce_email_recipient_customer_processing_order', 'wc_change_customer_new_order_email_recipient', 10, 3); function wc_change_customer_new_order_email_recipient( $recipient, $order ) { global $woocommerce; $items = $order->get_items(); $category_ids = array( 10 ); $flagHasProduct = false; foreach ( $items as $item ) { $product_id = $item['product_id

Change stock email notifications recipient in WooCommerce

我与影子孤独终老i 提交于 2020-01-14 06:55:08
问题 I want to change stock email recipient email address in woocommerce. Already changes admin email but mails are still going to old email. 回答1: To change stock email recipient, try the following: add_filter( 'woocommerce_email_recipient_backorder', 'change_stock_email_recipient', 10, 2 ); // For Backorders notification add_filter( 'woocommerce_email_recipient_low_stock', 'change_stock_email_recipient', 10, 2 ); // For Low stock notification add_filter( 'woocommerce_email_recipient_no_stock',

How to get content of email like as Email ID ,Subject ,Message body text,and Attachment in android?

99封情书 提交于 2020-01-06 13:55:30
问题 I am new to android. I configured the email address in the android emulator.I want to get the email content,if the configured email receives the mail from other mailid.which notification shall i use and how to get the email content when the notification raises the alert. how can i achieve this. Thanks in advance..... 回答1: It sounds to me like you're trying to say that you signed-in to the mail app on the Android device. From my understanding of the question you've raise, signing-in to an

Display value from ACF field in Woocommerce order email

↘锁芯ラ 提交于 2020-01-05 09:14:56
问题 I´m trying to display a value for delivery date in the emails that Woocommerce automatic sends to the customer when the order is being processed. I have created a Advanced custom field value called 'leveranstid' and I want it to be shown with every product in the email. I´ve tried to add the code below to the functions.php but it doesn´t seem to work. Nothing shows. I would be very grateful if someone please help me find what´s wrong? add_action( 'woocommerce_order_item_meta_start', 'ts_order

Email notification to a particular address if a specific product is purchased in Woocommerce

耗尽温柔 提交于 2020-01-05 02:16:06
问题 I am using the woocommerce plugin in my Wordpress website. I am wondering how can I send an email notification to a specific address email if product A is purchased by customer. How to send an email notification to a specific address when a specific product is purchased in Woocommerce? 回答1: The code below will add a custom defined email recipient to New Email Notification When a specific defined product Id is found in order items: add_filter( 'woocommerce_email_recipient_new_order',

Customize WooCommerce order email

主宰稳场 提交于 2020-01-03 04:47:29
问题 I'm using WooCommerce for my website. I need to change the body of the email in 'Cancelled order'. I want to add my own content in the email body, There is no option to edit the body in the dashboard. Are there any hooks to change the email body? 回答1: You need to override Cancelled order email template. To override and edit this email template copy : woocommerce/templates/emails/admin-cancelled-order.php to your theme folder: yourtheme/woocommerce/emails/admin-cancelled-order.php . Now edit

Add account email conditionally on Customer processing Order email notification in Woocommerce

♀尐吖头ヾ 提交于 2020-01-03 03:21:06
问题 So this is more of my solution here but I wanted to open this up to see if the community could find a better alternative or potentially find use for this solve. Our client asked us for the following alteration to the email order receipts received on order creation: The receipts should go to the account holder and cc the billing email if it's different As we know Woocommerce by default sends the order receipt (Customer Processing) based on only the set billing_email on checkout so I started to

Different recipients based on products sold in WooCommerce email notification

怎甘沉沦 提交于 2020-01-02 13:34:14
问题 I’m looking to sell a number of virtual items on WooCommerce for different businesses. So when the customer has checked out, I'd like the email to be sent to the relevant business (not to admin). So when Product A is sold, an email will go to a@email.com. When Product B is sold, the email will be sent to b@email.com. When Product C is sold, the email will be sent to c@email.com...and so forth. Is there some code I can add to functions.php to achieve this? 回答1: Based on "Different recipients