diff --git a/src/pretix/base/settings.py b/src/pretix/base/settings.py index 42c5f48d6..3d3ddac21 100644 --- a/src/pretix/base/settings.py +++ b/src/pretix/base/settings.py @@ -73,6 +73,10 @@ DEFAULTS = { 'default': 'False', 'type': bool, }, + 'invoice_address_explanation_text': { + 'default': '', + 'type': LazyI18nString + }, 'invoice_include_free': { 'default': 'True', 'type': bool, diff --git a/src/pretix/control/forms/event.py b/src/pretix/control/forms/event.py index 5f7f300bd..a8632593a 100644 --- a/src/pretix/control/forms/event.py +++ b/src/pretix/control/forms/event.py @@ -627,6 +627,13 @@ class InvoiceSettingsForm(SettingsForm): "products."), required=False ) + invoice_address_explanation_text = I18nFormField( + label=_("Invoice address explanation"), + required=False, + widget=I18nTextarea, + widget_kwargs={'attrs': {'rows': '2'}}, + help_text=_("This text will be shown above the invoice address form during checkout.") + ) invoice_numbers_consecutive = forms.BooleanField( label=_("Generate invoices with consecutive numbers"), help_text=_("If deactivated, the order code will be used in the invoice number."), diff --git a/src/pretix/control/templates/pretixcontrol/event/invoicing.html b/src/pretix/control/templates/pretixcontrol/event/invoicing.html index e32129d58..63aa7e7da 100644 --- a/src/pretix/control/templates/pretixcontrol/event/invoicing.html +++ b/src/pretix/control/templates/pretixcontrol/event/invoicing.html @@ -42,6 +42,7 @@ {% bootstrap_field form.invoice_additional_text layout="control" %} {% bootstrap_field form.invoice_footer_text layout="control" %} {% bootstrap_field form.invoice_logo_image layout="control" %} + {% bootstrap_field form.invoice_address_explanation_text layout="control" %}