• Resolved Csaba

    (@reriser)


    Hi

    WooCommerce emails are not editable.

    I have found this:

    Uncaught Error: Call to a member function has_downloadable_item() on bool in /home2/cinderel/public_html/wp-content/plugins/woocommerce/includes/class-wc-emails.php:441

    Stack trace:

    #0 /home2/cinderel/public_html/wp-includes/class-wp-hook.php(324): WC_Emails->order_downloads() #1 /home2/cinderel/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #2 /home2/cinderel/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 /home2/cinderel/public_html/wp-content/plugins/kadence-woocommerce-email-designer/templates/woo/emails/customer-processing-order.php(45): do_action()
    #4 /home2/cinderel/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include(‘/home2/cinderel…’)
    #5 /home2/cinderel/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(364): wc_get_template()
    #6 /home2/cinderel/public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-processing-order.php(105): wc_get_template_html()
    #7 /home2/cinderel/public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(588): WC_Email_Customer_Processing_Order->get_content_html()
    #8 /home2/cinderel/public_html/wp-content/plugins/kadence-woocommerce-email-designer/includes/class-kadence-woomail-preview.php(702): WC_Email->get_content()
    #9 /home2/cinderel/public_html/wp-content/plugins/kadence-woocommerce-email-designer/includes/class-kadence-woomail-customizer.php(1032): Kadence_Woomail_Preview::get_preview_email()
    #10 /home2/cinderel/public_html/wp-includes/class-wp-hook.php(324): Kadence_Woomail_Customizer->ajax_send_email()
    #11 /home2/cinderel/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #12 /home2/cinderel/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #13 /home2/cinderel/public_html/wp-admin/admin-ajax.php(192): do_action()
    #14 {main} thrown

    Hinted source of the error:

    woocommerce/includes/class-wc_emails.php , line 440-441:

    public function order_downloads( $order, $sent_to_admin = false, $plain_text = false, $email = ” ) {
    $show_downloads = $order->has_downloadable_item() && $order->is_download_permitted() && ! $sent_to_admin && ! is_a( $email, ‘WC_Email_Customer_Refunded_Order’ );

    WooCommerce emails cannot be edited.

    I tried two plugins, neither of them succeeds.

    Can someone help?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi @reriser,

    Thank you for reaching out.

    I understand you’re facing issues with editing the WooCommerce emails. While it’s true that the default WooCommerce emails are not editable, there are plugins available that allow you to customize them.

    Are you able to share your goals as to why you’re trying to edit the WooCommerce emails? If you can share more details on your goals, we’d be happy to suggest possible plugins to help you achieve this.

    Looking at the shared error message, it seems like there’s an issue with the ‘has_downloadable_item()’ function on your WooCommerce site. This error typically occurs when the system is trying to call a function on something that isn’t an object, in this case, it might be that the $order variable is not an object or is a boolean. Could you also confirm the plugins you’re using to edit the email?

    In the meantime, it is always good to have all your plugins and theme updated to their latest versions when trying to make customizations. If the error still persists after updating, you might want to try disabling all your plugins except WooCommerce to see if there’s a conflict. If the error disappears, you can then reactivate each plugin one by one until you find the one causing the issue.

    I hope this helps.

    Thread Starter Csaba

    (@reriser)

    Kadence WooCommerce email designer, Decorator. Neither works. It’s not their mistake.

    We are over the plugin test, and updates. WordPress files have been reinstalled.

    • This reply was modified 3 weeks ago by Csaba.
    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi @reriser,

    We are over the plugin test, and updates. WordPress files have been reinstalled.

    If I understand you correctly, you already ran a conflict test to rule out any possible conflicts and the issue persists, is that correct?

    In that case, while we only focus our support on the core functionality of the plugin, I’d recommend the following:

    1. Running the exact question you’re asking, along with the code provided, through an AI platform like ChatGPT for recommendations.
    2. Joining our WooCommerce Slack community (it does have a developer channel where you can ask coding questions): https://woo.com/community-slack/
    3. Hiring a WooCommerce expert.

    I hope this points you in the right direction.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.