• Hi,

    Although I love the otput from your plugin, I do want to have an additoonal email type defined that I can use to inform my customer that their order has shipped (providing a tracking number as well).

    I found following instruction to facilitate creating an additional emailtype https://www.skyverge.com/blog/how-to-add-a-custom-woocommerce-email/ , question now is that I would like to manage the actual contents of it (incl WPML translations) via the Woocommerce admin panel.

    My objective is to re-use the existing Customer Note email type for this…..

    How can incorporate a new email type (based on the implementation instructions of the link above) into the Email Customizer?

    • This topic was modified 5 years, 10 months ago by glorisol.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Ben Ritner – Kadence WP

    (@britner)

    Hey,
    You can add emails to show up in the customizer by filtering them in, for example here is a outline for what the code could look like. This would need to be changed to match what you create:

    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' );

    That will only allow you to preview the emails. Actually editing the content of the email requires a lot more custom coding. At this time I don’t have a walkthrough for that.

    I suggest you consider using a plugin to manage this new email for you. For example: https://ww.wp.xz.cn/plugins/woo-advanced-shipment-tracking/

    If you do decide to follow along with that blog post just be aware it was written in 2013 and so things might have changed since then.

    All the best,

    Ben

    Thread Starter glorisol

    (@glorisol)

    Thanks for your reply.
    I took your advice and go with a specific plugin (should have thought of that myself…).

    BTW: I seem to have a huge issue now trying to import settings that were exported.
    https://ww.wp.xz.cn/support/topic/import-of-exported-settings-returns-an-error/

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Add new email type’ is closed to new replies.