Checking min items with a category

[ad_1]

Hi I just wanted to let you know that the plugin was showing the min item message even when an item that wasn’t of the right category was added.

I fixed this by adding  && $qty_in_cart>0 to the if statement on line 664, so it also checks for the qty with valid cat. ie. if($c->min_qty>0 && $qty_in_cart<$c->min_qty && $qty_in_cart>0)

The max item case already checks it is over the $c->max_qty so it’s not an issue.

Thanks for the great plugin!

 

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