Skip to content

Commit

Permalink
also add change to shipping countries returned to v2 subscription che…
Browse files Browse the repository at this point in the history
…ckout
  • Loading branch information
Moggach committed Jul 18, 2024
1 parent 776e9e1 commit 292c578
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 292c578

Please sign in to comment.