One website multiple stores in magento

One website multiple stores in magento

August 23, 2026 · Illustrated author avatarBy Stefan Bogdanescu
One website multiple stores in magento

Multi-store Setup in Magento: A Comprehensive Guide

Are you looking to create multiple stores using a single instance of Magento? You’re not alone. Many businesses require this setup for various reasons - managing different product categories, serving localized markets, or providing separate shopping experiences for customers.

The scenario presented by the reader is quite common: creating sub-domains for each store (e.g., tech.pstall.com and flower.pstall.com), with independent admin panels but shared customer login credentials. Let’s dive into how you can achieve this in Magento 2.

Setting Up Sub-doamins

  1. Create Virtual Host Entries: You’ll need to configure your server to recognize the sub-domains. For Apache, add entries like these in your virtual hosts file:

    <VirtualHost *:80>
        ServerName tech.pstall.com
        DocumentRoot /var/www/html/tech
        SetEnv MAGE_IS_DEVELOPER_MODE "1"
    </VirtualHost>
    
    <VirtualHost *:80>
        ServerName flower.pstall.com
        DocumentRoot /var/www/html/flower
        SetEnv MAGE_IS_DEVELOPER_MODE "1"
    </VirtualHost>
    
  2. Configure Magento Base URLs: In each store’s configuration file (config.xml), update the base_url and secure_base_url values to match their respective sub-domains.

  3. Update .htaccess Files: Ensure that each store has its own version of the .htaccess file, pointing to the correct root directory.

Creating Separate Stores

  1. Log in to Magento Admin: Navigate to your main website’s admin panel (e.g., pstall.com/admin).

  2. Go to Stores > Settings: Click on the “All Stores” link under the Stores menu.

  3. Create New Store Views and Websites:

    • To create a new store, click on the “Add New Website” button.
    • Enter a name (e.g., Tech Store) and save it.
    • Add new store views and associated admin routes as needed.
  4. Configure Each Store: For each newly created store:

    • Set up basic attributes like website ID, root category, etc.
    • Configure pricing, tax calculations, payment gateways, currencies, etc.
    • Define shipping methods and rates.

Sharing Customer Login Credentials

  1. Enable Customer Sharing in Configuration:

    • Go to Stores > Settings > Configuration (under Advanced).
    • In the menu on the left, navigate to “Advanced” > “Customer Configuration”.
    • Set “Share Customer Accounts” to “Yes”.
  2. Configure Customer Groups: Ensure that customer groups are set up correctly across all stores.

  3. Test Login Functionality: Create a customer account in one store and test logging in using those credentials on the other stores.

Conclusion

Creating multiple stores with shared customer login but independent admin panels is indeed possible in Magento 2. It requires careful configuration of virtual hosts, base URLs, and store settings.

Remember to thoroughly test each aspect - including checkout processes, taxes, shipping rates, and security measures. Also, ensure your server infrastructure can handle the additional load of multiple stores running simultaneously.

Don’t hesitate to reach out for professional assistance if you find yourself overwhelmed with the technicalities. At Laravel Company, we specialize in Magento development services, helping businesses like yours implement complex multi-store setups seamlessly.

Happy building! Let us know how your setup progresses.

Magento 2 Catalog Admin Configuration

Our network