Is there a problem that needs an urgent fix?Urgent fix?Get emergency help →
Blog

Practical Magento 2 guides on upgrades, security, speed and migration, written by the MageBooster team.

Magento 2.4.9 store setup: websites, store views, company details, emails and VAT (Lesson 4)

Set up a new Magento 2.4.9 store: websites, stores and store views, the scope switcher, General settings group by group, company details, sender email addresses, web and cookie settings, and a VAT rate.
Magento 2.4.9 store setup: store views, emails and VAT
Lesson 4MageBooster Lessons · Magento 2.4.9

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.

Updated October 2026Video about 8 minLevel Store owners and developers

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 website · customers, prices, payment and shipping
└─ 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:

FieldValueNote
StoreMain Website StoreThe store view belongs to this store.
NameGermanShown in the language switcher.
CodedeLowercase letters, numbers, underscores. Used in URLs and code: never change it on a live store.
StatusEnabled
Sort OrderemptyOrder in the switcher.
Saving asks “This operation can take a long time”: Magento creates the URL rewrites for the new view. Click OK.

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:

LabelCan 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:

magento-store-view-locale.shDownload

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:

GroupFieldsIn the video
Country OptionsDefault Country, Allow Countries, Zip/Postal Code is Optional for, European Union Countries, Top destinationsDefault Country = United Kingdom
State OptionsState is Required for, Allow to Choose State if It is Optional for Countryunchanged
Locale OptionsTimezone, Locale, Weight Unit, First Day of Week, Weekend DaysEurope/London, kgs, Monday
Store InformationStore Name, Store Phone Number, Store Hours of Operation, Country, Region/State, ZIP/Postal Code, City, Street Address, Street Address Line 2, VAT NumberMageBooster Demo Store, +44 20 7946 0000, Mon-Fri 9:00-17:00, United Kingdom, AB1 2CD, London, 1 Example Street, GB123456789
Single-Store ModeEnable Single-Store ModeNo: 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

WhereFieldWhat it does
Sales › Sales › Invoice and Packing Slip DesignLogo for PDF Print-outs, Logo for HTML Print View, AddressThe logo and the address on PDF invoices, packing slips and credit memos.
Sales › Shipping Settings › OriginCountry, Region/State, ZIP/Postal Code, City, Street AddressWhere 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:

IdentityExample in the videoTypical use
General ContactMageBooster Demo Store · hello@example.comnewsletter, general messages
Sales RepresentativeMageBooster Sales · sales@example.comorders, invoices, shipments, credit memos
Customer SupportMageBooster Support · support@example.comaccount emails
Custom Email 1 / 2emptyyour own, e.g. a returns desk

Which identity sends which email is set where the email lives (templates come in a later lesson):

SettingEmail Sender
Sales › Sales Emails › Order, Invoice, Shipment, Credit MemoSales Representative (default)
Customers › Customer Configuration › Create New Account OptionsCustomer Support (changed from General Contact)
Customers › Newsletter › Subscription Options: Confirmation and SuccessGeneral Contact
Use addresses on your own domain and set up SPF, DKIM and DMARC for it, or the emails land in spam.

Web and cookie settings

General › Web:

GroupFieldValueWhy
Url OptionsAdd Store Code to URLsNoYes puts the store view code in every link: /de/....
Search Engine OptimizationUse Web Server RewritesYesURLs without index.php.
Base URLs / Base URLs (Secure)Base URL, Use Secure URLs on Storefront, Use Secure URLs in Adminhttps, Yes, YesThe store addresses; HTTPS everywhere.
Default Cookie SettingsCookie Lifetime, Cookie Path, Cookie Domain, Use HTTP Only3600 (default), empty, empty, YesSession cookie; HTTP only keeps scripts away from it.
Default Cookie SettingsCookie Restriction ModeYesShows 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:

FieldValue
Tax IdentifierUK VAT
CountryUnited Kingdom
Zip/Post is RangeNo
Zip/Post Code* (all)
Rate Percent20

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

SymptomCause and fix
Locale field is grey in a store viewProduction 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 showFull 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 viewA 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 addressCheck 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.

Setting up a new Magento store?We set up Magento and Mage-OS stores, multi-language and multi-country, with VAT and email configured from day one.

▶ Watch every MageBooster lesson on YouTube: all lessons in order · subscribe to the channel

Installation guides: Magento 2.4.9 on Ubuntu Mage-OS Hyvä
Spotted a mistake on this page? Tell us and we will fix it right away.

Free Site Audit

Send your store details. We check speed, security and extensions, then reply with three quick wins within 3 working days.

Let's talk

Get a quote

Tell us about your store and we’ll reply within one working day. Prefer to chat? Say hello from WhatsApp

MageBooster Book a UnoPim demo See UnoPim live with products like yours. A new PIM or a move from Akeneo: we reply with a plan, a timeline and a quote.
✓ Official UnoPim partner✓ AI agent set up for your team✓ Connected to Magento
MageBooster Start your Hyvä project From scratch or from your current store. We reply with a project plan, a timeline and a quote.
✓ Design and structure by us✓ Hyvä-optimised server✓ Bonus modules included

MageBooster

Let us get in touch with you

Leave your details and your store address. We look at your store first and contact you within one business day, by phone, WhatsApp or email, whichever you prefer.

Partner with us