Skip to content

Commit

Permalink
Incorrect name for settings property countriesList
Browse files Browse the repository at this point in the history
  • Loading branch information
antcooper authored Dec 2, 2024
1 parent b675e16 commit 6742b6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/commerce/5.x/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
<p>Sorry, we don’t fulfill orders to or from {{ countries[cart.shippingAddress.countryCode].name }}!</p>
Expand Down

0 comments on commit 6742b6f

Please sign in to comment.