Forums / All Other Contributions/Addons / MultiSite Module Support Thread

MultiSite Module Support Thread

Started by gerome on 23 Apr 2007, 10:24 AM · Views: 581,870

Results 581 to 600 of 2,247
8 Oct 2008, 3:11 PM
#581
cablesimple avatar

cablesimple

New Zenner

Join Date:
May 2007
Posts:
99
Plugin Contributions:
0

MultiSite Module Support Thread

Yes Robbie, but I don't think this mod supports different currencies, but I certainly could be wrong about that.

I did something similar to what you are suggesting but with accounts. Different accounts are charged different pricing, and the account number is defined in the sub-domain config file. However, this took a moderate amount of hacking on my part to make it all work. It was worth it for me because we create quite a few sub-domain stores this way. I don't think it would be worth the effort for you.

If you find this module doesn't support different currencies then I would probably suggest you don't use this module at all. I would just duplicate your zen cart database and keep it up to date with a nightly dump/import of the necessary tables (products, categories...etc). During this process you could modify the pricing so that it's accurate when it gets to the other store.

8 Oct 2008, 3:29 PM
#582
cablesimple avatar

cablesimple

New Zenner

Join Date:
May 2007
Posts:
99
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Robbie,
Actually after re-reading your post I think you just want to setup different currencies on the same store. Right? Multisite would be to create different sub-domains or domains on the same zen-cart install.

You could probably just use:
https://www.zen-cart.com/tutorials/index.php?article=79
You can use whatever exchange rate works for your store, do don't have to use the actual US/CAN rate.

10 Oct 2008, 5:38 PM
#583
fotofx avatar

fotofx

Zen Follower

Join Date:
Apr 2008
Location:
South Florida
Posts:
195
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I have the mod up and running great.. I have a few items in a catagory and created a new root catagory for the second store. When I link a product from a category that is not visible in the first store, it does not show up in the 2nd store. The category is there but empty in the second store. Looks like linked products dont work..

Any thoughts?

10 Oct 2008, 5:40 PM
#584
margecc avatar

margecc

Zen Follower

Join Date:
Feb 2007
Location:
Ontario, Canada
Posts:
234
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I have the same problem and posted earlier about it with no reply :(

Everything looks good in admin for me, they just don't appear on the actual sites.

Thanks, Colleen
www.af-company.com
To err is human, but to really foul things up requires a computer. Farmers' Almanac, 1978

10 Oct 2008, 6:26 PM
#585
fotofx avatar

fotofx

Zen Follower

Join Date:
Apr 2008
Location:
South Florida
Posts:
195
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Yup... Same here. What I cant figure out is the category shows but the linked products in it wont.. I thought the filter only affected the categories not the products???

10 Oct 2008, 6:33 PM
#586
fotofx avatar

fotofx

Zen Follower

Join Date:
Apr 2008
Location:
South Florida
Posts:
195
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Looks like the author of this Mmod has not been here since February. Maybe someone else has an idea about how to fix this.

28 Oct 2008, 10:51 PM
#587
touchclothing avatar

touchclothing

Totally Zenned

Join Date:
Jul 2005
Location:
Brooklyn NY
Posts:
498
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Ok so I have read over this whole post and could not find an answer to my Question so here it is.

I have a site that has been live in zencart for about a year now we get about 20 orders a day. Now we would like to do another site that would sell some of the same items under a different name but dont want to have to load up the items 2 times. So how can I make this work with out messing up site #1? Does site #2 need to use the same data base as site #1?

Thanks for any help

29 Oct 2008, 1:22 AM
#588
motodelta avatar

motodelta

Zen Follower

Join Date:
Jan 2006
Posts:
119
Plugin Contributions:
0

Re: MultiSite Module Support Thread

This module can do that.

You'll use the same database. It will serve up a different template to the end-user based on the different domain/name.

It's NOT an easy install so prepare to migrate code by hand and debug.

29 Oct 2008, 1:29 AM
#589
fotofx avatar

fotofx

Zen Follower

Join Date:
Apr 2008
Location:
South Florida
Posts:
195
Plugin Contributions:
0

Re: MultiSite Module Support Thread

It is really not that bad to setup. Once you have it figured out it can do some pretty interesting things.

The following two sites are on the same cart using the multi site mod. They are not finished and not available for orders but you can check out what we did with the mod.

We are even using seperate favicon's

http://store.naturalleafinc.com

http://store.highgradetreezwrapper.com

Steve

29 Oct 2008, 1:36 AM
#590
motodelta avatar

motodelta

Zen Follower

Join Date:
Jan 2006
Posts:
119
Plugin Contributions:
0

Re: MultiSite Module Support Thread

That'll depend on if you just want to copy over the files. If you have to edit them it can be a real pain.

29 Oct 2008, 4:34 PM
#591
touchclothing avatar

touchclothing

Totally Zenned

Join Date:
Jul 2005
Location:
Brooklyn NY
Posts:
498
Plugin Contributions:
0

Re: MultiSite Module Support Thread

First Question is there any one that I can pay to set this up for me? Second - if not. When I set up the second shop it needs to connect to the data base of the first shop Right? Then I load the multi site mod in to the first site and the second.

29 Oct 2008, 5:02 PM
#592
fotofx avatar

fotofx

Zen Follower

Join Date:
Apr 2008
Location:
South Florida
Posts:
195
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Here is how it works....

It uses the override directories for the templates. Create a new theme or duplicate the themes you want to use. You need a config file for each site. The main sites config will use all the data from the normal Zen Cart config files and database. The second sites config will only contain the things you want different on the second site. From then on the individual theme override directory will be used for each site. You can make changes in the overrides and they will be reflected in just that site.

I am going to be out this evening but if you need help you can call or Skype me tomorrow.

Steve

31 Oct 2008, 12:09 AM
#593
cshart avatar

cshart

Zen Follower

Join Date:
Mar 2005
Posts:
370
Plugin Contributions:
0

Re: MultiSite Module Support Thread

1054 Unknown column 'CATEGORIES_ROOT' in 'where clause'
in:
[select cd.categories_name from categories c, categories_description cd where cd.categories_description LIKE '%-SITE_NAME-%' AND cd.language_id=1 AND c.parent_id = CATEGORIES_ROOT and c.categories_id = cd.categories_id and cd.language_id='1' and c.categories_status=1]

Having trouble with this and understanding the directions about www.site1.com_config.php file name it won't save to my computer and I actually want to set it up for on my local system first and there is no www. there even if the file did save.

Hope this is making some sense.

C.

I would be interested if anyone could help me set this up also.

31 Oct 2008, 12:26 AM
#594
fotofx avatar

fotofx

Zen Follower

Join Date:
Apr 2008
Location:
South Florida
Posts:
195
Plugin Contributions:
0

Re: MultiSite Module Support Thread

You need to save two files (Or more if you have more multi sites) in the includes/config_sites folder. The files name should be the actual site address not including the http:// and with _config.php after it. For example http://store.example.com would be named store.example.com_config.php

In that file you will set up whatever is different from the default site.

In the admin under multisite tools you can select "display configuration for a new site" and it will give you the default values for the config file. Just cut and paste the entire thing into your new config and uncomment out the lines you need to change.

The categories root problem is that you have to define what category you want the second (third, etc.) cart to start in. Go into your categories and look at the id# and use that in the config file.

3 Nov 2008, 2:49 PM
#595
gonze1 avatar

gonze1

New Zenner

Join Date:
Jun 2007
Location:
Puerto Rico
Posts:
15
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I would like to know if there is a possibility to use the great addon using domain.com/customername and then reroute it to the main shopping cart domain.com/shopsystem?

I do not want to use the domain method as i will have to register domain names and also ssl certificates for each customer which uses my cart....

Any ideas?? Thank you
:blush:

14 Nov 2008, 11:38 PM
#596
alegria avatar

alegria

New Zenner

Join Date:
Jun 2008
Posts:
10
Plugin Contributions:
0

Re: MultiSite Module Support Thread

ajnin000:

I have since fixed my issue, I needed to add detail in my /includes/config_sites/www.site1.com_config.php files.

Hi Ajnin - I have the same issue - could you possibly let me know what detail you needed to add?

21 Nov 2008, 1:46 AM
#597
touchclothing avatar

touchclothing

Totally Zenned

Join Date:
Jul 2005
Location:
Brooklyn NY
Posts:
498
Plugin Contributions:
0

Re: MultiSite Module Support Thread

This may sound kinda dumb but I could not find in here and I read over the install on the Multi site.

So if I want to have 2 sites like store1.example.com and store2.example.com then I need to load zencart to both sites right? Then they both need to link to the same data base right? then I load up the files that came in the multi site download - now do I load them up to both sites or just the one that I want to be the control site? and if I want to add more sites to this later one how do I do it?

21 Nov 2008, 2:12 AM
#598
fotofx avatar

fotofx

Zen Follower

Join Date:
Apr 2008
Location:
South Florida
Posts:
195
Plugin Contributions:
0

Re: MultiSite Module Support Thread

NO.....

OK, Both domains must point to the same site. When you request a site from the server, host headers are included in the request. This is how the server would normally decide what site to serve up. Similar to a shared hosting setup, one IP address but the host header tells the server what site to send.

Both domains will point to the same site. When the site begins to load, the config file for that site is loaded (store1.example.com_config.php and store2.example.com_config.php). If there is a line in there that overrides the database config then the override is loaded, otherwise the database configuration is used. At the least you would need the following in each file.

$template_dir = "store1";
define('SITE_NAME','store1');
define('HTTP_SERVER', 'http://store1.example.com);
//define('HTTPS_SERVER', 'https://store1.example.com);
define('CATEGORIES_ROOT','0'); //root categories is 0 for this site
define('ENABLE_SSL', 'false');

You will notice in the above example I have https turned off (commented out)
Also the root category of 0 is the default but it could be any category.

You can override anything in the config database this way. Just create two different templates and don't forget to also create separate language files where applicable..

Steve

21 Nov 2008, 2:17 AM
#599
fotofx avatar

fotofx

Zen Follower

Join Date:
Apr 2008
Location:
South Florida
Posts:
195
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Just to add one more thing in case you are confused. If you own two domain names (abc.com & zyx.com) you could use "store" just like you would "www" by setting the DNS A Record for each domain to the same IP address. Then store.abc.com & store.zyx.com would actually be the same site.

Steve

21 Nov 2008, 3:20 AM
#600
touchclothing avatar

touchclothing

Totally Zenned

Join Date:
Jul 2005
Location:
Brooklyn NY
Posts:
498
Plugin Contributions:
0

Re: MultiSite Module Support Thread

So I load zen cart up to one site then point the other site to that one right? I will give it a go and see how it all works out. Then if I want to add another site to this then I just make another template and then add more to the config file? Also is this store1.example.com_config.php and store2.example.com_config.php all under one config.php or is there 2 different config files? if so where do the 2 go in the same area?