Magento Multistore

10.03.2012 Angelika Siczek
One of the main advantages of Magento is the possibility to turn on Multistore – a few stores on different domains managed from one administrative panel. Depending on the user’s needs the user can configure multisite (many sites), multistore (every site can have many stores) or multiview (each store can have many views). 
 
I order to configure you need to go to System -> Configuration-> Store Management. Next, click “Main Website” and set your own name for it.  The name can be chosen by the user and is there to help with identifying the site in the administrative panel later on. There is a possibility to change the name and the view.
After the above-mentioned modifications, we can create a new website – button “Create a new Website”. Analogically we can add our own names to the site, store, and view. Taking into account that Magento displays only the store views its creation is not necessary.
If our aim is creating two stores with url: www.yourdomain.com/store1 and www.yourdomain.com/store2 you need to create two folders with analogical names in the main installation folder and then copy folders .htacces and index.php from the main Magento installation folder. In the folder .htaccess we need to find the line “RewriteBase /” and change it for “RewriteBase /store1” in the first folder and for the second folder we change “RewriteBase/” for “RewriteBase /store2/”. $compilerConfig = ‘../includes/config.php’;in then ext step in both folders we open index.php  and change “$compilerConfig = ‘includes/config.php’;” for $compilerConfig = ‘../includes/config.php’;
We also change $mageFilename = ‘app/Mage.php’; for $mageFilename = ‘../app/Mage.php’;
The next step is a modification of Mage::run() function depending on the folder for one of the versions below:
Mage::run(‘store′, ‘website’);Mage::run(‘store′, ‘website’);
Then we move on to the administrative panel System -> Configuration and choose a default configuration for our website store2 and then we modify the parameter Base URL for http://www.yourdomain.com/store1 (that same step in the other case)
After the correct execution of the process, we should have the possibility of using both sites presenting our stores.

News Digitized / Stay Informed

Since the beginning of 2022, we are part of Unity Group. Now, by signing up for our newsletter, you will be kept up to date with information from our entire organization.

    By submitting the form you agree to receiving a newsletter that is sent by Unity S.A. based in Wrocław. You can withdraw your consent at any time. Additional information about the processing of available details provided in the privacy policy.

    *Required

    Andrzej-kurs-programowania

    Andrzej Szylar

    Chief Executive Officer

    E-mail:

    andrzej.szylar@unitygroup.com
    Magda2

    Magdalena Paczyńska-Kamienik

    HR Manager

    E-mail:

    magdalena.paczynska@unitygroup.com
    Aleksandra

    Aleksandra Bielawska-Clegg

    HR Business Partner

    E-mail:

    Michal

    Michał Duława

    New Business Developer

    E-mail:

    Katarzyna

    Katarzyna Zajchowska

    Marketing Partner

    E-mail: