• Resolved dalaldhairya

    (@dalaldhairya)


    Hi,
    I’ve created custom order status through code snippets but these order status are not visible in Kadence email types? How to solve the issue? Any idea?
    I’ve created basic custom statuses like out for delivery and delivered.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey,
    Well a couple of things.

    1. An order status is not the same as an email type in woocommerce. If you want woocommerce to send an email when a certain order status is set for a specific order you would have to create that functionality and have woocommerce trigger that email to send when the order status was changed.

    2. This plugin only works with core woocommerce email types. If you do create new email types and hook them in through the woocommerce email class you would have to hook those emails into this plugin to allow for a live preview. The design of your header and footer would be automatically inherited if you added the emails via the woocommerce email class but previewing and editing text would require additional hooking into this plugin.

    To simply preview and not edit the text of your custom email you can hook like this for example:

    function custom_add_email_previews( $emails = array() ) {
    $args = array(
    'email_type' => 'email_example_slug',
    'email_name' => 'Email Example',
    'email_class' => 'Custom_WC_Email_Extend',
    'email_heading' => __( 'Placeholder for Heading', 'plugin' ),
    );
    $emails[] = $args;
    return $emails;
    }
    add_filter( 'kadence_woocommerce_email_previews', 'custom_add_email_previews' );

    I hope that helps!

    Ben

    Thread Starter dalaldhairya

    (@dalaldhairya)

    Thanks Ben!
    I was looking for the same code as point no. 2!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Order Status’ is closed to new replies.