How to create an OpenCart multistore subdomain on OpenServer
Multistore in OpenCart is a feature that allows you to manage several online stores from a single administrative panel. It allows you to create multiple storefronts with unique design, products, price…
Multistore in OpenCart is a feature that allows you to manage several online stores from a single administrative panel. It allows you to create multiple storefronts with unique design, products, prices, and languages, while using a single backend for easy management.
With Multistore you can create separate websites, each with its own domain or subdomain, and manage them from one center. This is useful if you want to sell different products in different markets, or if you want to create several stores for different brands or product lines.
Each store in a Multistore setup can have its own unique settings, such as product categories, shipping and payment methods, tax rates, and languages. This makes it easy to tailor the shopping experience for the specific audience of each store.
Overall, the Multistore feature in OpenCart is a powerful tool that allows you to efficiently manage several online stores with ease.
OpenCart can be installed on your local computer; to do this you need to install the OpenServer software.
To install OpenCart on OpenServer, you can perform the following steps:
- Create a new folder for the domain in the OpenServer directory, which is usually located at C:\OpenServer\domains\, for example "mystore.loc"
- Download the latest version of OpenCart from the official site.
- Extract the contents of the "upload" path of the downloaded ZIP file into the "mystore.loc" domain folder, where "mystore.loc" is the name of the folder you created in step 1.
- Rename the files config-dist.php and admin/config-dist.php to config.php
- Launch OpenServer and start your services.
- Open phpMyAdmin in a browser (http://127.0.0.1/openserver/phpmyadmin/) and create a new database for your store.
- Open a web browser and go to http://mystore.loc/, where "mystore.loc" is the name of the folder you created in step 1.
- The OpenCart installer will start automatically. Follow the on-screen instructions to complete the installation process, including configuring the MySQL database, creating an administrator account, and setting up the store parameters.
- After the installation is complete, you can access the OpenCart administrative panel by going to http://mystore.loc/admin and logging in with the administrator account you created during installation.
These steps are intended for installing OpenCart on OpenServer locally for development purposes. If you plan to host your OpenCart store on the Internet, you will need to purchase a domain name and a web hosting service from a hosting provider, and then upload the OpenCart files to the web server using an FTP client.
OpenServer is a software package designed to simplify the process of installing and configuring a local web server environment on a Windows-based computer. It includes Apache, PHP, MySQL, and other components commonly used for web development, pre-configured to work together.
OpenServer is intended for developers who need a local web server environment for testing and developing websites and web applications. It provides an easy-to-use graphical interface for managing the various server components, including starting and stopping services, configuring PHP and MySQL, and managing virtual hosts.
One of the main advantages of OpenServer is its simplicity and ease of use. It is designed for beginners and has a user-friendly interface that makes it easy to set up a local web server environment without requiring advanced technical skills. At the same time, it also offers advanced features and configuration capabilities for more experienced developers.
OpenServer is available in both free and paid versions, with the paid version offering additional features such as support for multiple PHP versions and SSL certificates.
To create an OpenCart multistore subdomain on OpenServer, you can follow these steps:
- Open the OpenServer control panel, go to the "Settings" section, and switch to the "Domains" tab.
- In the "Domain management" field, select "Manual + Auto-search"
- In the "Domain name" field, enter the name of your subdomain, for example "store2.mystore.loc".
- In the "Domain folder" field, enter the path to the main OpenCart installation directory. For example, if your OpenCart installation is in C:\OpenServer\domains\mystore.loc\, then the domain folder should be C:\OpenServer\domains\mystore.loc
- Click the "Add" button.
- Click the "Save" button to save the settings and create the subdomain. OpenServer will be restarted.
- Next, open the OpenCart administrative panel and go to the "System" menu, then select "Settings".
- Click the "Add" button to create a new store in the multistore, or the "Edit" button to edit one of your multistores, and on the "General" tab enter the URL of your subdomain in the "Store URL" and "SSL URL" fields, for example "http://store2.mystore.loc" and "https://store2.mystore.loc". Fill in the other fields according to your needs.
- Save the changes and test the subdomain by visiting it in a web browser. If everything is set up correctly, you will see that your OpenCart multistore is running on the subdomain.
The OpenCart documentation contains detailed instructions for setting up a multistore: https://docs.opencart.com/en-gb/administration/multi-store/