In Magento, there is an option to create Multistores. With the use of Multistores, we can create different stores within single admin panel. Following are the four simple steps to create it.
Step1: Create a Folder for your New Store
1. Copy Index.php and .htaccess file from the Magento folder.
Image may be NSFW.
Clik here to view.
2. Create a new folder in root directory and paste Index.php and .htaccess file.
3. Upon creating a directory for your store, go that directory and change the path of the index.php file.
Find these in index.php and change the path.
- $mageFilename = '../app/Mage.php';
- $mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : 'fr';
- $mageRunType = isset($_SERVER['MAGE_RUN_TYPE']) ? $_SERVER['MAGE_RUN_TYPE'] : 'website';
Once you have changed the path, we will move on to admin panel which will be discussed in step2.
Step 2: Create the Root Category for your Store
1. Go to Magento-> Adminpanel -> catalog-> Manage categories-> create root directory of your store.
Image may be NSFW.
Clik here to view.
Step 3: Manage your Store
Once the New Root Directory is created, go to System-> Manage Stores and create website store and store view
Image may be NSFW.
Clik here to view.
1. Create new website of your store.
• Fill the name, code and leave the sort order text box blank.
2. Create new store
• Select the name of your website from the dropdown box
• Include the name of your store
• Select the root category you have created in the categories page
• Leave the default store view blank
3. Create Store View
• Select the name of your store from the dropdown box
• Include the language or name for your store view
• Give the code to your Store view page
• Enable the status of store view
Step 4: Configure your store
After creating the store, go to Magento admin panel and then select System-> Configuration
1. Go to Current Configuration Scope and Select your Store view
2. Select Web from the configuration.
3. Click Unsecure and Secure Change Base Link URL : {{unsecure_base_url}} your store name/
4. Save the configurations.
Image may be NSFW.
Clik here to view.
You can type the url similar to the following in your browser – http://your_site_url/fr and Finally you will get the output similar to the screenshot given below :
Image may be NSFW.
Clik here to view.
Clik here to view.
