email-notifications

Save and display product custom meta on WooCommerce orders and emails

一曲冷凌霜 提交于 2020-08-26 06:51:13
问题 OK, so basically we created a custom field using ACF in our WooCommerce Store in order to add a "Shipping Delay" notice for specific products. Here is a demonstration of what we achieved: https://www.safe-company.com/shop/machines/uvc-disinfection-lamp/ Single Product Page Reference Image We managed then to put this notice in the single product page using Elementor (A page builder) and then add this information to the item data in the cart and checkout page with the following code added to

Sorting order items by SKU in Woocommerce

人盡茶涼 提交于 2020-07-25 06:39:13
问题 I am trying to order the products by sku within an order in an email in Woocommerce . I have not had any luck with the following code. Some help? Thanks since now! add_filter( 'woocommerce_order_get_items', function( $items, $order ) { uasort( $items, function( $a, $b ) { return strnatcmp( $a['_sku'], $b['_sku'] ); } ); return $items; }, 10, 2 ); Sample sort result: INFSTRAW I NFMUFFIN INFFLORES INFTAFLOR INFTAPINK CTEPINK4 CTECAKE4 INFCHOCO UCUBTOMA 回答1: Updated On July 2020 Here is the way

Sorting order items by SKU in Woocommerce

对着背影说爱祢 提交于 2020-07-25 06:38:11
问题 I am trying to order the products by sku within an order in an email in Woocommerce . I have not had any luck with the following code. Some help? Thanks since now! add_filter( 'woocommerce_order_get_items', function( $items, $order ) { uasort( $items, function( $a, $b ) { return strnatcmp( $a['_sku'], $b['_sku'] ); } ); return $items; }, 10, 2 ); Sample sort result: INFSTRAW I NFMUFFIN INFFLORES INFTAFLOR INFTAPINK CTEPINK4 CTECAKE4 INFCHOCO UCUBTOMA 回答1: Updated On July 2020 Here is the way

Sorting order items by SKU in Woocommerce

◇◆丶佛笑我妖孽 提交于 2020-07-25 06:37:21
问题 I am trying to order the products by sku within an order in an email in Woocommerce . I have not had any luck with the following code. Some help? Thanks since now! add_filter( 'woocommerce_order_get_items', function( $items, $order ) { uasort( $items, function( $a, $b ) { return strnatcmp( $a['_sku'], $b['_sku'] ); } ); return $items; }, 10, 2 ); Sample sort result: INFSTRAW I NFMUFFIN INFFLORES INFTAFLOR INFTAPINK CTEPINK4 CTECAKE4 INFCHOCO UCUBTOMA 回答1: Updated On July 2020 Here is the way

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

左心房为你撑大大i 提交于 2020-07-15 03:54:09
问题 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