How to Set Up Multiple Store Views in Magento 2

Step By Step Guide To Create Magento 2 Multiple Store Views

As you know, creating Magento 2 multiple store views is never an easy task. It can be very confusing. So in this blog, we will show you the best solution for it.

Magento 2 multiple store views are used to meet the multi-language store requirements. One store can have different store views, each store view goes along with a particular language to make it more convenient to sell products for local communities.

Multiple store views help customers to understand your content and do the purchase process more efficiently.

Indeed that different store views also bring a lot of benefits:

  • Store View applies the design and template directory on the server or language pack.
  • Keep the category structure between store views.
  • Generate more sales due to language support to enhance the shopping experience.
  • Allow customers to check out with the display currency of each store view.

Things to bear in mind before we start the guide of creating Magento 2 multiple store views:

  • If you want to create a new website, you should follow every step below
  • However, if new stores share the same catalog and products with your default store, you can skip several initial steps and move toward STEP 3

Now let’s start!

>>> DON’T MISS OUT Everything About Magento 2 Multiple Websites & Multi Stores/Store Views

Create Magento 2 Multiple Store Views in 6 Simple Steps

Follow these 6 simple steps to create Magento 2 multiple store views: 

Step 1: Create root categories

    • Log in to the Magento Admin as a user authorized to create categories.
    • Click Products > Categories.
    • Click Add Root Category.
    • In the Category Name field, enter a unique name to identify this category.
    • Make sure Enable Category is set to Yes.
    • Click Save.

Add root category

Step 2: Create websites

    • Click Stores > Settings > All Stores.
    • On the Stores page, click Create Website.
    • Name: Enter a name to identify the website.
    • Code: Enter a unique code (note: the code must be unique string without space and keep this code for later use).
    • Sort Order: Enter a number to set short order showing in the store lists.
    • Click Save Web Site.

Step 3: Create stores

    • In the Admin panel, click Stores > Settings > All Stores.
    • On the Stores page, click Create Store.
    • 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.
    • Click Save Store.

>>> A FULL TUTORIAL: How To Set Up Different Prices Of Products Per Magento 2 Store View

Step 4: Create store views

    • In the Admin panel, click Stores > Settings > All Stores.
    • On the Stores page, click Create 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. The following figure shows an example.
    • Click Save Store View.

Step 5: Set up the URL of the store

    • In the Admin panel, click Stores > Settings > Configuration > General.
    • From the Store View list at the top of the page, select a website.
    • Select Web option, and click to expand the Base URLs and Base URLs (Secure) sections
    • In the Base URLs section, fill in your store’s URL with one of the following methods:
    • To use your main store URL, you select the Use Default check box.
    • To specify a store URL other than your main, locate the Base URL field, type your store URL, and include the “/” at the end of the URL.
    • Then you repeat in the Base URLs (Secure) section.
    • Finally, you click Save Config.

Step 6: Add the store code to the base URL

Adding the store code to the site’s base URL helps you simplify the process of setting up multiple stores by not creating directories on the Magento file system to store index.php and .htaccess. It also helps you prevent index.php and .htaccess from getting out of sync with the Magento codebase in future upgrades.

Following are the examples of URL with and without store codes in Base URL:

With store code: http://www.yourdomain.com/magento/[store-code]/index.php/url-identifier

Without store code: http://www.yourdomain.com/magento/index.php/url-identifier

    • Go to Stores > Settings > Configuration. Under General section, click Web.
    • From the Store View list at the top of the page, select Default Config.
    • Expand URL Options section.
    • Uncheck the Use system value box, then set this to Yes.
    • Click Save Config.

It’s done! You have successfully set up multiple websites and stores in Magento 2. Here’s the result:

Now your customers can choose which store view is suitable and convenient for them instead of only the default store view.

Besides, if you have multiple store views, the Magento 2 extensions below may be helpful for you. Here’s the list of these extensions:

  • Magento 2 Multiple Store View Pricing allows administrators to set up different prices for the same product on each store view of Magento store and supports setting up base currency per store view easily.
  • Magento 2 Tax per Store View allows the admin to charge specific taxes for the same product per store view.
  • Magento 2 Shopping Cart Price Rule per Store View allows admin to set up shopping cart price rules for each store view and Magento 2 Catalog Price Rule per Store View allows admin to set up different catalog price rules per store view.

>>> OBTAIN NOW: Top 3+ Multiple Store View Pricing For Magento 2 Extensions To Extend Profit Margin

Wrapping Up

In conclusion, we can say that Magento 2 multi-store views are very useful and efficient for any business, offering many advantages. However, to create Magento 2 multiple store views is quite complicated because there are many steps. Here’s a long tutorial, but we hope that it’s useful and easy for you to understand. 

READ MORE about How to Create Catalog Price Rules In Magento 2 HERE!

BSS Commerce is one of the leading Magento extension providers and web development services in the world. With experienced and certified Magento developers, we commit to bringing high-quality products and services to optimize your business effectively. Furthermore, we offer FREE Installation – FREE 1-year Support and FREE Lifetime Update for every Magento extension.

CONTACT NOW to let us know your problems. We are willing to support you every time.

Write A Comment

Name

( 1 ) Comment

  • Suthan alley

    Hey, That is an amazing step by step guide to setup multiple stores in Magento 2. I have also gone through a detailed tutorial to setup Multi stores in Magento 2 and it would be awesome if you could go through it and let me know your views regarding the steps mentioned in the tutorial