Notice: Trying to get property of non-object in /var/www/html/yellopen/catalog/model/magikblog/article.php on line 307Notice: Trying to get property of non-object in /var/www/html/yellopen/catalog/model/magikblog/article.php on line 296 How to link to OpenCart store on subdomain

How to link to OpenCart store on subdomain?

All popular eCommerce platforms such as Magento, Prestashop, OpenCart in the market provide the ability to build multiple stores from within a single installation. Multi-store setup in Opencart seems to be more simple than other ecommerce frameworks. In this tutorial, you're going to learn how to create a multi-store setup using a single installation of OpenCart.

Let's say you have a nice-looking online store built from OpenCart. And you're happy with it as it's rolling on and you're making sales. Now, you're planning to set up more products, but you realize that it would be too much to include everything in the same store & decided to crete a new store on subdomain like new.mystore.com. This kind of setup is certainly beneficial and works properly. You can make different look and feel for each subdomain according to the type of product it represents.

Steps to link OpenCart Store on subdomain

Step 1 - Set Up the New Subdomain

Before set up a new store in the OpenCart, we need to set up new subdomain or domain pointing to the same default OpenCart installation. You can do that using the control panel of your hosting provider.

To help you have a visual understand about the process, let's consider our main default Opencart installation is http://mystore.com and new store is http://new.mystore.com. We assume that http://new.mystore.com is also pointing to the same document root as that of the http://mystore.com.

Step 2 - Create a New Store From the Back-End

Access your Opencart back-end, go to System > Settings and it will list all the stores available in OpenCart. In most cases, it'll be a just a single entry for your default and the only store. Click on the Insert button to create a new store. In the new store creation interface, there are different tabs available as below:

General settings: The most important setting in this tab is Store URL. This should be set to the new subdomain/domain of your store. In our case, it would be http://new.mystore.com/. The other setting, SSL URL, is useful if you want to provide secure checkout in the front-end and also want to secure your back-end dashboard.

Store Settings: Other important settings in this tab are Template and Default Layout. You can specify a different theme for your new store using the Template setting. And you can set up the default layout of the cart using the Default Layout setting.

Local Settings: Under this tab, you can find settings related to localization. You can set the country, state and language for your store. Another important setting is Currency, which is used to set the specific currency a user would be prompted with during checkout in this store.

Option Settings: This tab allows you to set front-end-related parameters.

Image Settings: Under this tab, you can upload a Store Logo and Icon. Also you can set the dimensions for the different versions of the images used in the front-end.

Server Settings: The toggle setting for the SSL is available under this tab if you want to enable this for the checkout and admin dashboards.

So once you've filled in all the necessary details, click on the Save button to create the new store. 

You can set up a whole set of categories and products for your each store.You can manage all the stores from any admin interface: http://mystore.com/admin or http://new.mystore.com/admin.

You can assign different theme for stores in the Opencart back-end and this helps to design the look and feel of each store completely differently from each other, as they are totally different sites.

The orders and customer accounts created from the front-end are associated with the corresponding store from which they were created. It'll help you to analyse the sales reporting for each store.