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

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer