Zen Cart Logo
Forums / All Other Contributions/Addons / MultiSite Module Support Thread

MultiSite Module Support Thread

Views: 580,151

Results 961 to 980 of 2,247
21 Dec 2009, 02:24
#961
ideasgirl avatar

ideasgirl

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,437
Plugin Contributions:
3

MultiSite Module Support Thread

Isn't it supposed to be cross-cart? Like if I add something on one site and go to the other one and select another item be both in my cart? Or is this supposed to happen after having an account?

21 Dec 2009, 02:33
#962
fotofx avatar

fotofx

Zen Follower

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

Re: MultiSite Module Support Thread

It is only cross cart if you include the sidebox..

From The Existing Docs.....

If you want to allow the shoppers to have a cross-sites cart (orders products from different websites in the same cart),
You have to display the sidebox called "site_links.php" and you have to add the sites that you want to be link by editing the file
"includes\modules\sideboxes\site_links.php".

In this file, you have to add as many add_site_link(...); as you want of site links.

21 Dec 2009, 02:44
#963
fotofx avatar

fotofx

Zen Follower

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

Re: MultiSite Module Support Thread

I went ahead and turned the sidebox on. I also included an outside link so you can see how it functions.

As long as the sidebox is off your customer can be kept isolated and it is possible to have multiple carts with the customer not having any idea it is the same company. With the sidebox on they can see the other site(s) exists.

21 Dec 2009, 02:45
#964
ideasgirl avatar

ideasgirl

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,437
Plugin Contributions:
3

Re: MultiSite Module Support Thread

IMO this is one of the best features of the module. I "suggest" to have it enabled so people can see that's available.

Lovely

21 Dec 2009, 02:52
#965
fotofx avatar

fotofx

Zen Follower

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

Re: MultiSite Module Support Thread

Many of the modules users (and most of my customers) use the module to give the "illusion" of seperate stores.

I have one customer who has a wholesale store setup and only sells to retailers and is also running a retail store.

It is important for them to have completely seperate stores and designs but have the unified catalog for stock purposes.

There are also many dropshippers out there who have a variety of items. You may want to list their entire catalog but break it down into seperate shops. (Electronics, Housewares, Etc.)

21 Dec 2009, 03:03
#966
ideasgirl avatar

ideasgirl

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,437
Plugin Contributions:
3

Re: MultiSite Module Support Thread

Question: If the sidebox is not on, and 1 person signup in one store, will they have an account on the other site?

21 Dec 2009, 03:07
#967
fotofx avatar

fotofx

Zen Follower

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

Re: MultiSite Module Support Thread

Yes.. There is still only 1 backend. But anything added to the cart in one site will not be in the other sites cart if they do not cross over using the sidebox.

The sidebox adds the zenid to the link.

23 Dec 2009, 00:45
#968
theguest avatar

theguest

Zen Follower

Join Date:
Jul 2009
Posts:
117
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Hello fotofx,

Thanks for posting this up. It surely helps.

Can you please tell me. If I have zencart installed let's say on asdf.com and I would like to add two more shops. If I follow what you provided, after successful installation I'll have total of three shops:

  1. asdf.com
  2. anotherone.com
  3. anotheranotherone.com
    The main question is - if I add two more shops do I need to add any configuration or do anything in order to keep my original asdf.com site unchanged?

Thanks,
TheGuest

fotofx:

I have setup a real basic multisite demo..

Default Zen Cart install.

Store 1 is using the default "classic" template.
http://multi1.zen-carts.com

Store 2 is using the "silverfish" template from the contributions.
http://multi2.zen-carts.com

Products are the sample ones provided with Zen Cart. Notice the first site has hardware and software categories. The second site has the DVD categories. Both sites share the other categories.

Here are the config_sites files http://multi1.zen-carts.com/config_sites.zip

You will find the multi2 config file has most of the defines commented out.
Uncommenting that line and making a change will allow multi2 to override multi1's default settings.

Hope this helps until I can rewrite some of the doc's.

23 Dec 2009, 00:53
#969
fotofx avatar

fotofx

Zen Follower

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

Re: MultiSite Module Support Thread

Just add a config file for each new domain and insert the site tag into each catagory you want in that shop.

23 Dec 2009, 19:37
#970
theguest avatar

theguest

Zen Follower

Join Date:
Jul 2009
Posts:
117
Plugin Contributions:
0

Re: MultiSite Module Support Thread

fotofx:

Just add a config file for each new domain and insert the site tag into each catagory you want in that shop.

Hi fotofx,

I just sent you a PM. I'd appreciate if you can have a look at it.

Thanks,
TheGuest

23 Dec 2009, 23:04
#971
theguest avatar

theguest

Zen Follower

Join Date:
Jul 2009
Posts:
117
Plugin Contributions:
0

Re: MultiSite Module Support Thread

So as I am trying to bring the main site up I have this issue:

main site asdf.com
second shop asdf.asdf.com

for now I just need to bring main site up - asdf.com
I did not modify any files but added new files to admin area and to includes. I also created a config file - www.asdf.com_config.php which has the following:

<?php $template_dir = "cold_steel"; define('SITE_NAME','asdf'); define('HTTP_SERVER', 'http://www.asdf.com'); ?>

So what happens now is that when I go to my site http://asdf.com or http://www.asdf.com it loads (on URL change) the site with products and so forth but it does not select right template. It looks like it picked up default one. Side boxes are missing as well.

I spent some time already but can't figure out why it's not picking up cold_steel template. Folder under templates is called 'cold_steel'.

Any thoughts?

Thanks,
TheGuest

TheGuest:

Hi fotofx,

I just sent you a PM. I'd appreciate if you can have a look at it.

Thanks,
TheGuest

23 Dec 2009, 23:34
#972
fotofx avatar

fotofx

Zen Follower

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

Re: MultiSite Module Support Thread

Looks like it is working at the www. address.

The DNS and file matching is very important.

23 Dec 2009, 23:42
#973
fotofx avatar

fotofx

Zen Follower

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

Re: MultiSite Module Support Thread

The main site should have it's template set from within the admin. All sideboxes are off by default on a new template. You need to load the template and go into sideboxes and setup the ones you want. Or press the defailt button on the bottom.

23 Dec 2009, 23:55
#974
theguest avatar

theguest

Zen Follower

Join Date:
Jul 2009
Posts:
117
Plugin Contributions:
0

Re: MultiSite Module Support Thread

init_templates.php file gets replaced where code

$template_dir = "";
$sql = "select template_dir
from " . TABLE_TEMPLATE_SELECT . "
where template_language = 0";
$template_query = $db->Execute($sql);
$template_dir = $template_query->fields['template_dir'];

$sql = "select template_dir
from " . TABLE_TEMPLATE_SELECT . "
where template_language = '" . $_SESSION['languages_id'] . "'";
$template_query = $db->Execute($sql);
if ($template_query->RecordCount() > 0) {
$template_dir = $template_query->fields['template_dir'];
}

gets commented out. So which file will be responsible to load a template?

TheGuest:

So as I am trying to bring the main site up I have this issue:

main site asdf.com
second shop asdf.asdf.com

for now I just need to bring main site up - asdf.com
I did not modify any files but added new files to admin area and to includes. I also created a config file - www.asdf.com_config.php which has the following:

<?php $template_dir = "cold_steel"; define('SITE_NAME','asdf'); define('HTTP_SERVER', 'http://www.asdf.com'); ?>

So what happens now is that when I go to my site http://asdf.com or http://www.asdf.com it loads (on URL change) the site with products and so forth but it does not select right template. It looks like it picked up default one. Side boxes are missing as well.

I spent some time already but can't figure out why it's not picking up cold_steel template. Folder under templates is called 'cold_steel'.

Any thoughts?

Thanks,
TheGuest

23 Dec 2009, 23:58
#975
theguest avatar

theguest

Zen Follower

Join Date:
Jul 2009
Posts:
117
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Sorry but I don't get your point.

fotofx:

Looks like it is working at the www. address.

The DNS and file matching is very important.

24 Dec 2009, 00:06
#976
theguest avatar

theguest

Zen Follower

Join Date:
Jul 2009
Posts:
117
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Looks like file www.asdf.com_config.php does not have any effect.
Oh by the way when I try to set a template in admin for my main site it simply does not change it.

I want to make one thing clear. I did not modify any files I just simply added new files and executed a db query as suggested on dev site.

fotofx:

The main site should have it's template set from within the admin. All sideboxes are off by default on a new template. You need to load the template and go into sideboxes and setup the ones you want. Or press the defailt button on the bottom.

24 Dec 2009, 03:03
#977
fotofx avatar

fotofx

Zen Follower

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

Re: MultiSite Module Support Thread

Is this a modded site or a stock 1.3.8 install? Did you do any edits or simply copy the files from the mod?

26 Dec 2009, 16:55
#978
theguest avatar

theguest

Zen Follower

Join Date:
Jul 2009
Posts:
117
Plugin Contributions:
0

Re: MultiSite Module Support Thread

It is a modified site but i mainly modified template - css, etc. so I did not modify any core files.

Yes, I simply copied the files from the mod.

Thanks.

fotofx:

Is this a modded site or a stock 1.3.8 install? Did you do any edits or simply copy the files from the mod?

26 Dec 2009, 17:48
#979
wheat avatar

wheat

New Zenner

Join Date:
Oct 2006
Posts:
62
Plugin Contributions:
0

Re: MultiSite Module Support Thread

fotofx:

I have setup a real basic multisite demo..

speaking from the school of "stare and compare"

THANK YOU - this born blonde now silver haired woman is FINALLY getting it.

Now to "just make it work"

Wheat

26 Dec 2009, 19:44
#980
theguest avatar

theguest

Zen Follower

Join Date:
Jul 2009
Posts:
117
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Got this part finally working. I did not modify configure.php - that was the problem

Thanks,
TheGuest

TheGuest:

It is a modified site but i mainly modified template - css, etc. so I did not modify any core files.

Yes, I simply copied the files from the mod.

Thanks.