If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

Featured templates

Magento. How to set up and manage Multiple Stores

This tutorial is going to show you how to add and and manage Multiple Stores on your Magento website.

Multiple Stores functionality allows you to power any number of stores or websites within a single Magento installation. It can be useful if you are going to sell products on different domains sharing the same admin panel and to track your sales and customers without having to login to the admin area of each website.

How to create a website from scratch and use Multi-Store Functionality? There a number of different ways to enable the Multi-Store Functionality. This example shows how run two websites www.your_domain.com/magento/ and www.your_domain.com/magento/magento2 under the same admin area. But it will be also useful, if you are going to run the sites under two different domains as well.

Here are the steps to follow:

Step 1. Creating Categories:

  1. Log in to your Magento admin panel.
  2. Go to Catalog -> Manage Categories.
  3. If you want both your websites to share same “Default Category”, select it by clicking on it on the left. Or click Add Root Category to create a new root category different from the existing one.
  4. Once the category is selected, under the General Information set Is Active to Yes

    and under the Display Settings tab in the dropdown set Is Anchor to Yes.

  5. Click Save Category.

Step 2. Store Configuration

  1. Go to System -> Manage Stores
  2. Click the Create Website button

    where you need to enter:

    • Namedomain name of the new website
    • Code – a parameter that will be used in configuring the Apache web server to point to that particular domain name (without spaces)
  3. Click Save Website.
  4. Go to System -> Manage Stores and click the Create Store button.
  5. In the Website drop-down select the website the Name which you created before (2).
  6. Enter aName – the same as the second website name
  7. Select a Root Category in the drop-down– the root category that will be used for this store. (Refer to Step 1 for details)
  8. Click Save Store.
  9. Go to System -> Manage Stores and click the Create Store View button.
  10. In the Store drop-down select the store to which this view will be associated with.
  11. In the Name field enter a name of this store view (i.e. English Version).
  12. In the Code field enter a unique code for this store view.
  13. Select the Status – if enabled, this store view will be accessible from our frontend, otherwise, it will not be accessible
  14. Click Save Store View.

Step 3: Store Configuration in the Server

  1. In this tutorial we are going to see a second website at www.your_domain.com/magento/magento2. We are going to access the magento directory on our server and create a sub-directory folder magento2.
  2. Copy the index.php file as well as the htaccess file from the magento folder over to the magento2 folder. In case you are using a different domain – copy these files to the root folder or your other domain).
  3. Open your index.php file and look for the following line
    "$mageFilename = ‘app/Mage.php’;"
  4. Change it to
    $mageFilename = ‘../app/Mage.php’;
  5. Save the changes
  6. Open up the copied htaccess file.
  7. Add the following to the end of it
    SetEnvIf Host .*base.* MAGE_RUN_CODE="base";
    SetEnvIf Host .*magento_site_2.* MAGE_RUN_TYPE="magento2";

    where magento2 is the website code taken from Step2 point 2 of this tutorial.

  8. Save the changes.
  9. In your Magento admin go to System -> Configuration -> General.
  10. First, make sure that the Default Config is selected in the configuration scope and click Web
  11. Under the Url options set Auto-Redirect to base URl to No
  12. Click Save Config
  13. Change the Default Config to the to newly created website’s view in the configuration scope and click Web
  14. Under the Web click both the Unsecure and Secure tabs. You need to modify the Unsecure Base URL and Secure Base URLs with the corresponding domain name by unchecking the ”Use default [STORE VIEW]checkbox and then save the configuration. In our case we are changing them this way (installed locally):
  15. Click Save Config
  16. Go to your second domain to check it out.

Feel free to check the detailed video tutorial below:

Magento. How to set up and manage Multiple Stores

  • Hemant Ahir

    Great work……!!!

    Rating: 5.0. From 1 vote.
    Please wait...
  • Ankit Jaiswal

    Great Post…Awesome…Thx…

    Rating: 5.0. From 1 vote.
    Please wait...
  • naresh

    thanq …awesome tutorials

    Rating: 5.0. From 1 vote.
    Please wait...
  • syed kadhar

    thank u

    Rating: 5.0. From 1 vote.
    Please wait...
  • Nikunj Vaghasiya

    Thank U For Post

    No votes yet.
    Please wait...
  • Mohamed

    Great tutorial..Awesome

    No votes yet.
    Please wait...
  • Raza Rehman

    Your missing something On Step3:
    You also need to add the following for correct syntax if you are using Local-host
    /../includes/config.php
    /../app/Mage.php
    /../app/bootstrap.php

    No votes yet.
    Please wait...