• Using Quotes for Woocommerce plugin: https://www.ads-software.com/plugins/quotes-for-woocommerce/

    When I activate your plugin and customize emails. The system fails to checkout properly, emails are not sent out. The quote request is captured on the backend, but the user never sees an order acceptance, so they resubmit multiple times.

    On the status it shows the following error:
    CRITICAL Uncaught ArgumentCountError: Too few arguments to function Kadence_Woomail_Designer::add_email_header(), 1 passed in /var/www/rocketstack/wp-includes/class-wp-hook.php on line 286 and exactly 2 expected in /var/www/rocketstack/wp-content/plugins/kadence-woocommerce-email-designer/kadence-woocommerce-email-designer.php:560

    Deactivating Kadence, the system works fine…

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey,
    That error states that the woocommerce email header was called with only 1 variable and there should be too.

    All calls to the action ‘woocommerce_email_header’ are supposed to include 2 variables. For example look here: https://github.com/woocommerce/woocommerce/blob/master/templates/emails/customer-processing-order.php#L25

    You just need to ask the authors of the Quotes plugin to update their email templates to the woocommerce standards.

    Ben

    Thread Starter lshiv

    (@shivamber)

    I saw your earlier post on this. I will connect with the other plugin author, but the mystery is that plugin works fine with a single variable in the call:

    <?php do_action( ‘woocommerce_email_header’, $email_heading ); ?>

    Hey,
    It works fine as long as you are not using a plugin that expects there to be two variables. ??

    Because woocommerce core uses two variables every time this action is called there is an expectation that if you extend woocommerce (with say an email customizer) you should extend from what woocommerce core has created as the standard.

    Does that make sense?

    Thread Starter lshiv

    (@shivamber)

    Understood. Got it to work together by making adjustments to the call and no fatal errors.

    However, I have run into the problem that was identified earlier. The emails produced have two headers and footers.

    However, I have run into the problem that was identified earlier. The emails produced have two headers and footers.

    I am not sure I know what you mean by “problem that was identified earlier”, can you point to what you are referencing?

    Ben

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Conflict with Quotes plugin’ is closed to new replies.