More than 800+ satisfied clients and counting, since 2010

Blog

How to enable multiple Magento webstore login?

Multiple Stores functionality allows you to power number of stores or websites within a single Magento installation. It is 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. There a number of different ways to enable the Multi-Store Functionality. Here is how to enable multiple Magento webstore login.

Below is a method which shows how to run two websites under the same admin area but it will also be useful, if you are going to run the sites under two different domains as well.  

Creating Categories

  • Log in to your Magento admin panel.
  • Go to Catalogue -> Manage Categories.
  • If you want both your websites to share same Category, select it by clicking on it on the left and to create a new root category different from the existing one click Add Root Category
  • Under the General Information set Is Active to Yes and set Is Anchor to Yes under the Display Settings tab in the dropdown once the category is selected
  • Click Save Category.

Store Configuration

  • Go to System -> Manage Stores
  • Click the Create Website button where you need to enter: 
  1. Name – domain name of the new website
  2. Code – a parameter that will be used in configuring the Apache web server to point to that particular domain name
  • Go to System -> Manage Stores and click the Create Store button.
  • In the website drop-down select the website and the Name which you created before.
  • Enter a Name same as the second website name
  • Select a Root Category in the drop-down
  • Go to System -> Manage Stores and click the Create Store View button.
  • In the Store drop-down select the store to which this view will be associated with.
  • Enter a name of this store view in the Name field.
  • Enter a unique code for this store view in the Code field.
  • Select the Status, this store view will be accessible from our frontend if enabled, otherwise it will not be accessible
  • Click Save Store View
  • Access the magento directory on server and create a sub-directory folder magento2.
  • Copy the index.php file as well as the htaccess file from the magento folder over to the magento2 folder.
  • Open your index.php file and look for the following line
  • “$mageFilename = ‘app/Mage.php’;”
  • Change it to
  • $mage Filename = ‘./app/Mage.php’;
  • Save the changes
  • Open up the copied htaccess file.
  • Add the following to the end of it
  • SetEnvIf Host .*base.* MAGE_RUN_CODE=”base”;
  • SetEnvIf Host .*magento_site_2.* MAGE_RUN_TYPE=”magento2“;
  • Save the changes.
  • In your Magento admin go to System -> Configuration -> General
  • Make sure that  in the configuration scope the Default Config is selected and click Web
  • Set Auto-Redirect to base URl to No under the Url options
  • Click Save Config
  • In the configuration scope change the Default Config to the newly created website’s view and click Web
  • Click both the Unsecure and Secure tabs under the Web.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.
  • Click Save Config
  • Go to your second domain to check it out.

Store Configuration

  • Go to System -> Manage Stores
  • Click the Create Website button where you need to enter:
  • Click Save Website.
  • Click Save Store.

Store Configuration in the Server

  • Access the magento directory on server and create a sub-directory folder magento2.
  • Copy the index.php file as well as the htaccess file from the magento folder over to the magento2 folder.
  • Open your index.php file and look for the following line
    “$mageFilename = ‘app/Mage.php’;”
  • Change it to
    $mage Filename = ‘./app/Mage.php’;
  • Save the changes
  • Open up the copied htaccess file.
  • Add the following to the end of it
    SetEnvIf Host .*base.* MAGE_RUN_CODE=”base”;
    SetEnvIf Host .*magento_site_2.* MAGE_RUN_TYPE=”magento2“;
  • Save the changes.
  • In your Magento admin go to System -> Configuration -> General
  • Make sure that  in the configuration scope the Default Config is selected and click Web
  • Set Auto-Redirect to base URl to No under the Url options
  • Click Save Config
  • In the configuration scope change the Default Config to the newly created website’s view and click Web
  • Click both the Unsecure and Secure tabs under the Web.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.
  • Click Save Config
  • Go to your second domain to check it out.

Written by

The author didnt add any Information to his profile yet