This topic has 5 replies, 2 voices, and was last updated 1 years, 4 months ago ago by chrisbond
Hi , I have created a custom order status called “Confirmed” and I need to have an email template for when I change the order status to “Confirmed”.
How do I assign a template from Xstore email builder to it?
Thanks
Hello, Chrisbond,
Thank you for contacting us and for using XStore.
Please read this article first – https://www.8theme.com/documentation/docs/xstore-built-in-woocommerce-email-builder/
If the information provided has not been helpful, please provide a more detailed description of your situation and request, including screenshots if applicable.
Thank you for your cooperation and we look forward to hearing from you soon.
Kind Regards,
8theme team
Hi Rose,
Yes, I read the article and know how to customize the email templates.
As I said, I have created a custom order status called “Confirmed” and I need to create a new email template for the new created the order status “Confirmed”.
I created the new order status using the following:
add_filter( ‘woocommerce_register_shop_order_post_statuses’, ‘bbloomer_register_custom_order_status’ );
function bbloomer_register_custom_order_status( $order_statuses ) {
// Status must start with “wc-“!
$order_statuses[‘wc-CONFIRMED’] = array(
‘label’ => ‘CONFIRMED’,
‘public’ => false,
‘exclude_from_search’ => false,
‘show_in_admin_all_list’ => true,
‘show_in_admin_status_list’ => true,
‘label_count’ => _n_noop( ‘CONFIRMED (%s)‘, ‘CONFIRMED (%s)‘, ‘woocommerce’ ),
);
return $order_statuses;
}add_filter( ‘wc_order_statuses’, ‘bbloomer_show_custom_order_status_single_order_dropdown’ );
function bbloomer_show_custom_order_status_single_order_dropdown( $order_statuses ) {
$order_statuses[‘wc-custom-status’] = ‘CONFIRMED’;
return $order_statuses;
}
Hello, Chrisbond,
Thank you for your response.
By default, WooCommerce registers each email they provide according to a specific code technique so that each email has its own key and template file for its content. For example:
Refunded order class → https://prnt.sc/eVfiLssJXIvQ
Refunded order template in Email builder list → https://prnt.sc/i79z0uBz1Od0
In case you just add custom order status you won’t have a new template in our Builder because there are no template file respectively for such order status.
It requests additional customization in files, which is out of our basic support scope, and there is no ready or quick solution, unfortunately.
You can contact our partners with a request about additional customization service, the Codeable team, who will perform your task quickly and with high quality – https://codeable.io/?ref=qGTdX
Kind Regards,
8theme team
I now understand. Thanks for the explanations.
Xstore rocks 🙂
Tagged: custom order status, email builder, persuasive, template, woocommerce, wordpress, xstore
The issue related to '‘Xstore Email builder template for a custom order status’' has been successfully resolved, and the topic is now closed for further responses