Allow to hide all sold out items

This commit is contained in:
Raphael Michel
2019-07-18 15:00:39 +02:00
parent a99616b1e0
commit 6d12b3780c
5 changed files with 41 additions and 4 deletions

View File

@@ -1207,6 +1207,10 @@ class DisplaySettingsForm(SettingsForm):
label=_("Show variations of a product expanded by default"),
required=False
)
hide_sold_out = forms.BooleanField(
label=_("Hide all products that are sold out"),
required=False
)
frontpage_subevent_ordering = forms.ChoiceField(
label=pgettext('subevent', 'Date ordering'),
choices=[