Refs #1593 -- Fix subsequent issue when clearing the cart

This commit is contained in:
Raphael Michel
2020-02-27 16:28:07 +01:00
parent f65cf8e86a
commit fcdb40dda0

View File

@@ -773,6 +773,9 @@ class CartManager:
err = None
for item, count in items.items():
if count == 0:
continue
if item.max_per_order and count > item.max_per_order:
raise CartError(
_(error_messages['max_items_per_product']) % {