Skip to content

Commit 5fc9b88

Browse files
authored
Merge pull request #675 from antcooper/patch-1
Incorrect name for settings property countriesList
2 parents c78ff00 + 6742b6f commit 5fc9b88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/commerce/5.x/upgrade.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ The singular `store` service has been deprecated. In its place, the `stores` ser
141141
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:
142142

143143
```twig
144-
{% set allowedCountries = currentStore.settings.countryList %}
144+
{% set allowedCountries = currentStore.settings.countriesList %}
145145
146146
{% if cart.shippingAddress.countryCode not in countries|keys %}
147147
<p>Sorry, we don’t fulfill orders to or from {{ countries[cart.shippingAddress.countryCode].name }}!</p>

0 commit comments

Comments
 (0)