Magento: Setup Multiple Website
In this article, you will learn about creating multiple website in Magento.
Creating or setting up multiple stores in Magento is somehow easy but creating/setting up multiple website in Magento is a bit difficult task :).
This step-by-step tutorial will guide you to do so.
I suppose that you have installed Magento in folder named ‘magento’. So, your website URL will be http://yourwebsite.com/magento/
- Create Website, Store, and Store View
- Create Website
- Go to System –> Manage Stores
- Create Website
- Name = My Website
- Code = mywebsite
- Sort Order = 10
- Save Website
- Create Store
- Go to System -> Manage Stores
- Create Store
- Website = My Website
- Name = Main Store
- Root Category = Root Catalog
- Create Store View
- Go to System -> Manage Stores
- Create Store View
- Store = My Website -> Main Store
- Name = English
- Code = English
- Status = Enabled
- Sort Order = 10
- Change Link URL
- Go to System -> Configuration -> GENERAL -> Web
- Change ‘Current Configuration Scope’ to ‘My Website’
- Unsecure -> Base URL = http://yourwebsite.com/magento/
- Unsecure -> Base Link URL = http://yourwebsite.com/magento/mywebsite/
- Change Theme (Optional: If you want different design for your new website)
- Suppose your new design template and skin folder is named ‘mywebsite’
- Copy ‘mywebsite’ template folder to magento/app/design/frontend/default/
- Copy ‘mywebsite’ skin folder to magento/skin/frontend/default/
- Go to System -> Configuration -> GENERAL -> Design
- Change ‘Current Configuration Scope’ to ‘My Website’
- Themes -> Default = ‘mywebsite’
- Uncheck ‘Use Default’
- Save Config
- Create a new folder named ‘mywebsite’ inside ‘magento’ folder.
- Copy index.php of magento folder into mywebsite folder.
- Open index.php of mywebsite folder.
- Change $compilerConfig = ‘includes/config.php’; to $compilerConfig = ‘../includes/config.php’;
- Change $mageFilename = ‘app/Mage.php’; to $mageFilename = ‘../app/Mage.php’;
- Change Mage::run(); to Mage::run(‘mywebsite’,'website’);
- Copy .htaccess file from magento folder to mywebsite folder
Finally, you have created a new website for your magento shop. Your base installation can be browsed by http://yourwebsite.com/magento/ and your new website can be browsed by http://yourwebsite.com/magento/mywebsite/
Hope this helps. Thanks.
Related posts:
- Magento: Setup multiple currency shop
- Magento: Show/Hide Demo Store Notice
- Magento: Upgrading mysql setup of a module
- Magento: PayPal Website Payments Standard not displayed
- Magento: How to change the ‘Default welcome msg!’
- Magento: Get store information
- Magento: Show/Hide website to search engines by adjusting robots meta tag
- How to setup Google AdSense for your website
- Magento: Set title, keywords and description in your module
- Magento: Product is still visible in catalog and search even after changing visibility to nowhere
