From c901a634e8b2d199632f2f26d4a34f577e4c764b Mon Sep 17 00:00:00 2001 From: Shivam Raj <48693624+shivamraj74@users.noreply.github.com> Date: Mon, 30 Aug 2021 13:17:00 +0530 Subject: [PATCH] Fixed missing phone number in Django Shop Plugin Missing phone number option in link plugin #861 Django Shop plugin is missing due to overriding the LinkForm.LINK_TYPE_CHOICES property. --- shop/cascade/plugin_base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shop/cascade/plugin_base.py b/shop/cascade/plugin_base.py index d3cde3cfe..166c1f7be 100644 --- a/shop/cascade/plugin_base.py +++ b/shop/cascade/plugin_base.py @@ -52,7 +52,8 @@ class CatalogLinkForm(LinkForm): ('exturl', _("External URL")), ('email', _("Mail To")), ] - + if PhoneNumberField: + LINK_TYPE_CHOICES.append(('phonenumber', _("Phone number"))) product = ProductSelectField( label=_("Product"), required=False,