$maxQuantity not working in bitter_shop_system/single_pages/shop/shopping_cart.php at line: 92

Issue #53 resolved
Jakob Lämmle created an issue

If you set maxQuantity in the general config it should not be possible to buy more than this.
It is working in the detail product page but not in the shopping cart.

Line 92:

if (is_object($shoppingCartItem->getProduct()) && intval($shoppingCartItem->getProduct()->getQuantity()) < $maxQuantity) {

should be (getQuantity() ->getProductQuantity()):

if (is_object($shoppingCartItem->getProduct()) && intval($shoppingCartItem->getProduct()->getProductQuantity()) < $maxQuantity) {

Comments (2)

  1. Log in to comment