Merge branch 'hotfix/checkout-nonetype-operand'
This commit is contained in:
commit
b095585372
@ -376,6 +376,7 @@ class OrderCreateView(CreateView):
|
||||
).order_by()
|
||||
|
||||
for variant in variants_ordered:
|
||||
if variant['order_limit']:
|
||||
index, item = cart.get_item_by_pk(variant['id'])
|
||||
available = variant['order_limit'] - variant['num_ordered']
|
||||
new_qty = item.quantity if item.quantity < available else available
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user