• Hi.
    I am getting the following error in the Woocommerce log when I use the NP Quote Request WooCommerce plugin (Version 1.9.81). Without the plugin activated the cart works fine. I have the plugin setup for RFQ.

    I am using the Tourfic plugin over Woocommerce but as I mentioned the cart works fine for purchasing just not for requesting a quote. The orders showing quote request are being created in the Woocommerce backend but the frontend on the checkout page it says “Error processing checkout. Please try again” after I click the request a quote button. Also no emails are being sent.

    Here is the error from the log:

    2023-05-14T18:59:50+00:00 CRITICAL Uncaught Error: Call to a member function get_image_id() on bool in /home/mydomain/wp-content/plugins/woo-rfq-for-woocommerce/woocommerce/emails/rfqtk-email-order-items.php:37
    Stack trace:
    #0 /home/mydomain/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include()
    #1 /home/mydomain/wp-content/plugins/woo-rfq-for-woocommerce/includes/classes/emails/class-wc-email-rfq.php(250): wc_get_template('emails/rfqtk-em...', Array, '', '/home/mydomain/…’)
    #2 /home/mydomain/wp-content/themes/astra-child/woocommerce/emails/customer-rfq.php(68): rfqtk_get_email_order_items(Object(Automattic\WooCommerce\Admin\Overrides\Order), Array)
    #3 /home/mydomain/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/mydomain/…’)
    #4 /home/mydomain/wp-content/plugins/woo-rfq-for-woocommerce/includes/classes/emails/class-wc-email-customer-rfq.php(157): wc_get_temp in /home/mydomain/wp-content/plugins/woo-rfq-for-woocommerce/woocommerce/emails/rfqtk-email-order-items.php on line 37
    
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Neah Plugins

    (@gplsaver)

    I am not sure if Tourfic plugin is compatible with this plugin. The error implies that there are not products in the cart which I am assuming that is not the case if you are at checkout. How about if you change theme. Does it work then?

    Thread Starter ceenaree

    (@ceenaree)

    Hi.

    I tried the following standard WP themes but still the same problem.

    Twenty Twenty-One Version: 1.8
    Twenty Twenty-Three Version: 1.1

    Here is a screenshot of the cart before I click Request A Quote. For this image I was using the Twenty Twenty-Three theme.

    Thread Starter ceenaree

    (@ceenaree)

    Hi @gplsaver

    Thanks for the new update. It works now!

    It gets processed and emails go to the client and admin but both emails do not show the product for some reason.

    Here is the page after clicking the Request for Quote button on the checkout and processing, showing the product which is a hotel booking.

    Here is the customer email which is missing the product info. It has the billing info but I have hidden it.

    Is there something I am missing or could it be a problem with the email templates?

    Thanks

    Plugin Author Neah Plugins

    (@gplsaver)

    Are you overriding the templates?

    Thread Starter ceenaree

    (@ceenaree)

    No. Both are original and are not copied to the theme.

    Plugin Author Neah Plugins

    (@gplsaver)

    then I would say there is a conflict with the Tourfic?plugin. For some reason, the product comes as false for each product in the cart.

    Thread Starter ceenaree

    (@ceenaree)

    Hi. Strange as the confirmation page shows the product on the website as in the image I sent. Also if NP RFQ plugin is deactivated and I purchase the product both emails have the product in them.

    Could there be a customization for the email templates that is needed?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Critical error in cart’ is closed to new replies.