-
Notifications
You must be signed in to change notification settings - Fork 0
Multiple Stores
For some sites, you may need to have multiple Foxycart stores active on a single site. A common scenario for this is a store that requires internationalization (i.e. stores in different languages). The Foxycart cart and checkout templates are in one language set in the Foxycart admin (at least historically, that's how it has been done).
In order to set up different sites using Moxycart, we need to make use of MODX Context Settings. These can override and extend MODX System Settings. So instead of a site having a single System Setting for moxycart.domain, you will end up having additional Context Settings containing different values for the moxycart.domain setting.
- Right-click the secondary context and choose "Edit Context"
- Click on the "Context Settings" tab
- Click on "Create New" to create a new setting specific to this context.
The setting should have the following attributes:
-
Key:
moxycart.domain -
Name:
setting_moxycart.domain -
Description:
setting_moxycart.domain_desc - Field Type: TextField
-
Namespace:
moxycart -
Area Lexicon Entry:
moxycart:default -
Value: put your value here, e.g.
https://your-custom-store.foxycart.com
© 2014 and beyond by Craftsman Coding