How to setup/configure multiple stores in Magento?
I have a Magento store http://handicrafts.com.pk and using the same installation of Magento I wanted to add another store(http://gemstones.com.pk) to it.
I have a godaddy hosting so what i did, i added gemtones.com.pk on the top of handicrafts domain, you can say a kind of a addon domain as gemstones.com.pk was also pointing to the same folder containing handicrafts files that is
/webmaestros/handicrafts
By now i had both folders pointing to the same folder containing Magento files.
By going to Magento Admin > Catalog > Manage Categories, i renamed the Default Category to handicrafts.com.pk and added another root category gemstones.com.pk
Now by going to System > Manage Stores
Edited the default Website name to Handicrafts, Code for default website is base. Then edited the Default Store and changed the name to Handicrafts and changed the Root Category from the dropdown menu to handicrafts.com.pk. And finally edited the Default store view and changed its name to Handicrafts Store View, for the code i added handicrafts_en and set the status to Enabled.
Now was turn to add website, store and store view for the second domain gemstones.com.pk
Simply clicked Add website and added name ‘gemstones’ and for the code gemstones as well. Then clicked the Add store button and added name ‘gemstones’ and for the Root Category selected ‘gemstones.com.pk’ from the drop down menu.’ Lastly added the Store View and added the name ‘gemstones store view’, for the code added ‘gemstones_en’ and changed status to Enabled from the drop down and then clicked Save Store View
Then by going to System > Configuration,>Current Configuration Scope (located on the top left), change the dropdown menu from Default Config to handicrafts store view
Selected Web from the sidebar on the left under the General heading and for both the Unsecure and Secure sections, unchecked the Use default box next to the Base URL item, and entered the URL http://www.handicrafts.com.pk/
Then edited System -> Configuration -> Gemstones Store View -> Web tab and :
set {Base URL} to your http://www.handicrafts.com.pk/
set {Base Link URL} to your http://www.gemstones.com.pk/
Last step was to edit the index.php file
Replaced
Mage::run(); with this code in index.php
switch($_SERVER['HTTP_HOST']) {
case ‘gemstones.com.pk’:
case ‘www.gemstones.com.pk’:
Mage::run(‘gemstones’, ‘website’);
break;
default:
Mage::run();
break;
}
Thats it!










hi there, thank you man, i have searched for that way to setup multiple magento stores, really nice explain and clearly codes that are very useful to novice ones like me and many others, thanks.
Like or Dislike:
0
0
Can we setup/configure multiple magneto stores for subdomains too? What about the parked domains? should we follow the same procedures?
Like or Dislike:
0
1
I liked your instructions. Magento does work for multiple websites, but it will not let you share the cart. Have you experienced this Magento Bug, with multiple stores, one website, and with one checkout (shared shopping cart). Do you know how to make “sharing the cart” work?
See here:
http://www.eshopforums.com/f48/multiple-stores-one-checkout-magento-you-can-1490/#post9022
or here is the copy and paste:
According to many threads on Magento Fourm. There is no clear solution to “Multiple Stores, One Checkout” Also, In the webinar, it says it can be done, but doesn’t provide clear cut instructions on how to do it. I checked the Magento Official User Guide, and again no instructions on Multiple Stores, One Checkout. I clicked on the Magento’s support tab… I would be glad to pay for it…please I want to pay for it, but paid support is only available for Enterprise edition.
I’ve been having difficulty as well as many others, with multiple stores on one ‘website’ to share the cart. One IP, One Machine, Two Stores, One Website. Doesn’t matter how it’s setup..subdomains, subfolders, different domains. Tried the Magento demos. Tried storing session in db and on files; it still creates two session files. Tried the latest Magento version 1.4 rc1. I also tried 1.3 and even tried 1.02…does not share cart. And there is not one blog, forum, comment, etc.. on the web that shows this actually works out of the box. Even the official Magento Online Demo, doesn’t have this feature. There is no step by step instructions ANYWHERE ON THE WEB or MAGENTO for “sharing cart” successfully, because it can’t be done out of the box, period.
I see a lot of people in my situation looking to php coders (freelancers) to set this up. If someone can setup the first store… then the second store should be easy, right? But it’s not (wanna know why), because it’s not possible unless you hire a php coder (freelancer).
I really don’t know how Magento claims this works out of the box – Is this for publicity, a.k.a advertisement? And yes gap.com has deep pockets so they can get their developers to write the necessary codes to fix Magento.
Any insight would be nice.
Thanks
Like or Dislike:
1
0
It works easly. Thanks.
Like or Dislike:
0
0
Urgent reply:
How can we add more than 1 store under one website? Please guide me .
And can those store have differnet URL.
Please help.
Thanks
Like or Dislike:
0
0
Can we assign SUBCATEGORY to a store. Can i gwet response fast?
Thanks
Like or Dislike:
0
0
Can we add subcategory for store?
Like or Dislike:
0
0
Leave your response!
Login
Stay in Touch
Sponsored Links
Tags
Archives
Blogroll
Pages
Recent Posts
Recent Visitors
Rate my Blog
Lets Connect
Most Commented
Recent Comments
Twitter links powered by Tweet This v1.6.1, a WordPress plugin for Twitter.
Powered by WordPress | Log in | Entries (RSS) | Comments (RSS) | Arthemia theme by Michael Hutagalung