In our case we cannot set prices on products. When no price is set this triggers an error on form submission on class-af-r-f-q-quote.php line 293:
PHP Fatal error: Uncaught TypeError: Unsupported operand types: string
I’ve added a simple fix to detect empty prices and set it to 0, but i guess this should really be fixed by you guys for future updates.
Open
Last updated: August 4, 2023
Log in to comment on this feature request.
Hi,
Hi Len,
Please reach out to us using following email,
support @ addify.co
Thanks,
Addify, I would create a ticket but “Request a Quote for WooCommerce” does not exist as an option in the Product dropdown. Is there another preferred method of contacting your support team directly?
Hi Len,
We recommend you to please reach out to our support team since we do plan to release a new version in coming weeks as the extension does not display add to cart button when the price is empty. Please reach out to us using the following link,
https://woocommerce.com/my-account/create-a-ticket/
Thanks
Could we please get this issue fixed? We have a few clients who are affected by this and it’s not a good solution to have to go into the code and hack it every time the plugin is updated. Here’s an easy solution:
File: /woocommerce-request-a-quote/includes/class-af-r-f-q-quote.php
Line 192:
— Replace: $price = $product->get_price();
— With: $price = ( $product->get_price() ?: ‘0.00’ );
Line 270:
— Add: $price = ( $price ?: ‘0.00’ );
Hi,
Thank you for reaching out and reporting this issue. We have passed it on to the development team to fix this issue in next release.
Thank you,