Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Update stores.md

Damian Legawiec606975cda17d
diff --git a/guides/src/content/developer/core/stores.md b/guides/src/content/developer/core/stores.md
index 7e374aebf5..83ae6ad5ad 100644
--- a/guides/src/content/developer/core/stores.md
+++ b/guides/src/content/developer/core/stores.md
@@ -4,10 +4,6 @@ section: core
order: 0
---
-<alert kind="note">
- This section only applies to Spree 4.2 or newer. If you're using an older version, [please upgrade](/developer/upgrades)
-</alert>
-
## Overview
The `Store` model is the center of the Spree ecosystem. Each Spree installation can have multiple Stores.
@@ -34,6 +30,10 @@ To get the default store in code you can call `Spree::Store.default`.
## Localization and Currency
+<alert kind="note">
+ This section only applies to Spree 4.2 or newer. If you're using an older version, [please upgrade](/developer/upgrades)
+</alert>
+
Each Store can have different multiple locales and currencies. This configuration is stored in Store model attributes:
* `default_currency`- this is the default currency this is the default locale/language which will be pre-selected when visiting the store the first time, eg. `USD`
@@ -43,6 +43,10 @@ Each Store can have different multiple locales and currencies. This configuratio
## Checkout configuration
+<alert kind="note">
+ This section only applies to Spree 4.2 or newer. If you're using an older version, [please upgrade](/developer/upgrades)
+</alert>
+
Each Store can be configured to ship to only selected countries. This is achieved via `checkout_zone_id` attribute which holds the ID of the selected [Zone record](/user/configuration/configuring_geography.html).
Available Shipping Methods on the Checkout are determined based on the [Zone and Shipping Methods configuration](/developer/core/shipments.html).