How to Setup multiple Store in Magento

Please Follow these steps to create  multiple Store  in Magento.
Step 1:- Login in admin panel Go to Catalog and click on manage categories.
  
Step 2:- Now click on Add Root Category button.
Step 3:- On general information page fill name for category For example:-
Name = arunstore,
Is Active = Yes
Page Title = Arun store
Include in Navigation Menu = Yes


Step 4:- On Display Settings page select these options :-
Is Anchor = Yes
Now Click on Save Category button.

Step 5:- Now go to System and Click on Manage store.

Step 6:- Now click on Create Website and fill these information.
Name    =   arunstore
Code     =  arunstore_website

Step 7:- Now click on Create store and fill these information.
Website               =            arunstore (select newly created website).
Name                    =             arunstore_store.
Root Category  =              arunstore(select newly created Category ).

Step 8:- Now click on Create view and fill these information.
Store     =             arunstore_store (select newly created store).
Code    =  arunstore_eng
Status = Enable
Ok now we have created a new website, store and store view.

Step 9:- Now go to System and Click on Configuration and change Current Configuration Scope : - Default Config To arunstore_view.

Step 10:- On configuration page click on Web tab and make these changes under Secure and unsecure Section :-
A)     Base URL = Uncheck the box (Use Website) this will look like this:-
http://localhost/magentoFresh/ where  “magentoFresh” your main store
B)      Base Link URL = Uncheck the box (Use Website)
In base url text box after code type your website name for example:-
 {{unsecure_base_url}}arunstore/  where  “arunstore”  your second store

Step 11:- Now go to your Magento installation folder in this folder we have to create new folder and rename it “arunstore” under this folder copy index.php and .htaccess files now your folder structure look like this :-
C:\wamp\www\magento
C:\wamp\www\magento\app
C:\wamp\www\magento\arunstore (this is our new store folder which we are created)

Step 12:- Now open C:\wamp\www\magento\arunstore\index.php in index.php we have to make some changes :-
$mageFilename = MAGENTO_ROOT . '/app/Mage.php';
To
$mageFilename =  '../app/Mage.php';
And
$mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : ‘';
$mageRunType = isset($_SERVER['MAGE_RUN_TYPE']) ? $_SERVER['MAGE_RUN_TYPE'] : '';
To
$mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : 'arunstore_website'; (where 'arunstore_website' our website code which we are define in backend)
$mageRunType = isset($_SERVER['MAGE_RUN_TYPE']) ? $_SERVER['MAGE_RUN_TYPE'] : 'website';
Ok that’s it now our newly created store is ready
Go to Browser and type http://localhost/magento/arunstore  now you can manage new store from backend.







No comments:

Post a Comment