Home » Magento

Magento: Setup Multiple Website

12 August 2010 3,033 views Popularity: 7% Share/Bookmark

email

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:

  1. Magento: Setup multiple currency shop
  2. Magento: Show/Hide Demo Store Notice
  3. Magento: Upgrading mysql setup of a module
  4. Magento: PayPal Website Payments Standard not displayed
  5. Magento: How to change the ‘Default welcome msg!’
  6. Magento: Get store information
  7. Magento: Show/Hide website to search engines by adjusting robots meta tag
  8. How to setup Google AdSense for your website
  9. Magento: Set title, keywords and description in your module
  10. Magento: Product is still visible in catalog and search even after changing visibility to nowhere
  • http://topsy.com/blog.chapagain.com.np/magento-setup-multiple-website/?utm_source=pingback&utm_campaign=L2 Tweets that mention Magento: Setup Multiple Website | Mukesh Chapagain’s Blog — Topsy.com

    [...] This post was mentioned on Twitter by Joonkiri J, Tech Blog. Tech Blog said: Magento: Setup Multiple Website (http://bit.ly/a4m0IZ) #localhost #Magento #multiple #website [...]

  • satya k

    I am new to magento, I am integrating our site with magento…I have 2 website in Magento Admin panel..System–>Manage Stores–>create website,I have created 2 website and there corresponding view and store as well..I am able to assign categories using webservice request(as it requires category id i called the category tree service and fetched id).It is working fine,but how to assign websites using website request,I am unable to find a service to get website ids.How can i get website id or how to assign websites to a product at time of creation