From 292c5789b1dbb276b622fc5cc209aa72e6fe74c7 Mon Sep 17 00:00:00 2001 From: Moggach Date: Thu, 18 Jul 2024 11:07:06 +0000 Subject: [PATCH] also add change to shipping countries returned to v2 subscription checkout --- app/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/views.py b/app/views.py index ab2721d..98ac5b4 100644 --- a/app/views.py +++ b/app/views.py @@ -1297,6 +1297,10 @@ def create_checkout_context( next = "/" if gift_mode: checkout_args["metadata"]["gift_mode"] = True + checkout_args["shipping_address_collection"] = { + "allowed_countries": ShippingZone.all_country_codes + + } next = reverse_lazy("completed_gift_purchase") else: next = reverse_lazy("completed_membership_purchase")