send canonical mails depending on sales channel

This commit is contained in:
Felix Rindt
2020-07-22 18:20:05 +02:00
parent 1fb861a117
commit 5f502776b1
5 changed files with 40 additions and 6 deletions

View File

@@ -758,6 +758,26 @@ class MailSettingsForm(SettingsForm):
'mail_attach_ical',
]
mail_sales_channel_placed_paid = forms.MultipleChoiceField(
choices=[(ident, sc.verbose_name) for ident, sc in get_all_sales_channels().items()],
label=_('Sales Channels for Checkout Emails'),
help_text=_('Restrict Order placed and paid emails to orders from certain sales channels.'),
widget=forms.CheckboxSelectMultiple(
attrs={'class': 'scrolling-multiple-choice'}
),
required=False,
)
mail_sales_channel_ticket_reminder = forms.MultipleChoiceField(
choices=[(ident, sc.verbose_name) for ident, sc in get_all_sales_channels().items()],
label=_('Sales Channels for Ticket Emails'),
help_text=_('Restrict ticket reminder emails to orders from certain sales channels.'),
widget=forms.CheckboxSelectMultiple(
attrs={'class': 'scrolling-multiple-choice'}
),
required=False,
)
mail_bcc = forms.CharField(
label=_("Bcc address"),
help_text=_("All emails will be sent to this address as a Bcc copy"),