PHP

How to configure multi store in OpenCart?

Many of you might use opencart for online store development. Opencart can also be used for multi store with single admin; you can manage both stores with same admin.

I am using wamp so first I will tell you to configure multi stores with opencart on wamp.

I installed wamp in D drive and opencart directory path is D:\wamp\www\opencart. Main store url is http://localhost/opencart and I am going to make new store by the name of store.

  1. There is a file httpd.conf in wamp\bin\apache\Apache2.2.21\conf\. Open it and write following lines to create Alias for opencart new store.

    Alias /store “D:/wamp/www/opencart/”

    Note: Alias is pointing to same directory that is for my main store. It will be same for any other store too if you want to create.

    Now save file and restart Apache services.

  2. Now you have to change OpenCart configurations. Login to opencart admin then go System>Settings, create new store. You can give any name to the store and give Url http://localhost/store/.
  3. Now save your settings and you can access your both stores by http://locahost/opencart/ and http://localhsot/store/ urls.

You can create multi store on xamp too; just you need to make Alias in D:\xampp\apache\conf\httpd.conf file

Note: D is the drive where xamp is installed; your location might be different.

Have fun with multi store on opencart.

websourceblog

ReactJs, NodeJs, Amazon Web Services, Symfony, Laravel, CodeIgniter, Zend Framework, WordPress, Drupal, Magento, Angular

View Comments

  • Just tried following your instructions which a perfectly clear.
    I get nothing at the address i created the alias for.
    I put
    Alias /wholesale “C:/wamp/www/opencart/”
    on the very last line in httpd.conf
    Just after
    Include "c:/wamp/alias/*"

    Then i visited
    http://localhost/wholesale/
    in the browser, and get a 404 message. Nothing there.
    :(
    Any other ideas?
    Thanks for the clear instructions.

    • Did you restart apache and adding Alias statement and added it in opencart admin as mentioned in step 2?

  • Sir ,
    i want to use multi store but i have problem to "Alias path on server", i have setup on local server but i dont know how to alias path on online server. please solve my problem

Recent Posts

How to reset WSL 2 user’s password?

You can easily reset WSL 2 users' password, by just following the following steps. Open…

2 months ago

DreamHost Web Hosting

DreamHost a web hosting company, founded in 1997. It is offering sort of hosting services,…

10 months ago

How to add submenu or menu in any specific menu option in WordPress programmatically?

Menus in WordPress are highly versatile and can be easily modified to change in your…

11 months ago

Laravel 8 error target class controller does not exist.

Laravel is famous and robust PHP framework, widely used in different type of projects. While…

1 year ago

Define Private Methods/Functions in Python Class.

Python is very powerful and famous language, which allow us to write code as per…

2 years ago

Working with dates in PHP.

In this article, I am going to show you how we can get specific dates…

2 years ago