From 6742b6f1e0b7f79f1c565b13d4a9383989c503ee Mon Sep 17 00:00:00 2001 From: Ant Cooper Date: Mon, 2 Dec 2024 12:21:25 +0000 Subject: [PATCH] Incorrect name for settings property countriesList --- docs/commerce/5.x/upgrade.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/commerce/5.x/upgrade.md b/docs/commerce/5.x/upgrade.md index 4d2462361..d3cad047c 100644 --- a/docs/commerce/5.x/upgrade.md +++ b/docs/commerce/5.x/upgrade.md @@ -141,7 +141,7 @@ The singular `store` service has been deprecated. In its place, the `stores` ser Non-project config settings (like the order condition formula and [markets](system/stores.md#markets)) are now accessible via a dedicated [StoreSettings](commerce5:craft\commerce\models\StoreSettings) model: ```twig -{% set allowedCountries = currentStore.settings.countryList %} +{% set allowedCountries = currentStore.settings.countriesList %} {% if cart.shippingAddress.countryCode not in countries|keys %}

Sorry, we don’t fulfill orders to or from {{ countries[cart.shippingAddress.countryCode].name }}!