Skip to content

Book a call with Gigi

eCommerce 16 min read

Magento 2 Multistore Configuration: A Complete Walkthrough

Magento 2 Multistore Configuration

Summary

Magento 2 multistore is a powerful feature that allows businesses to expand their eCommerce presence while managing everything from a single backend. By understanding Magento’s four-tier hierarchy, preparing correctly, and following the right step-by-step setup process, you can create and manage multiple stores with ease.

While setting up multiple stores comes with challenges, proper performance optimization, SEO management, and server-side configurations can help you overcome them.

Now that you have a complete walkthrough, it’s time to implement Magento 2 multistore and scale your business effortlessly!

Did you know that Magento powers over 250,000 eCommerce stores worldwide, making it one of the most potent platforms for online businesses? Among its many standout capabilities, the Magento 2 multistore configuration is an invaluable feature for companies looking to expand their operations globally.

Consider a scenario where a company wants to cater to diverse markets with distinct product catalogs and branding strategies. Setting up individual platforms for each market can be resource-intensive and cumbersome. Magento 2’s multistore capability addresses this challenge by allowing businesses to manage multiple stores under a single Magento instance, making it easier to scale, localize, and manage products across different markets. This powerful functionality makes Magento development an essential choice for businesses seeking flexibility and efficiency in their eCommerce operations.

Magento 2 Multistore Configuration Process

In this guide, we will walk you through the entire Magento 2 multistore configuration process, explain the key concepts, and share tips for ensuring a smooth setup. This comprehensive guide will provide you with the knowledge you need to leverage Magento’s multistore capabilities to their fullest.

Ready to set up your Magento 2 multistore? Get expert guidance and streamline your eCommerce operations today!

What is a Magento 2 Multistore?

A Magento 2 multistore is a powerful feature that allows businesses to manage multiple online stores from a single Magento installation. It enables merchants to streamline operations while offering distinct brand identities, catalogs, pricing, and customer experiences across various stores.

With a multistore setup, businesses can control different websites, stores, and store views from one central admin panel, simplifying tasks like inventory management, order processing, and customer support. The ability to maintain unique product catalogs and pricing for each store ensures businesses can cater to different markets or customer segments effectively. The businesses undergoing Magento 2 migration can make use of the multistore functionality to seamlessly transition multiple storefronts while maintaining operational efficiency and scalability.

Why Should You Consider a Multistore Setup?

When you’re growing an eCommerce business, scaling becomes a critical factor. If you plan to expand to different markets or cater to various customer segments, Magento 2 multistore offers a range of benefits. Below are some compelling reasons why you should consider adopting a multistore setup:

  • Operational Efficiency: A single Magento installation to manage multiple stores reduces overhead and operational complexity.
  • Scalability: Easily expand to new regions or markets by creating additional stores or views without the need for separate installations.
  • Localization: Tailor each store’s content to specific regional preferences, such as currency, language, and product offerings, which can improve customer satisfaction and sales.
  • Consolidated Data: Track sales, inventory, and customer data for all stores in one place, streamlining reporting and decision-making.
  • Brand Segmentation: Operate distinct brands under one platform with differentiated product catalogs and branding strategies.

The ability to manage everything from one backend makes Magento 2 multistore a cost-effective and efficient solution for businesses expanding into new markets.

Understanding Magento 2 Store Hierarchy

Understanding Magento 2 Store Hierarchy

To effectively configure a multistore setup in Magento 2, it’s essential to understand how Magento 2’s store hierarchy works. Magento follows a four-tier architecture designed to offer flexibility and control over multiple stores, ensuring that each entity operates cohesively within the overarching system.

Magento’s Four-tier Architecture

1. Global Level

The Global Level is the foundation of a Magento installation. Unlike the other levels, it cannot be duplicated and has a single, overarching configuration for the entire system. This level provides essential configurations that apply universally across all websites, stores, and store views in the Magento environment.

At the Global Level, you manage three key elements: stock configuration, pricing, and customer data. Stock settings define how inventory is tracked across all stores, ensuring consistent product availability. Pricing at the global level establishes uniform pricing for products, eliminating discrepancies across different websites and stores. Additionally, customer data is consolidated into a central database, streamlining account management and customer experience across all stores.

Changes made at the Global Level affect the entire Magento setup, making it a crucial point for managing high-level configurations.

2. Website Level

The Website Level in Magento 2 serves as the second tier in the hierarchy and allows merchants to group multiple stores under a common umbrella. By default, Magento installs a “Main Website,” but you can create additional websites for different markets, customer groups, or product types. Each website has its own domain and IP address, allowing for independent configurations while sharing the same backend.

Key features at the website level include:

  • Design and Layout: Customize the user experience with different themes or templates.
  • Shipping and Payment Methods: Set region-specific shipping rates and payment options.
  • Pricing and Tax Fees: Apply distinct tax rates and pricing models based on the website's geographical location or target market.

Having multiple websites enables businesses to manage distinct customer bases, shopping carts, and inventories. It simplifies data sharing between websites while maintaining the flexibility to manage separate product catalogs and operations. Magento’s website-level structure provides efficient control and scalability for growing businesses.

3. Store Level

The Store level within Magento 2 enables the creation of multiple stores under a single website, each with its own distinct product catalog, categories, and configurations. While these stores operate under the same parent website, they share essential administrative and checkout features, providing consistency in user experience. This includes pricing, tax rates, currencies, and shipping methods, ensuring that the overall structure is cohesive while still allowing customization at the store level.

At this stage, the root category is crucial, as it forms the foundation for organizing and managing products within each store. It determines the top-level category hierarchy, impacting how products are grouped and displayed to customers. However, any changes made to store settings at this level, such as pricing, tax rates, and product categories, will be reflected across all sibling stores within the same website.

This setup makes Magento particularly valuable for businesses selling a wide variety of products, as it supports streamlined product management through a centralized admin panel. Additionally, it offers flexibility in customizing the shopping experience, such as tailoring checkout processes, adding cart functionalities, or managing inventory while maintaining a unified backend.

Optimize your Magento 2 setup for scalability and growth

4. Store View Level

The Store View is the final layer in Magento’s hierarchy, allowing businesses to customize the shopping experience for specific customer segments. It primarily serves to provide different languages, currencies, and localized content, ensuring that your store caters to diverse markets effectively.

Each Store View can display content in different languages and adjust currency symbols to suit regional preferences. This feature is essential for businesses operating internationally or targeting multilingual audiences. While all Store Views share the same product catalog, you can set distinct prices for the same products based on the region or customer segment, offering greater flexibility in pricing.

Additionally, Store Views allow for the customization of labels, text, and templates, helping businesses create a unique and personalized shopping experience for each audience. This level of customization improves customer engagement by tailoring the look, feel, and functionality of the store according to specific regional or linguistic requirements.

Key Benefits of a Multistore Setup in Magento 2

What Are the Key Benefits of a Multistore Setup in Magento 2?

1. Simplified Management

With a multistore configuration, you can manage all your stores from a single admin panel. This centralization significantly reduces administrative effort, allowing businesses to handle inventory, orders, customer data, and promotions across multiple stores efficiently. Instead of logging into separate accounts for each store, merchants can streamline their operations through one unified backend.

2. Customization for Different Markets

A multistore setup is especially beneficial for businesses with international or regional markets. Each store can have customized features, including localized languages, currencies, pricing, and tax settings. This flexibility ensures that your business can cater to specific cultural preferences and legal requirements, making the shopping experience more relevant and user-friendly for customers in different countries or regions.

3. Targeted Marketing and Product Offering

Each store in a multistore setup can have its own distinct product catalog, marketing strategy, and promotions. For instance, you can run a specialized store for premium products and another for budget-friendly items, tailoring pricing and promotions accordingly. This segmentation allows for more effective targeting, improving customer engagement and conversion rates.

4. Cost Efficiency

Instead of managing separate Magento installations for each storefront, which requires additional resources and administrative overhead, a multistore setup allows you to share resources across multiple stores. You can operate different stores under a single Magento instance, which reduces infrastructure costs, maintenance efforts, and the complexity of managing separate databases.

5. Scalability

As your business grows, a multistore setup provides the scalability needed to add new stores seamlessly. Whether you want to target new geographic locations, expand product categories, or launch new brands, Magento’s multistore architecture allows for easy expansion without the need to reconfigure the entire system.

6. Consistent Brand Identity with Flexibility

A multistore setup enables businesses to maintain a consistent brand image across all stores while allowing for flexibility in design and content. While the stores share the same core back-end, you can customize the appearance and content of each store to reflect the specific target market, whether through themes, layouts, or promotions.

7. Streamlined Customer Data Management

In a multistore environment, customer data is stored centrally, providing a 360-degree view of customer interactions across all stores. This centralized approach simplifies customer relationship management (CRM) and allows for personalized communication and promotions. Businesses can better understand purchasing behavior and improve cross-selling opportunities across their stores.

8. Improved SEO Performance

Running multiple stores under a single installation can enhance your SEO strategy. With the ability to set distinct URLs, domain names, and metadata for each store, you can target specific keywords and regions more effectively. Furthermore, a unified backend allows for streamlined SEO management, saving time and improving the overall search engine visibility of your stores.

Preparing for a Multistore Setup

Preparing for a Multistore Setup

Before diving into the setup process, here are a few things you need to prepare.

1. Choose the Right Hosting Environment

Magento 2 requires a robust hosting solution that supports multiple stores under a single instance. Consider these options:

  • Dedicated Server: Best for large businesses with high traffic.
  • Cloud Hosting: Scalable and flexible for growing stores.
  • VPS Hosting: Ideal for medium-sized businesses.

2. Plan Your Store Structure

  • How many websites do you need? (e.g., different brands or international markets)
  • How will stores be categorized? (e.g., product-based, region-based)
  • Do you need multiple languages? (For different geographies)

3. Prepare Domain and SSL Certificates

  • Ensure you have a primary domain and any additional subdomains or separate domains if needed.
  • Purchase and install SSL certificates for security.

4. Check Magento 2 Version and Extensions

  • Ensure you’re using the latest version of Magento 2 for better performance.
  • Install necessary multistore-compatible extensions if required.

Once you’ve completed these preparations, you’re ready to set up multiple stores!

Steps to Set Up Multiple Stores in Magento 2

How Do You Set Up Multiple Stores in Magento 2?

1. Setting Up Websites and Hosting Services

Only authorized users can create websites, stores, and store views. If you have the required access, follow these steps to set up a new website:

  • Log in to your Magento Admin Panel.
  • Navigate to Stores → Settings → All Stores.
  • Click on Create Website.
  • Fill in the required information:
  • Name: The name of your website.
  • Code: A unique identifier (used in server configurations).
  • Sort Order: Defines the order in which the websites are listed.
  • Click Save Website.

2. Creating Stores and Root Categories

  • After creating the website, return to Stores → Settings → All Stores.
  • Click on Create Store.
  • Complete the following fields:
  • Website: Select the website you just created.
  • Name: The name of your store.
  • Root Category: Assign a root category (create a new one if necessary).
  • Click Save Store.
Creating Stores and Root Categories

3. Adding Store Views

Store views allow customers to switch between different presentations of your store, such as languages or regional settings.

  • Navigate to Stores → Settings → All Stores
  •  Click on Create Store View.
  •  Provide the following details:
  • Store: Select the store you created.
  • Name: Name of the store view (e.g., English, Spanish).
  • Code: A unique code for the store view (e.g., en, es).
  • Status: Set to Enabled.
  • Sort Order: Determine its position in the store view list.
  • Click Save Store View.
  • To set up more store views, repeat the above steps.

Every business has unique needs — let’s customize your Magento 2 multistore for maximum efficiency!

4. Setting Up the Base URL

Each website in Magento 2 requires a distinct URL. To ensure proper access, you need to update the base URL accordingly.

Steps to update the base URL:

  • Navigate to Stores → Settings → Configuration.
  • In the Configuration panel, select Web under General.
  •  In the Store View dropdown (top-left), select the store view you want to configure.
  • Expand the Base URLs section.
  • Uncheck the Use system value checkbox.
  • Update the URL to match the new store and click Save Config.
  • Repeat these steps for each store view.
 Setting Up the Base URL

5. Adding the Store Code to the Base URL

To include the store code in the URL:

  • Navigate to Stores → Settings → Configuration.
  • Select Web under General.
  • In the Default Config view, expand the URL Options section.
  • Set Add Store Code to URLs to Yes.
  • Click Save Config.
  • Clear the cache by navigating to System > Cache Management and clicking Flush Magento Cache.
  • Repeat these steps for each store view.

6. Changing the Default Store View Base URL

Once your stores are set up, you need to assign the correct base URLs for each store view.

  • Go to Stores > Settings > Configuration.
  • In the top-left corner, use the dropdown menu to choose the store view you want to edit.
  • Modify Base URLs:
  • Expand the Web section.
  • Under Base URLs, uncheck Use System Value.
  • Enter the correct Base URL for the store.
  • Modify Secure Base URLs:
  • Expand the Secure section.
  • Uncheck Use System Value.
  • Enter the correct Secure Base URL.
  • Click Save Config.
  • Navigate to System > Cache Management and click Flush Magento Cache to apply changes.

Repeat these steps for each store view.

Changing the Default Store View Base URL

7. Server-side Configurations

Magento 2’s multistore setup often requires additional server-side configurations to ensure each store functions properly. Below are the essential steps for configuring NGINX and Apache servers for a multistore environment.

Configuring NGINX for Magento 2 Multistore

NGINX is a high-performance web server that efficiently handles multiple Magento 2 stores. The setup involves:

  • Creating a Roadmap – Plan how multiple websites will be structured within the server. Define separate domains, subdomains, or subdirectories for each store.
  • Setting Up NGINX Virtual Hosts – Assign distinct store URLs, ensuring proper routing for each website.
  • Modifying the NGINX Configuration File – Customize the settings to align with Magento’s multistore structure.
  • Updating Base URL Configurations – Assign unique base URLs for each store via the Magento Admin Panel.
  • Clearing Cache and Restarting Services – Clear Magento’s cache and refresh NGINX settings to apply changes.
  • Verifying the Store Setup – Test each store URL to ensure proper functionality and add a static route to the host if required.

Configuring Apache for Magento 2 Multistore

Apache is another widely used web server that supports Magento 2 multistore functionality. The setup process includes:

  •  Defining Store Parameters in the Entry Point Script – Specify store codes and website settings for Magento to recognize each store.
  • Creating a Setup Roadmap – Establish a structured plan for hosting multiple websites under a single Magento installation.
  • Setting Up Websites, Stores, and Store Views in Magento Admin Panel – Configure store settings before linking them to the server.
  • Creating Apache Virtual Hosts – Assign store URLs, ensuring Magento correctly serves each store independently.
  • Testing and Verifying Each Store – Check if the store URLs resolve correctly and that configurations are properly applied.

Once these steps are completed, your Magento 2 Multistore setup will be fully functional!

Possible Challenges While Setting Up the Store

Performance and Speed Issues

Running multiple stores on a single Magento installation can slow down performance due to increased server load. Enabling Full Page Cache and using caching solutions like Varnish and Redis improve speed and scalability. Also, opt for a robust hosting provider with optimized server configurations for Magento multistore setups. Partnering with a reliable dedicated hosting provider can ensure optimal performance and security for your e-commerce platform.

SEO and Duplicate Content Challenges

Search engines may penalize sites for duplicate content when multiple stores share similar product descriptions and pages. Implementing canonical tags, optimizing XML sitemaps, and configuring robots.txt help avoid penalties.

Store View Switching Problems

Customers may face issues switching between store views due to incorrect URL configurations or JavaScript settings. Proper setup ensures smooth navigation.

Domain Mapping Errors

Incorrect DNS or virtual host configurations can lead to accessibility issues. Double-checking domain mapping and using SSL certificates prevents errors and enhances security.

Possible Challenges While Setting Up the Store

Managing Multiple Currencies and Payment Methods

Catering to international markets requires supporting multiple currencies and region-specific payment methods. Incorrect currency conversion settings can lead to pricing discrepancies and checkout errors. Businesses should configure different payment gateways based on regional preferences and enable currency conversion settings to reflect real-time exchange rates.

Inventory Management Challenges

Managing stock levels across multiple stores, especially with shared products, can be complex. Implementing inventory management tools allows real-time stock synchronization, preventing overselling and ensuring accurate tracking.

By addressing these challenges proactively, you ensure a smooth and efficient multistore experience for both customers and admins.

Best Practices for Magento 2 Multistore Management

To ensure smooth Magento 2 Multistore operations, consider these best practices.

  • Regular Backups: Perform regular backups to avoid data loss during configurations or updates.
  •  Optimize Server Resources: Ensure that your server can handle the load of multiple stores, especially if they experience heavy traffic.
Best Practices for Magento 2 Multistore Management
  • Proper Tax and Shipping Settings: Customize tax and shipping rules for each store to match local laws and regulations.
  • Monitor Performance: Regularly check the performance of each store and optimize accordingly.
  • SEO Best Practices: Optimize each store view for regional SEO, including using hreflang tags to signal language/region targeting to search engines.

Struggling with Magento 2 multistore setup? Our experts can simplify it for you!

Share this article