Magento store setup: websites, store views, company details, emails and VAT
The settings every new Magento store needs before the first product: the website, store and store view structure, configuration scopes, General settings group by group, company details on invoices, the five sender addresses, web and cookie settings, and a VAT rate. Every value from the video, plus a script that sets them on the command line.
Downloads
The values are examples (MageBooster Demo Store, example.com addresses, a fictional phone and VAT number). Put in your own before you run the script.
Websites, stores and store views
└─ Main Website Store store · root category
├─ Default Store View store view · code default · English
└─ German store view · code de · new
A fresh Magento has one of each. A website holds customers (by default), prices and payment settings; a store sets the root category; a store view is usually one language. In Stores › All Stores › Create Store View:
| Field | Value | Note |
|---|---|---|
| Store | Main Website Store | The store view belongs to this store. |
| Name | German | Shown in the language switcher. |
| Code | de | Lowercase letters, numbers, underscores. Used in URLs and code: never change it on a live store. |
| Status | Enabled | |
| Sort Order | empty | Order in the switcher. |
The scope switcher
Stores › Configuration, top left: Scope. Default Config applies to everything; a website overrides it; a store view overrides its website. The label under each field shows how far down it can be changed:
| Label | Can be set at |
|---|---|
[global] | Default Config only |
[website] | Default Config and each website |
[store view] | Default Config, each website and each store view |
In a website or store view scope each field has a Use Default or Use Website box. Ticked means inherited; untick it to set a value for this scope only. In the video the German view gets its own weight unit: Locale Options › Weight Unit, untick Use Website, kgs, Save Config.
Locale in production mode: the Locale field is locked in the admin, because every language needs its own static files. Set it on the command line and deploy the files:
cd /var/www/magento # production mode locks the Locale field in the admin: set it for the German store view (code de) here sudo -u magento bin/magento config:set --scope=stores --scope-code=de general/locale/code de_DE # and build the static files for that language (here only the Luma storefront theme) sudo -u magento bin/magento setup:static-content:deploy de_DE --area=frontend --theme=Magento/luma --jobs=4 sudo -u magento bin/magento cache:flush
General settings, group by group
Stores › Configuration › General › General has five groups:
| Group | Fields | In the video |
|---|---|---|
| Country Options | Default Country, Allow Countries, Zip/Postal Code is Optional for, European Union Countries, Top destinations | Default Country = United Kingdom |
| State Options | State is Required for, Allow to Choose State if It is Optional for Country | unchanged |
| Locale Options | Timezone, Locale, Weight Unit, First Day of Week, Weekend Days | Europe/London, kgs, Monday |
| Store Information | Store Name, Store Phone Number, Store Hours of Operation, Country, Region/State, ZIP/Postal Code, City, Street Address, Street Address Line 2, VAT Number | MageBooster Demo Store, +44 20 7946 0000, Mon-Fri 9:00-17:00, United Kingdom, AB1 2CD, London, 1 Example Street, GB123456789 |
| Single-Store Mode | Enable Single-Store Mode | No: it only works with one store view |
Store Information is your company: the sales emails use it, and themes can show it on the storefront.
Company details on documents
| Where | Field | What it does |
|---|---|---|
| Sales › Sales › Invoice and Packing Slip Design | Logo for PDF Print-outs, Logo for HTML Print View, Address | The logo and the address on PDF invoices, packing slips and credit memos. |
| Sales › Shipping Settings › Origin | Country, Region/State, ZIP/Postal Code, City, Street Address | Where parcels ship from. Carriers use it to calculate rates. |
Store email addresses
General › Store Email Addresses has five sender identities, each with a Sender Name and a Sender Email:
| Identity | Example in the video | Typical use |
|---|---|---|
| General Contact | MageBooster Demo Store · hello@example.com | newsletter, general messages |
| Sales Representative | MageBooster Sales · sales@example.com | orders, invoices, shipments, credit memos |
| Customer Support | MageBooster Support · support@example.com | account emails |
| Custom Email 1 / 2 | empty | your own, e.g. a returns desk |
Which identity sends which email is set where the email lives (templates come in a later lesson):
| Setting | Email Sender |
|---|---|
| Sales › Sales Emails › Order, Invoice, Shipment, Credit Memo | Sales Representative (default) |
| Customers › Customer Configuration › Create New Account Options | Customer Support (changed from General Contact) |
| Customers › Newsletter › Subscription Options: Confirmation and Success | General Contact |
Web and cookie settings
General › Web:
| Group | Field | Value | Why |
|---|---|---|---|
| Url Options | Add Store Code to URLs | No | Yes puts the store view code in every link: /de/.... |
| Search Engine Optimization | Use Web Server Rewrites | Yes | URLs without index.php. |
| Base URLs / Base URLs (Secure) | Base URL, Use Secure URLs on Storefront, Use Secure URLs in Admin | https, Yes, Yes | The store addresses; HTTPS everywhere. |
| Default Cookie Settings | Cookie Lifetime, Cookie Path, Cookie Domain, Use HTTP Only | 3600 (default), empty, empty, Yes | Session cookie; HTTP only keeps scripts away from it. |
| Default Cookie Settings | Cookie Restriction Mode | Yes | Shows the cookie notice; Magento waits for “Allow Cookies”. |
On the storefront the cookie notice shows at the bottom of the page, and the header gets a language switcher with both store views.
A VAT rate
Stores › Tax Zones and Rates › Add New Tax Rate:
| Field | Value |
|---|---|
| Tax Identifier | UK VAT |
| Country | United Kingdom |
| Zip/Post is Range | No |
| Zip/Post Code | * (all) |
| Rate Percent | 20 |
A rate does nothing on its own: Stores › Tax Rules ties it to product and customer tax classes. That, and how prices show with VAT, is in the VAT lesson.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
| Locale field is grey in a store view | Production mode locks it. Use the config:set and setup:static-content:deploy commands above. |
| New Tax Rate page is empty (only the buttons show) | Seen on our Magento 2.4.9 test store with PHP 8.5 once a second store view existed: the form stops on a PHP deprecation (var/log/exception.log: “Using null as an array offset”, Data/Form.php). Add the VAT rates before the second store view, or add them through the REST API (POST /rest/V1/taxRates). |
| Cookie notice does not show | Full page cache: bin/magento cache:flush, then reload. Check Cookie Restriction Mode at the website scope too. |
| A setting has no effect on one store view | A narrower scope overrides it: switch the scope to that website or view and look for an unticked Use Website box. |
| Emails arrive from the wrong address | Check the Email Sender of that email (Sales Emails, Customer Configuration, Newsletter), then the identity in Store Email Addresses. |
See what is set, and at which scope:
cd /var/www/magento # what is set, and at which scope sudo -u magento bin/magento config:show general/store_information sudo -u magento bin/magento config:show --scope=stores --scope-code=de general/locale
Next lesson
Multisite: three websites on three domains, with magento-vars.php so nginx opens the right website for each domain.
▶ Watch every MageBooster lesson on YouTube: all lessons in order · subscribe to the channel

