Your shopping cart is empty. Browse our Store

Magento

Open Source eCommerce Evolved

Video: Creating Multiple Online Storefronts (Part 1)


In this video we showcase one of the more powerful Magento features, the ability to manage multiple Online storefronts from a single administration panel. This functionality allows an online merchant to centrally manage all facets of a business from one location, while selling through multiple online stores.

The first video goes through the basics of creating a completely separate website within the Magento installation, to be controlled from the same admin.  Below are the necessary steps to do this, carried out and recorded on the 0.9.17740 version of Magento:

  • Step 1:  Creating a new folder for second website, copying index.php and .htaccess, necessary change of code to index.php
  • Step 2:  Creating a new root category for the second website
  • Step 3:  Creating the website in the admin, along with a store and store view
  • Step 4:  Configuring the URL structure of the new site
  • Step 5:  Adding categories and products
  • Step 6:  Associating products with the new website

At the end of the video, the logo of the new website is updated and the homepage is set to a different admin-created CMS page.

Please note:  This demonstration uses example.com and some symlinks to make the URLs more readable.  You may notice the url of the second website switching between http://www.example.com/magento/mainstore/shoestore and http://www.example.com/magento/shoestore - this is why.  In a live environment each site will most likely have its own IP, so different domain names could be configured accordingly.

This is Part 1 of 2 videos showing Multiple Websites/Stores.  Part 2 will go into more detail about store views and multiple stores under the same website.

image

RSS comments feed for this entry

User Comments

|14 comments
  1. dell

    1dell |posted March 20 2008

    Impressive and needed, since it’s a major change from previous method.  When can we expect the 2nd video on administering multiple stores within the same website to be available?

  2. johannes

    2johannes |posted March 20 2008

    Dell - the 2nd video should be up there by the end of the day on Friday.

  3. nafnaf1000

    3nafnaf1000 |posted March 20 2008

    when i change the store THEM from “default” i get this error…

    any idea?

    exception ‘Mage_Core_Exception’ with message ‘Invalid store requested: “default”.’ in /home/hbaetcco/domains/hbaetc.com/public_html/magento/app/Mage.php:377
    Stack trace:
    #0 /home/hbaetcco/domains/hbaetc.com/public_html/magento/app/code/core/Mage/Core/Model/App.php(527): Mage::throwException(’Invalid store r...’)
    #1 /home/hbaetcco/domains/hbaetc.com/public_html/magento/app/code/core/Mage/Core/Model/Url/Rewrite.php(139): Mage_Core_Model_App->getStore()
    #2 /home/hbaetcco/domains/hbaetc.com/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Front.php(109): Mage_Core_Model_Url_Rewrite->rewrite()
    #3 /home/hbaetcco/domains/hbaetc.com/public_html/magento/app/code/core/Mage/Core/Model/App.php(440): Mage_Core_Controller_Varien_Front->init()
    #4 /home/hbaetcco/domains/hbaetc.com/public_html/magento/app/code/core/Mage/Core/Model/App.php(721): Mage_Core_Model_App->_initFrontController()
    #5 /home/hbaetcco/domains/hbaetc.com/public_html/magento/app/Mage.php(421): Mage_Core_Model_App->getFrontController()
    #6 /home/hbaetcco/domains/hbaetc.com/public_html/magento/index.php(29): Mage::run(’default’)
    #7 {main}

  4. adimagento

    4adimagento from Los Angeles, CA|posted March 20 2008

    @nafnaf1000 - the blog comments are not the place for technical questions and pasting code. Please use the forum in the future.

  5. magentocommerce

    5magentocommerce |posted March 21 2008

    Will this bulk stores share customers informations?
    I think there have two kinds mult stores. One is same domain another is use several domains.How control several domains in one admin?
    there have another interesting confunction,Like ioffer.com allow customers sell their goods on your store.If this kind confunction possible?

  6. johannes

    6johannes |posted March 21 2008

    To set up multiple domains you would follow the same steps as are in the video above.  I just didn’t have multiple domains at my disposal when making the video smile

    If you wanted for example “shoestore.com” you would redirect this domain to the “shoestore” directory that we created in the video.

    Customer accounts can be shared globally, or per website.  You can configure this from System -> Configuration -> Customers Configuration -> Account Sharing Options.

  7. agcilantro

    7agcilantro |posted March 21 2008

    Thanks for the video.
    Do the additional directories for the additional stores have to be anywhere specific, i.e., inside the Magento folder or directory where the main site was installed on the server?
    Also, is it possible to have different pricing on each of the different stores, for instance a wholesale store, a retail store and a consumer store?

  8. radders

    8radders |posted March 29 2008

    As far as I can tell it is not possible to set pricing at the store level as this is showing up as global. You can of course have different pricing for different customer groups so you could have a wholesale customer group across all stores. From what I read (haven’t tried it yet) it is possible to set different pricing and delivery methods at the website level so this would seem to be the answer for setting up a wholesale store.

  9. radders

    9radders |posted March 29 2008

    Correction to my earlier post - discovered this post:
    Prices scope can be changed in configuration. Please go to admin -> System -> Configuration -> General -> Price -> Scope

  10. nate_02631

    10nate_02631 |posted April 1 2008

    Forgive the ignorant question (?) and I think I may know the answer based on what I read/saw, but could a web dev potentially have a single install of Magento and then set it multiple stores for clients based off that one install.

    From what I’ve seen it is possible to
    a. have different stores at different domains, with different looks
    b. have different products/price sets for each of the stores

    But could the stores basically be isolated, with permissions, etc… so that a store owner could maintain their store in complete isolation from the others (i.e. no sharing of attributes, customer info etc...)? Would they run of the same database?

  11. johannes

    11johannes |posted April 1 2008

    @nate_02631:  Multiple websites under one magento installation will still share one admin panel - meaning, orders from all websites will show up in the ‘sales’ module… all customers will show up under ‘customers’.  And yes, as far as I know they will run off the same database.

    To best accomplish what you describe, I would think multiple Magento installations are required.  The separation of data between websites is to keep track of front-end activity - if you run a lingerie store and a gun store you might not want customers accounts and order information to be shared between them wink

  12. quark

    12quark from Romania|posted 3 weeks ago

    1. I want to know if a client can have one chart and one checkout for all stores within one website or he must checkout from each store.

    2. What about different stores on different websites? One chart and one checkout or multiple charts and checkouts from each websites?

  13. stretchr

    13stretchr from Georgia, USA|posted 1 week ago

    In the video, for the step where you change the index.php from:
    umask(0);
    Mage::run(’default’);

    to:

    umask(0);
    Mage::run(’shoestore’,’website’’);

    In my “index.php” the code is:

    umask(0);
    Mage::run();

    (Note no ‘default’)

    Would I follow the same editing step, even though there was no “default” in there initially?

    Thanks,
    Stretchr

  14. stretchr

    14stretchr from Georgia, USA|posted 1 week ago

    Oops. Sorry. Will ask in the forums.

    Stretchr


RSS: This Entry| All Blog Posts

Pro Community Membership

Magento Job Board - Some sort of tag line goes here

Latest Posts| View all Jobs
© Copyright 2008 Varien. Magento is a trademark of Irubin Consulting Inc. DBA Varien