Magento Web Development

How to Setup Magento With Multiple Stores?

Rushik Shah User Icon By: Rushik Shah

Magento is a quick and easy eCommerce software. It is open-source and thus is free to download and customize to suit the individual requirements of any company. There are many e-commerce softwares available and there are even more options in recent times.

Almost all of them offer a great many features but those are usually additional features. As for Magento, it offers a great many features and they are all in-built. Besides this Magento also offers a great number of additional store features too. One such built-in feature of Magento is the Multi-Store setup feature.

 

The Multi-Store functionality of Magento can be set up in this way. It is possible to share the same set of categories in two stores or have a different set for each. While nothing is required to be done with the categories if the same set is being used if a different set is used then a new root category needs to be created. There are several other options that need to be tweaked as well.

You need to set ‘Active’ to ‘Yes’ under the general information section and ‘Is Anchor’ to ‘Yes’ under the ‘Display Settings’ tab. Then visit the admin menu option System –> Manage Stores and click on create a website button. Here you can create a new website by entering the options, once created it will be listed. Staying on the same page now hit the ‘Create Store’ button and create a new store by following the options provided. Lastly still on the same page hit the ‘Create a Store View’ button and follow the options to create a new store view. There are further configuration requirements at the FTP level as mentioned below:

 

1. Download the index.php file and the htaccess file from the Magento folder and copy it to the new Magento 2 folder. In case you are using a different domain name for the new store you can copy these files to the root folder of that other separate domain or map this folder as the default hosting account for the other domain.

2. You then need to edit the index.php file and make the change in the following like $image Filename = ‘app.Mage.php’; to $imageFilename = ‘..app.Mage.php’;

3. The second file to edit is the htaccess file where you need to add the following:

SetEnvif Host.*base.*MAGE_RUN_CODE = “base”; SetEnvif Host.*magento_site_2.*MAGE_RUN_TYPE=”magento 2”;

 

It is back to the admin panel once again after this. Go To the admin menu System –> Configuration –> General and make sure the ‘Default Config’ is selected. Click on ‘Web’ in the side menu options and set the option Auto Redirect to base URI to ‘No’ under the ‘URL options’ sections. Now change the ‘Default Config’ to that of the new website we just created. Go back to the option ‘Web’ and click on the two tabs ‘Secure’ and ‘Unsecure’. Here both the ‘Secure Base URL’ and ‘Unsecure Base_url’ need to be changed to the corresponding new domain and the ‘Use default[Store View]’ check box ned to be unchecked.

That’s it you are now set to use the multiple Magento stores. It can be quite a task to Magento multi-store setup and at times it is best to leave it to the professionals. Alakmalak has been providing Magento development services for some time now and has a great deal of expertise on the topic.

Why Choose Alakmalak As a Your Growth Partner?

Using a Magento Demo Website to Understand its FeaturesAlakmalak is a web development company in India that offers services for several technologies. There have been around for a very long time and have developed over 2500 projects for clients all around the world. They have highly skilled web developers with a great deal of experience.

 

  • How to configure multiple Magento storefronts?
what-nexr-icon

What’s Next ?

I know after reading such an interesting article you will be waiting for more. Here are the best opportunities waiting for you.