Add unlimited_items_per_order-flag to Sales Channels (#1508)

* Add unlimited_items_per_order-flag to Sales Channels

* Test for unlimited_items_per_order Sales Channels-flag

* Fix test
This commit is contained in:
Martin Gross
2019-11-28 16:31:38 +01:00
committed by Raphael Michel
parent fd7ad3cb16
commit 0474651070
4 changed files with 50 additions and 9 deletions

View File

@@ -53,6 +53,14 @@ class SalesChannel:
"""
return True
@property
def unlimited_items_per_order(self) -> bool:
"""
If this property is ``True``, purchases made using this sales channel are not limited to the maximum amount of
items defined in the event settings.
"""
return False
def get_all_sales_channels():
global _ALL_CHANNELS