• Resolved marcycapron

    (@marcycapron)


    Hi! It appears that additional emails in Woo created by third party plugins (using woo templates) do not appear in Kadence for editing.

    I assume this is due to a conflict plugin? Kadence is preventing Smart Coupons from being able to send store credit emails, throwing this error, which is creating issues for my employees —

    2019-11-20T01:04:50+00:00 CRITICAL Uncaught ArgumentCountError: Too few arguments to function Kadence_Woomail_Designer::add_email_header(), 1 passed and exactly 2 expected in /nas/content/live/eqcbdbeta/wp-content/plugins/kadence-woocommerce-email-designer/kadence-woocommerce-email-designer.php:565
    Stack trace:
    #0 [internal function]: Kadence_Woomail_Designer->add_email_header('You have receiv...')
    #1 /nas/content/live/eqcbdbeta/wp-includes/class-wp-hook.php(286): call_user_func_array(Array, Array)
    #2 /nas/content/live/eqcbdbeta/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #3 /nas/content/live/eqcbdbeta/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
    #4 /nas/content/live/eqcbdbeta/wp-content/plugins/woocommerce-smart-coupons/templates/email.php(16): do_action('woocommerce_ema...', 'You have receiv...')
    #5 /nas/content/live/eqcbdbeta/wp-content/plugins/woocommerce-smart-coupons/includes/class-wc-sc-admin-pages.php(863): include('/nas/content/li...')
    #6 /nas/content/live/eqcbdbeta/wp-content/plugins/woocommerce-sm in /nas/content/live/eqcbdbeta/wp-content/plugins/kadence-woocommerce-email-designer/kadence-woocommerce-email-designer.php on line 565

    thoughts?

    thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey,
    So there are two things here.

    1. Third-party plugins that add emails to woocommerce have to build in the integration with Kadence email designer (or I have to build it in) if you want to see the emails in the customizer and be able to preview them there, and or possibility edit the content of those emails there.

    This plugin already supports a lot of the main extensions and am happy to talk with other plugin developers about how to add support or integration if they reach out.

    By default all emails sent with Woocommerce will take on the style you design in our plugin, so even if you can’t preview the email from a third party plugin it’s going to adapt the style that is created in our plugin interface. Meaning, colors, header, footer, etc.

    2. The error you are getting is because your plugin “woocommerce-smart-coupons” is not following the standards set up by Woocommerce core. Any time the action woocommerce_email_header runs it should have two variables. Your error is saying there is only one.

    If you look here you can see how woocommerce does it:

    https://github.com/woocommerce/woocommerce/blob/master/templates/emails/customer-completed-order.php#L25

    I suggest just asking the plugin authors of “woocommerce-smart-coupons” to update their template to match woocommerce core and that will resolve the issue and allow those emails to be sent styled in the way you have set up your emails to be styled through our plugin.

    I hope that clarifies and helps!

    Ben

    Thread Starter marcycapron

    (@marcycapron)

    Hi Ben! looks like their most recent update did exactly that — thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Email templates not displaying (conflicts)’ is closed to new replies.