• Hello! Searching through previous posts, I saw that you indicated the inclusion of the snippet below so that custom order status can be used. So go in and get the ID of one of the statuses as shown in the image. I changed the snippet, added the id but the status does not appear in the email options. In “email type” should the status “Em Produ??o” that I created appear? Would you help me?

    View post on imgur.com

    View post on imgur.com

    add_filter( ‘viwec_accept_email_type’, function ($email_types) {
    return wp_parse_args($email_types,[
    ‘bvos_custom_em-producao’=>’Em produ??o’,
    ]);
    }, 9999 );

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support villasupport

    (@villasupport)

    Hi,

    The structure seems to be wrong, please follow our guide to correct it properly (3. Creating new email types by 3rd plugin)

    Best regards.

    Thread Starter laserstore

    (@laserstore)

    Hello @villasupport ! Thank you for your response! The guide snippet you gave me is actually different, but even using this one, I had no results.

    I’m using the custom status plugin (bright plugins) that is included in the case study table, I applied the snippet exactly as explained in the guide using the email id, but I can’t select the email type to proceed because it doesn’t appear. This is my snippet: ID1 = bvos_custom_em-producao and ID2 = bvos_custom_oba-a-caminho

    add_filter( ‘viwec_accept_email_type’, function ($email_types) {
    $email_types[] = ‘bvos_custom_em-producao’;
    $email_types[] = ‘bvos_custom_oba-a-caminho’;
    return $email_types;
    }, 9999 );

    Could you tell me where I’m going wrong? Thank you!

    Plugin Support villasupport

    (@villasupport)

    Hi,

    Please contact us at [email protected] for further assistance.

    Best regards.

    Hi everyone,

    I’m reaching out as I’m having trouble adding a new email type to my WooCommerce store using the <code class=””>viwec_accept_email_type filter. I’ve seen others encounter similar issues, and I hope we can find a solution together.

    I’ve added the following code to my child theme’s functions.php file:

    PHPОб?асниadd_filter( 'viwec_accept_email_type', function ($email_types) { return wp_parse_args($email_types,[ 'bvos_custom_test'=>'Email Type Name 1' ]); }, 9999 );

    Будите опрезни када користите к?д. Сазна?те вишеcontent_copy

    However, the new email type (“bvos_custom_test”) isn’t showing up in VIWEC’s email type selection. I’ve confirmed that the email ID is correctly configured and that I’ve created the email template. Additionally, I’ve deactivated all other plugins except VIWEC.

    Any ideas why the new email type isn’t appearing? Is there a way to check if the code is even executing?

    Additional Information:

    • Email ID: “bvos_custom_test”
    • Created email template for the new type
    • Deactivated all other plugins except VIWEC
    • Using the following plugins:
      • Custom Order Status Manager for WooCommerce – Version 1.1.3.2
      • Email Template Customizer for WooCommerce – Version 1.2.1
      • Preview E-mails for WooCommerce – Version 2.2.1
      • WooCommerce – Version 8.5.2

    Thank you in advance for your help! I hope finding a solution for this issue will be helpful to others facing similar challenges.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom order status and snippet’ is closed to new replies.