How to Set up multiple websites, stores, and store views in the Admin Magento 2

No Comments

For creating multiple website and stores in Magento 2 you have to follow few steps:-

If you want different categories for new website you have to create new root category and if you want same categories for new website then you can assign same root category to new website.

1.)How to create New root category.

i)Login to Magento 2 admin and Click Catalog > Categories.

ii) Click Add Root Category , fill required fields such as unique name to identify this category and enable category .

iii) Click on save

New root category
Create New Root Category

2.) Step 2: Create new websites

i) Login to admin and click on Stores > Settings > All Stores.

ii) On the Stores page, click Create Website.

Create new website
Create New website

=>Name—Enter a name to identify the website.
=> Code—Enter a unique code; for example, if you have a London store, you can enter london
=> Sort Order—Enter an optional numerical sort order.

iii) Click save button and save new website.

3.)Create new stores for new website.

You can create multiple stores for one website and multiple store views for each store.

i) Navigate to Stores > Settings > All Stores.click on Create Store button and fill following details

=>Web Site—Click the name of the website with which to associate this store.
=>Name—Enter a name to identify the store.
=>Code—Enter a unique code to identify the store.
=>Root Category—Click the name of the root category for this store.

ii) Click save button.

Create new store for new website

4.) Create new store views for new store.

i) Navigate to Stores > Settings > All Stores.click on create new store view

=>Store—Click the name of the store with which to associate this store view.
=>Name—Enter a name to identify this store view.
=>Code—Enter a unique name to identify this store view.
=>Status—Select Enabled.

ii) Click on save button

Please check below screenshot

Create new store views

5.)Change the website base URL

i) to access website using new domain url please change the base url . navigate to Stores > Settings > Configuration > General > Web

ii) From the Store View list at the top of the page, click the name of one of your websites as the following figure shows.

iii) Change secure base url and unsecure base url and save.

Please read out next blog how to setup multidomain multiwebsite on Nginx and Apache.

we are expert in developing Magento 2 multi-website on multi-domain so feel free to contact us for multiwebsite setup .

About us and this blog

We are a digital magento 2  development agency with a focus on helping our customers achieve great results across several key areas.

More from our blog

See all posts

Leave a Comment