Customer accounts: Only link orders by email if wanted

This commit is contained in:
Raphael Michel
2021-05-25 15:09:35 +02:00
parent 538dd933fb
commit ea514948b5
6 changed files with 24 additions and 5 deletions

View File

@@ -118,6 +118,17 @@ DEFAULTS = {
"advanced features like memberships.")
)
},
'customer_accounts_link_by_email': {
'default': 'False',
'type': bool,
'form_class': forms.BooleanField,
'serializer_class': serializers.BooleanField,
'form_kwargs': dict(
label=_("Match orders based on email address"),
help_text=_("This will allow registered customers to access orders made with the same email address, even if the customer "
"was not logged in during the purchase.")
)
},
'max_items_per_order': {
'default': '10',
'type': int,