Call to a member function is_sold_individually() raise a 505 error in ajax ajax
-
Call to a member function is_sold_individually() raise a 505 error in ajax call (add-to-cart)
I solved in this way…
In set_max_min_quantity.php, methods wcmmq_min_max_valitaion and wcmmq_quantity_input_args
I had to replace
if( $product->is_sold_individually() ) …
with
if(method_exists( $product, ‘is_sold_individually’ ) && $product->is_sold_individually()) …The error description is
2022-11-15T16:12:51+00:00 CRITICAL Uncaught Error: Call to a member function is_sold_individually() on bool in /var/www/clients/client0/web20/web/wp-content/plugins/woo-min-max-quantity-step-control-single/includes/set_max_min_quantity.php:190
- The topic ‘Call to a member function is_sold_individually() raise a 505 error in ajax ajax’ is closed to new replies.