Checking min items with a category
-
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>0to 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_qtyso it’s not an issue.Thanks for the great plugin!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Checking min items with a category’ is closed to new replies.