Skip to content
Advertisement

Tag: orders

Send an email notification when order status change from pending to cancelled

In previous versions of Woocommerce, an email notification was sent automatically when an order was changed from pending status to cancelled status (In my case, this happens after an allotted time set in the inventory section of the admin). In WooCommerce 3.0.8 they have removed this automation and labelled as a fix: https://github.com/woocommerce/woocommerce/blob/master/CHANGELOG.txt And the pull request is here: https://github.com/woocommerce/woocommerce/pull/15170/files

Adding an image near the footer on WooCommerce completed orders email notification

I’m trying this code to insert images just near the footer in WooCommerce completed orders email notification, but unfortunately it doesn’t work! Here’s the code I’m trying: Any Clue please? Thanks Answer You should better use a custom hooked function in woocommerce_email_customer_details action hook for example, this way: You could also use woocommerce_email_footer action hook instead which have only one

Can not get the product details from order_id on the new order hook function

With WooCommerce, I have the following hook in my function.php after the new order is submitted: The above code is not giving me any output i’e it is not entering inside the foreach loop that’s why var_dump() not giving me any output, but if I mention the order_id specifically like create_job_openings($order_id=517) it works, even I tried echo $order_id before foreach

Advertisement