Shop Settings Configuration
Shop settings control the core behavior of your EverShop store, including language, currency, and regional preferences. These settings are configured in theconfig/ directory.
Configuration Files
EverShop uses a hierarchical configuration system with environment-specific overrides:config/default.json- Base configuration for all environmentsconfig/development.json- Development environment overridesconfig/production.json- Production environment overrides
Configuration files are merged at runtime. Environment-specific files override values from
default.json.Shop Configuration Schema
The shop settings are defined under theshop key in your configuration files.
Language Setting
The default language code for your store. This determines which translation files are loaded from the
translations/ directory.Supported values: ISO 639-1 language codes (e.g., en, es, fr, de)Default: esCurrency Setting
The default currency code for your store. This affects product pricing, checkout, and order displays.Supported values: ISO 4217 currency codes (e.g.,
USD, EUR, GBP, MXN)Default: USDConfiguration Examples
Basic Shop Configuration
Here’s a typical shop configuration fromconfig/default.json:
Multi-Environment Setup
Development Environment (config/development.json)
Development Environment (config/development.json)
Production Environment (config/production.json)
Production Environment (config/production.json)
Language Configuration
Translation Files
Translation files are stored in thetranslations/{language}/ directory. Each language has separate CSV files for different modules:
Adding a New Language
To add support for a new language:-
Create a new directory under
translations/with the language code: -
Copy and translate the CSV files from an existing language:
-
Update the shop configuration:
-
Rebuild the application:
Currency Configuration
Supported Currencies
EverShop supports any ISO 4217 currency code. Common examples:| Currency Code | Currency Name | Symbol |
|---|---|---|
| USD | US Dollar | $ |
| EUR | Euro | € |
| GBP | British Pound | £ |
| MXN | Mexican Peso | $ |
| CAD | Canadian Dollar | $ |
Currency Display
Currency formatting is automatically handled based on the configured currency code:$99.99
Changing Currency
To change your store’s currency:-
Update the configuration file:
-
Rebuild the application:
- Update your product prices to reflect the new currency
EverShop does not automatically convert prices when you change the currency. You’ll need to update product prices manually or via import.
Best Practices
Environment-Specific Settings
Use environment-specific configuration files for different deployment stages:- Development: Use test currency and language settings
- Production: Use your target market’s language and currency
Configuration Management
- Version Control: Commit
default.jsonand environment files to version control - Secrets: Never store sensitive data in configuration files (use
.envinstead) - Documentation: Document any custom configuration values for your team
Rebuilding After Changes
Common Issues
Language translations not showing
Language translations not showing
Ensure that:
- Translation files exist in
translations/{language}/ - The language code matches exactly (case-sensitive)
- You’ve rebuilt the application after adding translations
- CSV files are properly formatted with correct encoding (UTF-8)
Currency symbol not displaying correctly
Currency symbol not displaying correctly
Verify:
- The currency code is a valid ISO 4217 code
- Your browser supports the currency symbol
- The application has been rebuilt after configuration changes
Related Configuration
- Extension Configuration - Configure enabled extensions
- Theme Configuration - Configure active theme
Next Steps
- Learn about Extension Configuration
- Explore Theme Configuration
- Set up multi-language support for your store