Magento Exclusive


Published on

Magento Exclusive:Running multiple Magento stores on multiple domains from a single index.php

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Magento Exclusive

  1. 1. Magento Exclusive: Running multiple Magento stores on multiple domains from a single index.php <ul><li>- By </li></ul><ul><li>Younus Sardar </li></ul><ul><li>tekSymmetry, LLC </li></ul><ul><li>18 th Jan,2010 </li></ul>
  2. 2. What’s Magento ? <ul><li>An open-source ecommerce web application. </li></ul>
  3. 3. Popular Open Source eCommerce Software <ul><li>Magento </li></ul><ul><li>Zen-Cart </li></ul><ul><li>osCommerce </li></ul><ul><li>X-Cart </li></ul><ul><li>Avactis </li></ul><ul><li>Batavi </li></ul><ul><li>VirtuMart </li></ul>
  4. 4. Why Magento? <ul><li>One install, multiple merchants, multiple websites, multiple shops! </li></ul><ul><li>Suitable for a small ecommerce site as well as an ecommerce network </li></ul><ul><li>About all popular payment methods are already integrated (total 11 methods). </li></ul><ul><li>Customized admin roll management </li></ul>
  5. 5. <ul><li>Multiple Images Per Product </li></ul><ul><li>Product Image Zoom-in Capability </li></ul><ul><li>Batch Import and Export of catalog </li></ul><ul><li>Shipping to multiple addresses in one order or multiple shipments per order </li></ul><ul><li>One-Page Checkout </li></ul>
  6. 6. Advantage(Developing view) <ul><li>A perfect MVC approach (using Zend framework) </li></ul><ul><li>Fully Object Oriented Platform </li></ul><ul><li>Highly stable, very powerful, and extremely expandable </li></ul><ul><li>User friendly </li></ul>
  7. 7. Disadvantage(Developing view) <ul><li>Due to the Zend/OOP/MVC influence on Magento. A huge folder structure and hundreds of files. It is difficult to follow the code </li></ul><ul><li>Database depends on EAV ( Entity-Attribute-Value ) model. SQL codes are difficult a little bit! </li></ul><ul><li>Most complex php application ever found! </li></ul>
  8. 8. A Scenario <ul><li>Let’s imagine a merchant who deals with thousands of products. </li></ul><ul><li>He has 100 stores. </li></ul><ul><li>He wants to sell his products over 10 different websites. </li></ul><ul><li>Can we do these with just one Magento install ? </li></ul>
  9. 9. Multiple Magento stores on multiple domains from a single install.
  10. 10. Setting Up Multiple Websites <ul><li>Step 1:   </li></ul><ul><li>Creating a new folder in the main Magento installation for second website, copying index.php and .htaccess, necessary change of code to index.php </li></ul>
  11. 12. Step2: <ul><li>Create a new root category for second website </li></ul><ul><li>Admin-> Catalog-> Manage Categories -> Add Root Category </li></ul>
  12. 13. Step3: <ul><li>1) Create new website </li></ul><ul><li>2) Create store & point to new root category to that store </li></ul><ul><li>3) Create store view </li></ul><ul><li>1) Create new website </li></ul><ul><li>Admin -> System -> Manage Stores </li></ul>
  13. 14. Admin -> System -> Manage Stores -> Create Website
  14. 15. 2) Create Store Admin -> System -> Manage Stores -> Create Store
  15. 16. 3) Create Store View Admin -> System -> Manage Stores -> Create Store View
  16. 17. Step 4: <ul><li>Configure URL structure for new website </li></ul><ul><li>Admin -> System -> Configuration </li></ul>
  17. 18. We are done for multiple websites <ul><li>Website 1: Digital Store </li></ul><ul><li>URL : http://localhost/magentostore/index.php </li></ul>
  18. 19. Website 2: Shoe Store URL: http://localhost/magentostore/shoestore/index.php
  19. 20. Step: 5 <ul><li>Add Categories </li></ul><ul><li>Add Products </li></ul><ul><li>1) Add Categories ( Admin - > Catalog - > Manage Category ) </li></ul>
  20. 21. <ul><li>2) Add Product ( Admin - > Catalog - > Manage Product ) </li></ul>
  21. 22. Select website for the product
  22. 23. Now we can have.. <ul><li>Website for Digital Store </li></ul>
  23. 24. Website for Shoe Store <ul><li>Website for Shoe Store </li></ul>
  24. 25. Adding a new store to a website <ul><li>Step1: </li></ul><ul><li>Create a new store in Magento store manager and add a root category for the store. </li></ul><ul><li>Admin-> System-> Manage Stores -> Create New Store </li></ul>
  25. 26. Step2: <ul><li>Add an additional store view to the new created store </li></ul><ul><li>Admin-> System-> Manage Stores -> Create New Store </li></ul>
  26. 27. Now we can see the store list in the footer (default). Customers can switch between stores.
  27. 28. Thank You! <ul><li>Questions ? </li></ul>