email-notifications

Customizing email headers in WooCommerce email notifications

醉酒当歌 提交于 2020-01-01 19:51:50
问题 I am trying to write a filter that changes the reply-to address for WooCommerce email, dependent on the 'billing city' the order is made for. This works for WooCommerce emails, but doesn't seem to work for WooCommerce Advanced notifications - it doesn't seem to pass the '$order' into the header information to do the IF statement. It is a long shot but any thoughts much appreciated. This is my code. function change_headers($order, $object, $headers); // Get the city $city = $order->get_billing

Removing BACS instructions from email notiications in WooCommerce

三世轮回 提交于 2020-01-01 19:24:51
问题 On my WooCommerce web shop I have enabled the payment getaway "Direct bank transfer" . In Woocommerce --> Settings --> Checkout --> BACS there is a field called "instruction" . This textfield is added to the thank you page, which is good. But it's also added to the costumer-order-completed email , which I dont want. I already tried to understand the php files which are responsible for email notification, but I have no clue to avoid the display for this "instructions" text. How can I remove

Customizing Woocommerce New Order email notification based on shipping method [closed]

一曲冷凌霜 提交于 2020-01-01 16:47:32
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago . How can I edit the admin-new-order.php WooCommerce template to send conditionally some custom customer details based on shipping method? For example (for New Order email notification) : If the Order Shipping method is flat rate , I want to add some custom fields information to the customer details.

Customizing Woocommerce New Order email notification based on shipping method [closed]

廉价感情. 提交于 2020-01-01 16:45:27
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago . How can I edit the admin-new-order.php WooCommerce template to send conditionally some custom customer details based on shipping method? For example (for New Order email notification) : If the Order Shipping method is flat rate , I want to add some custom fields information to the customer details.

Woocommerce: Adding second email address not working, unless recipient is admin

China☆狼群 提交于 2019-12-31 06:58:07
问题 I have tried several methods to add additional recipients to Woocommerce emails, but it only seems to work on test orders where the primary recipient is the admin. These are the snippets I've tried. If the customer for the order is the admin, the email is sent both addresses. If the order contains a customer email address, it is only send to that email address and not the CC. Here are the code snippets I've tried: add_filter( 'woocommerce_email_recipient_customer_processing_order', 'my_email

Different recipients based on product category in WooCommerce email notification

守給你的承諾、 提交于 2019-12-29 08:08:07
问题 I am setting up a site for a school that sells both virtual products (fees and excursion payments) and Physical (uniforms) however they would like to have order notifications for each category to be sent to separate recipients as they are dealt with by different departments. For example all uniform category orders are to go to recipient one, while all the others go to recipient two... I have come across multiple ways to send custom emails messages based on the product, however none of these

Change source e-mail notification address for Google Script

青春壹個敷衍的年華 提交于 2019-12-25 18:25:35
问题 Thank you for your time! Need help with google-apps-script. I created Google Script code for E-mail notifications. By default, the E-mail notifications are sent from my e-mail address. I need to change the E-mail sender address to a different one. So, I changed the ownership of the script, but nothing changed, the script still sends E-mails from my original account. Please, help. 回答1: changing ownership is not mandatory what you have to do is to run the script with the other account. You

How to get a cookie value in Woocommerce email notifications?

谁说胖子不能爱 提交于 2019-12-24 13:33:46
问题 I'm retrieving a value using php cookies from a plugin to woocommerce thankyou page and customer order detail page, it works fine on thankyou page but didn't print anything on email order detail page, how would I fix this? I have tried fetching values using php sessions, it prints value only for 10 to 15 minutes, after that it doesn't print anything, can anyone help me to retrieve values using PHP cookie. From here I want to fetch Post ID <?php if('on' == $display_ticket_number){ echo '#' .

Add email recipients from wc field factory for woocommerce email notification

佐手、 提交于 2019-12-24 09:56:52
问题 I am selling a course product using woocommerce. The course uses wc fields factory for custom product fields for student name and student email address. The field name for student email address is "student_email". I am then trying to take the value from that field (the email address) and use that as the recipient for an email from woocommerce upon the purchase of this product. The values inputted do show up on the cart page, the order receipt emails, etc. The custom email template I set up

Change Woocommerce email subject if order have this specific category

前提是你 提交于 2019-12-23 21:58:58
问题 I just want to know if possible to change the email subject if the order have the specific category like (Preorder). I want to put PO at beginning (PO New customer order #0000) then all other order the customer receive the default email subject (New Customer Order #0000). add_filter('woocommerce_email_subject_new_order', 'change_admin_email_subject', 1, 2); function change_admin_email_subject( $subject, $order ) { global $woocommerce; global $product; if ( has_term( 'preorder', $product->ID )