Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Run Several Shops From One Magento Install

Magento can run many stores from one admin panel. This guide explains the pieces and shows how to add a second store.

CMS and Apps2 min read14 steps

What is multistore?

Magento is an online shop platform. Multistore means one install can serve more than one shop front. The shops can share products and customers, but show different names, designs or languages. Think of one warehouse with several shop windows.

Magento uses three levels:

LevelMeaning
WebsiteThe top level. It holds customers, prices and payment settings.
StoreSits inside a website. It chooses a root category, which is the main product tree.
Store ViewSits inside a store. It is mostly used for a language or a look.

Warning: Take a full backup first. Wrong settings can break your shop.

Steps (Magento 2)

Part 1: Make the structure

  1. Log in to the admin panel.
  2. Go to Catalog, then Categories. Click Add Root Category and name it, for example Second Shop. Save it.
  3. Go to Stores, then Settings, then All Stores.
  4. Click Create Website. Type a name and a code, such as shop2. Click Save Web Site.
  5. Click Create Store. Pick the new website and the new root category. Save it.
  6. Click Create Store View. Pick the new store, give it a name and code, and set Status to Enabled. Save it.

Part 2: Set the address

  1. Go to Stores, then Configuration, then General, then Web.
  2. Use the scope switcher at the top left. Choose your new website.
  3. Open Base URLs. Untick Use Default and enter the address, for example https://shop2.yourdomain.com/.
  4. Click Save Config.

Part 3: Point the web server

  1. Create the subdomain or add the domain in cPanel. Set its document root to the same folder as your main Magento.
  2. Edit the .htaccess or index.php so Magento knows which website to load. A common method is to set MAGE_RUN_CODE to your website code and MAGE_RUN_TYPE to website.

This step differs by server. Ask Hostvento support if you are unsure.

  1. Clear the cache in System, then Cache Management.
  2. Visit the new address and check that it loads.
Tip: Assign products to the new website in each product's Product in Websites section. A new shop with no assigned products looks empty.

Quick recap

  • Magento has three levels: website, store and store view.
  • Create a root category, then the website, store and store view.
  • Set the base URL for the new website.
  • Point the domain at the same Magento folder.
  • Assign products and clear the cache.