On update_status() have no order_items in email
-
Hello!
Quesion about order pre-moderation
$order->update_status when there is a new orderin functions.php
function my_status_pending($order_id) { $order = new WC_Order( $order_id ); $order->update_status("processing"); $order->add_order_note("Заказ создан, пожалуйста, ожидайте, подтверждения.", true); } add_action( 'woocommerce_new_order', 'my_status_pending', 20,2 );
With this code, all email notifications of this order sending with no items
screenIf you manually change the status of the order from the admin list of goods becomes visible.
linkWhat could be the problem?
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘On update_status() have no order_items in email’ is closed to new replies.