Merge tag 'cart-add-nonetype' into develop
3.3.2 cart-add-nonetype
This commit is contained in:
commit
bc7067495c
@ -166,7 +166,7 @@ class Cart:
|
||||
elif item.quantity > item.variant.product.checkout_limit:
|
||||
messages.warning(self.request, 'Quantity exceeds checkout limit.')
|
||||
item.quantity = item.variant.product.checkout_limit
|
||||
elif item.quantity > item.variant.order_limit:
|
||||
elif item.variant.order_limit and (item.quantity > item.variant.order_limit):
|
||||
messages.warning(self.request, 'Quantity exceeds order limit.')
|
||||
item.quantity = item.variant.order_limit
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user