Community Forums

[How To] Multi-Store on Localhost

General support for technical problems with OpenCart v1.x

Re: [How To] Multi-Store on Localhost

Postby leeman » Tue May 01, 2012 4:46 pm

so.... how would this work with a payment module such as securetrading.... because for a transaction to go throu it has to redirect back to the shop domain using it... and the config file in main dir only shows default shop??? any ideas welcome
leeman
 
Posts: 21
Joined: Mon Apr 30, 2012 4:44 pm

Re: [How To] Multi-Store on Localhost

Postby sim-sim » Sat Jun 02, 2012 11:18 am

Hello,
please tell me if I can do the following:
My first OC is installed on http://domain1/shop
Now I need to add OC to my second site and access it as http://domain2/shop

Both sites are on the same hosting but they work in isolated spaces. So I can not use any aliasing as mentioned above.
Can I just copy OC frontend (all files and dirs) to the second site and use the same MySQL database as for the first site?
Of course I'll change config.php for the second site and add second store in OC settings.
It seems this is the simpliest way to have two OC stores for different sites with different user interfaces and almost the same goods.
sim-sim
 
Posts: 1
Joined: Sat Jun 02, 2012 11:03 am

Re: [How To] Multi-Store on Localhost

Postby jason3w » Fri Jun 15, 2012 11:18 am

Just working in WAMP.
I've added this to the bottom of httpd.conf (on the very last line)

Alias \wholesale “C:/wamp/www/opencart/”

Then insert new store from settings, giving this url.
http://localhost/wholesale/

Is there something i am missing?
I've restarted all services.

Just get a 404
jason3w
 
Posts: 8
Joined: Mon Jun 11, 2012 8:36 am

Re: [How To] Multi-Store on Localhost

Postby jason3w » Fri Jun 15, 2012 11:19 am

I was following instructions from
http://www.websourceblog.com/tag/opencart/

So those two steps are all i need to take?
jason3w
 
Posts: 8
Joined: Mon Jun 11, 2012 8:36 am

Re: [How To] Multi-Store on Localhost

Postby wilrbst » Sun Sep 23, 2012 10:20 pm

Is there someone that has set up the multistore on their computer locally threw Xampp that would know
how to add the code properly. I have gone threw as many tutorial as google and this forum has and can't seem
to figure out how to properly place the code. A sample of how it should look when placed in the http.conf file will
really help .

The tutorials is asking me to edit the Apache Configuration file add “alias” for each sub store.
Alias /opcStore_1 "C:/xampp/htdocs/store"
Alias /opcStore_2 "C:/xampp/htdocs/store"

1) go to this path: C:\xampp\apache\conf\

2) Find httppd.conf file and open it

3) Search ”<IfModule alias_module>” section and add below code inside this section. ???
Alias /opcStore_1 "C:/xampp/htdocs/store"
Alias /opcStore_2 "C:/xampp/htdocs/store"

HOW DOES IT LOOKS WHEN THE CODE IS ADDED? Where inside do I add it and how it should look?
Because I tried placing it but only get error local URL. Thanks



Now, you have to restart Apache server from your XAMPP control panel. After restarting, you have to add sub stores in Opencart configuration.

OpenCart configuration for Multi stores.

1) Logon to your main store : C:/xampp/htdocs/store/admin

2) Goto: System > Settings and here you can add new stores.

3) When adding give stores urls: for First store give url: http://localhost/opcStore_1/

for 2nd Store give url: http://localhost/opcStore_2/
wilrbst
 
Posts: 10
Joined: Thu Sep 13, 2012 8:37 pm

Re: [How To] Multi-Store on Localhost using xampp

Postby wilrbst » Tue Sep 25, 2012 4:18 pm

Bump :'(

sure would be nice if anyone would know how to set up multi store on xampp.

I have two weeks searching everywhere and I need the multi store to work but can't figure it out.
I have the right tools I'm using notepad ++ but I'm new at coding. Thanks
wilrbst
 
Posts: 10
Joined: Thu Sep 13, 2012 8:37 pm

Re: [How To] Multi-Store on Localhost

Postby cosmicx » Thu Oct 04, 2012 4:41 pm

any mods out there and check on this situation?
cosmicx
 
Posts: 47
Joined: Mon Jan 09, 2012 10:27 am

Re: [How To] Multi-Store on Localhost

Postby esosfashionshop » Tue Oct 09, 2012 3:15 am

esosfashionshop
 
Posts: 2
Joined: Tue Oct 09, 2012 3:06 am
Location: China

Re: [How To] Multi-Store on Localhost

Postby nopdesign » Thu Oct 11, 2012 7:04 pm

Hi everyone,

i have multistore working, but i have one important question. Does the sitemap work for every site? So have every domain in the multistore an sitemap for google?
nopdesign
 
Posts: 23
Joined: Wed Mar 07, 2012 4:40 pm

Re: [How To] Multi-Store on Localhost

Postby rfgnostic » Mon Oct 15, 2012 5:08 pm

is any way any one of stores have specific module setting , and show a module in store1 and hide in store2 ?
rfgnostic
 
Posts: 13
Joined: Sat Apr 21, 2012 8:08 am

Re: [How To] Multi-Store on Localhost

Postby shine01 » Sat Oct 27, 2012 5:48 pm

Really nice discussion
shine01
 
Posts: 1
Joined: Sat Oct 27, 2012 5:44 pm

Re: [How To] Multi-Store on Localhost

Postby freeplay » Sat Dec 01, 2012 12:26 pm

thanks for good information :)
freeplay
 
Posts: 1
Joined: Sat Dec 01, 2012 12:22 pm

Re: [How To] Multi-Store on Localhost

Postby forger » Fri Jan 18, 2013 8:51 am

I've tried to keep notes of my experience with installing
forger
 
Posts: 3
Joined: Fri Jan 18, 2013 8:42 am

Re: [How To] Multi-Store on Localhost

Postby vanmy » Sun Jan 20, 2013 5:31 pm

wilrbst wrote:Is there someone that has set up the multistore on their computer locally threw Xampp that would know
how to add the code properly. I have gone threw as many tutorial as google and this forum has and can't seem
to figure out how to properly place the code. A sample of how it should look when placed in the http.conf file will
really help .

The tutorials is asking me to edit the Apache Configuration file add “alias” for each sub store.
Alias /opcStore_1 "C:/xampp/htdocs/store"
Alias /opcStore_2 "C:/xampp/htdocs/store"

1) go to this path: C:\xampp\apache\conf\

2) Find httppd.conf file and open it

3) Search ”<IfModule alias_module>” section and add below code inside this section. ???
Alias /opcStore_1 "C:/xampp/htdocs/store"
Alias /opcStore_2 "C:/xampp/htdocs/store"

HOW DOES IT LOOKS WHEN THE CODE IS ADDED? Where inside do I add it and how it should look?
Because I tried placing it but only get error local URL. Thanks



Now, you have to restart Apache server from your XAMPP control panel. After restarting, you have to add sub stores in Opencart configuration.

OpenCart configuration for Multi stores.

1) Logon to your main store : C:/xampp/htdocs/store/admin

2) Goto: System > Settings and here you can add new stores.

3) When adding give stores urls: for First store give url: http://localhost/opcStore_1/

for 2nd Store give url: http://localhost/opcStore_2/


Thanks, but i use wamp server, can you help me?
vanmy
 
Posts: 3
Joined: Sun Jan 20, 2013 5:03 pm

Re: [How To] Multi-Store on Localhost

Postby prateek » Tue Feb 26, 2013 7:40 am

Lets assume:

the main store is : s.example.com
and i have 2 more sub stores: s1.example.com and s2.example.com

Now, my payment gateway is saying after payment confirmation they are going to redirect to a single domain/subdomain.

So i am confused now how opencart will take care of the payment as bank will redirect to a single domain/subdomain.
prateek
 
Posts: 1
Joined: Tue Feb 26, 2013 6:04 am

Re: [How To] Multi-Store on Localhost

Postby lovelycoser » Fri Mar 01, 2013 8:37 am

I read somewhere that there are plans to improve the functionality of the multistore options, but someone has estimated that only 5% of people use the multistore functionality, so it's not a high priority.
lovelycoser
 
Posts: 1
Joined: Fri Mar 01, 2013 8:33 am

Re: [How To] Multi-Store on Localhost

Postby zigzag253 » Fri Mar 08, 2013 8:08 pm

lovelycoser wrote:I read somewhere that there are plans to improve the functionality of the multistore options, but someone has estimated that only 5% of people use the multistore functionality, so it's not a high priority.


Chicken and Egg situation. Many would like to use it but don't use the multistore function because it is not easy to set up. To adapt a saying, "Code it and they will come." :-)
zigzag253
 
Posts: 3
Joined: Mon Jan 21, 2013 11:52 pm

Previous

Return to General Support

Who is online

Users browsing this forum: blackpink, cars111, dionysus, eurekasprings, Goliath, Google [Bot], labeshops, Maeploy, midgette, paulfeakins, PlusCybernet, rwenve, ShaneTFletcher, takahashi1973, uncommonhound and 81 guests

Hosted by Arvixe Web Hosting