Creating a multi-store
OpenCart allows for multi-store management using only one installation. If you have installed OpenCart into at least one store, you can add multiple stores to your admin panel without having to repeat the installation process. To add a new store you must first create a subdomain in your cPanel, then add the store in the Settings section of the admin panel.
Creating a subdomain in cPanel
You can login to the cPanel of their default store to create a subdomain. You should create a new folder for the subdomain, under Subdomain. In the root directory, link the subdomain to the path where the default store was installed to. For example, if the default store had been installed under "public_html/opencart", the new subdomain (opencart2) should be created under "public_html/opencart". We could add more subdomains here to create our multi-store by following this procedure.
When we visit our new subdomain in our browser, the default store is visible. To customize the new store at this subdomain we need to visit the admin panel for our multi-store.
|Don't worry if the default store is displayed where the new store should be, this is normal. The new store will not be visible at the subdomain's location until it has been added in the administration side of OpenCart.|
Creating a new store in Settings
The admin panel of the new store can be visited through either store sites, at "opencart.mystore.com/admin" or "opencart2.mystore.com/admin". Just add a "/admin" to either of your stores' locations to access the admin panel. There is only one admin panel that controls all the stores in your multi-store.
To create a new store in the administration, visit System > Settings and press Insert. Adding a store requires information to be filled from the General, Store, Local, Option, Image, and Server tabs. In these sections you can add a new template, logo, currency, language, and layout. After pressing "Save", you will see that the default store is replaced by the new store in that subdomain's store front.
Customizing the store front
Products, product categories, customers, page layouts, and more, can be edited in the administration and customized for each store. You can individually select which products are available for each store in the Links tab when editing or creating a product. Checking the stores in this section makes the product only available in those specific stores. When adding or modifying a product category, you can select which stores display the category in the Data tab. Customer and order info will be automatically sorted into their appropriate store in the administration side when they create an account or buy a product at that store.