• Thanks for the plugin, it works great for normal Woocommerce emails. I’m using https://wpovernight.com/downloads/woocommerce-order-proposal/ to add functionality to my site, to allow me to send Proposals via Woocommerce (basically it creates a new Order status and sends proposals/invoices in PDF format to customers).

    Unfortunately these Proposal emails don’t show up in the Kadence Email Customiser:

    Feedback from the plugin team: “Our order proposal emails are created by extending the WC_Email class. So in theory third party plugins should pick them up automatically.”

    I understand this might likely involve some custom coding work, is there anything you could point me towards so I could do it myself? Or any other help you could offer would be tremendously appreciated.

    Thanks in advance!

Viewing 1 replies (of 1 total)
  • Hey,

    In terms of styling we do pick them up automatically and style the emails. All emails sent through woocommerce get the styles you set. For example colors, spacing, etc.

    If you want to preview a third-party email you can use a filter like this:

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

    Just make sure you update the type, name, class to match whatever email you are adding.

    That filter won’t let you edit the text of the emails. It will just make it possible to preview the email in the customizer. Editing the text is something that requires overriding the email templates and adding the functionality to call the text from the database and not static strings in the email tempaltes. If third-party plugins want to add support for editing the text of their emails through our plugin, they will need to reach out to use for the required development.

    Ben

Viewing 1 replies (of 1 total)
  • The topic ‘How to add new email types to the Kadence Designer list?’ is closed to new replies.