Allow to redirect to checkout directly after adding a product to the cart

This commit is contained in:
Raphael Michel
2019-03-27 16:45:15 +01:00
parent d8a7de8b23
commit 697cdfd5c9
7 changed files with 20 additions and 3 deletions

View File

@@ -1074,6 +1074,10 @@ class DisplaySettingsForm(SettingsForm):
label=_('Ask search engines not to index the ticket shop'),
required=False
)
redirect_to_checkout_directly = forms.BooleanField(
label=_('Directly redirect to check-out after a product has been added to the cart.'),
required=False
)
def __init__(self, *args, **kwargs):
event = kwargs['obj']

View File

@@ -17,6 +17,7 @@
{% if form.frontpage_subevent_ordering %}
{% bootstrap_field form.frontpage_subevent_ordering layout="control" %}
{% endif %}
{% bootstrap_field form.redirect_to_checkout_directly layout="control" %}
</fieldset>
<fieldset>
<legend>{% trans "Shop design" %}</legend>