Adding Extra Order Status and an Extra Status E-Mail
-
Hi All,
Hoping you can help.
I have renamed the order statuses in WooCommerce using some function php code.
As well as courier delivery, we also offer a local collection where a customer can come to our factory to collect their model/sculpture, I need an extra order status for “Ready to Collect” and I would like an associated e-mail template that gives them more information about how to collect along with some safety guidelines about their collection.
How can I add an additional order status called Ready to Collect or Ready For Collection and also add an additional e-mail template that’s associated with that status being set?
I have added the functions code I used / borrowed to re-name some of the default statuses.
Hoping someone here has experience of adding an extra status and an extra e-mail
Many Thanks in advance for any help you can offer.
Thanks all
add_filter( 'wc_order_statuses', 'ts_rename_order_status_msg', 20, 1 ); function ts_rename_order_status_msg( $order_statuses ) { $order_statuses['wc-completed'] = _x( 'Order Complete and Ready for Dispatch', 'Order status', 'woocommerce' ); $order_statuses['wc-processing'] = _x( 'Your Order is being processed', 'Order status', 'woocommerce' ); $order_statuses['wc-on-hold'] = _x( 'We are working on your order', 'Order status', 'woocommerce' ); $order_statuses['wc-pending'] = _x( 'Your Order is pending', 'Order status', 'woocommerce' ); return $order_statuses; }
The topic ‘Adding Extra Order Status and an Extra Status E-Mail’ is closed to new replies.