orders

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

Show custom fields in WooCommerce quick order preview

末鹿安然 提交于 2021-02-08 02:13:42
问题 In WooCommerce admin orders list, clicking on the "eye icon" gives a quick preview for the order info. I've added custom billing checkout fields, but they are not shown in this quick preview and instead under billing details it displays "N/A": However when choose the edit order page, I can see them. How to display that billing custom fields in order quick preview? 回答1: In the code below, for each of your billing custom fields, you will have to set the correct meta key . It will display your

Show custom fields in WooCommerce quick order preview

a 夏天 提交于 2021-02-08 02:05:08
问题 In WooCommerce admin orders list, clicking on the "eye icon" gives a quick preview for the order info. I've added custom billing checkout fields, but they are not shown in this quick preview and instead under billing details it displays "N/A": However when choose the edit order page, I can see them. How to display that billing custom fields in order quick preview? 回答1: In the code below, for each of your billing custom fields, you will have to set the correct meta key . It will display your

Display last WooCommerce admin order note in customers order history

故事扮演 提交于 2021-02-07 20:00:14
问题 I am looking to display the last Order Note, currently only viewable via Admin in Woocommerce, on the customer side in their Order History. So they can view the tracking number we add in after the order is set as complete. https://example.com/my-account/view-order/135/ We add a customer note by first setting the order as COMPLETE via the Woocommerce API then adding an order note with the tracking link. So the tracking ref will always be the last item. How can I show the last Order Note on the

Display last WooCommerce admin order note in customers order history

拈花ヽ惹草 提交于 2021-02-07 19:57:35
问题 I am looking to display the last Order Note, currently only viewable via Admin in Woocommerce, on the customer side in their Order History. So they can view the tracking number we add in after the order is set as complete. https://example.com/my-account/view-order/135/ We add a customer note by first setting the order as COMPLETE via the Woocommerce API then adding an order note with the tracking link. So the tracking ref will always be the last item. How can I show the last Order Note on the

Get the Order ID in Woocommerce order received page as shortcode

℡╲_俬逩灬. 提交于 2021-02-07 10:24:36
问题 I want to have WooCommerce Order ID's referenced as a shortcode to be easily be used in the Order received page to generate dynamic links. function my_order_id( $atts ) { echo $order->get_id(); } add_shortcode( 'my_order_id', 'my_order_id'); 回答1: Here is the way to get the Order ID in "Order received" (thankyou) page as a shortcode: function get_order_id_thankyou( $atts ) { // Only in thankyou "Order-received" page if( ! is_wc_endpoint_url( 'order-received' ) ) return; // Exit global $wp; //

Keep and get order status history with their time stamps in Woocommerce 3

拥有回忆 提交于 2021-02-07 10:24:09
问题 I want to save the order status history for all orders on woocommerce. e.g If the order status is changed from pending to processing the previous status along with its timestamp should be saved so that user can view their order status history through this page. I have done some research but I couldn't find a way to do this. I would like to hear the suggestions. The order tracking is done using a custom plugin. I am retrieving the order details using the following $order object $order = wc_get

Keep and get order status history with their time stamps in Woocommerce 3

﹥>﹥吖頭↗ 提交于 2021-02-07 10:23:24
问题 I want to save the order status history for all orders on woocommerce. e.g If the order status is changed from pending to processing the previous status along with its timestamp should be saved so that user can view their order status history through this page. I have done some research but I couldn't find a way to do this. I would like to hear the suggestions. The order tracking is done using a custom plugin. I am retrieving the order details using the following $order object $order = wc_get

Trigger Woocommerce outgoing email based on an order note

时光毁灭记忆、已成空白 提交于 2021-02-07 09:49:51
问题 Is it possible to trigger an outgoing email based on an added order note within WooCommerce? We've integrated with a stock control system (Mintsoft) who basically send us back the tracking ID via order notes (all linked up via the REST API) I've managed to hook into the content of the note based on the text inside, as the order object contains pretty much everything you could want - however it's out of scope at the point the usual "completed" mail goes out, meaning a template change is out of

Get separate Order's tax totals amounts with tax class

冷暖自知 提交于 2021-02-07 09:29:54
问题 I'm making personal a PDF invoice plugin for woocommerce. Some of our products has tax with Reduced rate (%8) or Standart rate (%18). For example, Product A = Reduced rate (%8), Product B = Standart rate (%18). I can get total of tax amount easily but I want to print with sperate tax total amounts with tax class . How to get total Reduced rate tax amount of an order? Also Standart rate. How can I echo them separately? 回答1: The Tax class is not registered anywhere in the order data… It's