Xstore Email builder template for a custom order status

This topic has 5 replies, 2 voices, and was last updated 1 years, 4 months ago ago by chrisbond

  • Avatar: chrisbond
    chrisbond
    Participant
    July 21, 2023 at 12:57

    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

    4 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 21, 2023 at 15:28

    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

    Please contact administrator
    for this information.
    Avatar: chrisbond
    chrisbond
    Participant
    July 24, 2023 at 07:30

    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;
    }

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 24, 2023 at 08:31

    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

    Avatar: chrisbond
    chrisbond
    Participant
    July 24, 2023 at 14:13

    I now understand. Thanks for the explanations.
    Xstore rocks 🙂

  • Viewing 5 results - 1 through 5 (of 5 total)

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

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.