Pages

Tuesday 16 September 2014

how to create/set up and manage multiple stores

Here i will explain how to create/set up and manage multiple stores. 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. Before going to create multiple stores we should create Categories, If you don't know how to Crate Categories go to this link and create.

1. Go to System -> Manage Stores

Manage Multi Sore

 2. Click the Create Website button

Manage Multi Sores


 where you need to enter:
    • Name – domain 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)
  1. Click Save Website

Create Website


  1. Go to System -> Manage Stores and click the Create Store button.
  2. In the Website drop-down select the website the Name which you created before (2).
  3. Enter a Name – the same as the second website name
  4. Select a Root Category in the drop-down– the root category that will be used for this store. (Refer to Step 1 for details)
  5. Click Save Store.

Create Store Name


  1. Go to System -> Manage Stores and click the Create Store View button.
  2. In the Store drop-down select the store to which this view will be associated with.
  3. In the Name field enter a name of this store view (i.e. English Version).
  4. In the Code field enter a unique code for this store view.
  5. Select the Status – if enabled, this store view will be accessible from our frontend, otherwise, it will not be accessible
  6. Click Save Store View.

Create Store View Name


 Store Configuration in the Server


  1. In this tutorial we are going to see a second website at www.your_domain.com/magento/privatesales/. We are going to access the magento directory on our server and create a sub-directory folder privatesales.
  2. Copy the index.php file as well as the htaccess file from the magento folder over to the privatesales 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="privatesales";
    where privatesalesis the website code taken from Step2 point 2 of this tutorial.
  8. Save the changes.

Private Sales

 9.In your Magento admin go to System -> Configuration -> General.



System Configuration

 10. First, make sure that the Default Config is selected in the configuration scope and click Web




 11. Change the Default Config to the to newly created website’s view in the configuration scope and click Web
 12. 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):



 13. Click Save Config
 14. Magento Automatically create welcome page under CMS->Manage Contents.


Private sales welcome page


 15. Click the preview button it will redirect to the Private Sales Store Welcome page.
Private sales welcome page 2

If you have any queries feel free to post a comment....







No comments:

Post a Comment