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,866

Results 2,001 to 2,020 of 2,247
10 Feb 2016, 2:17 PM
#2001
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

MultiSite Module Support Thread

delia:

Ran into an unexpected problem. On the multi site, one is for wholesale customers and one is for retail. No matter which site the person uses, if they are wholesale, they will get the wholesale prices. But on the retail site, there is a shipping method for free shipping. Most wholesalers are unaware that there is a retail site but someone figured it out and checked out on the retail and got free shipping with his wholesale prices. I would think that there should be a way to keep that from happening but can't think what. Anyone got any ideas?

The problem is that the multi site mod doesn't know for which site a shopping cart or customer is. So at the moment there is little that can be done, that I know of. May be with some custom coding, but no quick fix I am afraid.

10 Feb 2016, 2:30 PM
#2002
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: MultiSite Module Support Thread

did figure it to be custom - was hoping someone else had run into to something similar.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

10 Feb 2016, 2:46 PM
#2003
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: MultiSite Module Support Thread

delia:

did figure it to be custom - was hoping someone else had run into to something similar.

I did, and mad a complete new mod (not to be mentioned here).
For the current mod you could add a site id to the cart and customers tables to make them unique, and alter the queries for the cart, account creation etc.

10 Feb 2016, 3:00 PM
#2004
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: MultiSite Module Support Thread

yep, know but client wont'

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

24 Feb 2016, 3:52 PM
#2005
tadj_hemingway avatar

tadj_hemingway

New Zenner

Join Date:
Apr 2013
Location:
Eastpointe, Michigan, United States
Posts:
20
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Thanks this helped.

1 Mar 2016, 6:22 PM
#2006
margecc avatar

margecc

Zen Follower

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

Re: MultiSite Module Support Thread

I am sure the answer is in here somewhere, but unfortunately I am extremely pressed for time, so maybe someone could just point me in the right direction.

I am running 2 sites, af-company.com and canada.af-company.com

I am setting up my payment module and using the config_sites I am adding my different settings to process the 2 sites, everything is fantastic so far. Where I'm running into problems is in the approved and declined URL's. I have the it currently set to
http://af-company.com/cart/index.php?main_page=checkout_process
which works beautifully for my American site.
However for the Canadian, I assumed I would need to use
http://canada.af-company.com/cart/index.php?main_page=checkout_process
but that gives me a File not Found error. If I used the other one, it takes me to the American site.

I put a copy of the file /public_html/includes/modules/checkout_process.php into my Canadian template so it is also located at
/public_html/includes/modules/canadiantemplate/checkout_process.php
but apparently that didn't help.

Could someone pretty please let me know what my URL is supposed to be or where I need to put a file.

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

1 Mar 2016, 6:30 PM
#2007
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: MultiSite Module Support Thread

Hello marge, are you sure the address is html http://canada.af-company.com/cart/index.php?main_page=checkout_process and not ```html
http://canada.af-company.com/index.php?main_page=checkout_process

1 Mar 2016, 6:30 PM
#2008
margecc avatar

margecc

Zen Follower

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

Re: MultiSite Module Support Thread

Actually don't worry about it. Apparently a quick clear of the cache and everything is working now. Wow, I'm not always sure what planet I'm working on.

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

1 Mar 2016, 6:32 PM
#2009
margecc avatar

margecc

Zen Follower

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

Re: MultiSite Module Support Thread

Thanks Design75, It was actually a bad post job on my part. I didn't have the /cart actually in there, I had already edited it out. Very long day apparently.

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

3 Mar 2016, 8:47 AM
#2011
royaldave avatar

royaldave

Zen Follower

Join Date:
Aug 2013
Location:
Perth, WA, AU
Posts:
285
Plugin Contributions:
1

Re: MultiSite Module Support Thread

delia:

yep, know but client wont'

This may not be desirable but there is code or an option (I've seen it on another thread and used to use it myself) that will empty your shopping cart on logout or login. This would be one way of preventing customers from mixing your sites.

8 Nov 2016, 3:27 PM
#2012
newpowercord avatar

newpowercord

New Zenner

Join Date:
Dec 2011
Posts:
17
Plugin Contributions:
0

Re: MultiSite Module Support Thread

will it work with zencart version 1.55b ?
any reply will be highly appreciated thanks for your time.

8 Nov 2016, 3:43 PM
#2013
newpowercord avatar

newpowercord

New Zenner

Join Date:
Dec 2011
Posts:
17
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I am trying to multi site add on zencart version 1.55b getting some problems with following files it will disappears side boxes and template wont show the colors.

includes/init_includes/overrides/init_templates.php
includes/classes/category_tree.php

includes/modules/bluemash_w/categories_tabs.php
includes/modules/bluemash_w/featured_products.php
includes/modules/bluemash_w/meta_tags.php
includes/modules/bluemash_w/new_products.php
includes/modules/bluemash_w/specials_index.php
includes/templates/bluemash_w/sideboxes/tpl_categories.php

includes/templates/bluemash_w/sideboxes/tpl_categories.php

where bluemash_w is my template name
looks like other files are ok only these above files have issue or may not compatible.
any help will be highly appreciated thanks in advance.

8 Nov 2016, 3:44 PM
#2014
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: MultiSite Module Support Thread

NewPowerCord:

will it work with zencart version 1.55b ?
any reply will be highly appreciated thanks for your time.
I have not tried it yet, but I see no reason why it would not. You may need to do some careful merging of files, since the supplied files are from Zen Cart v 1.5.1

8 Nov 2016, 3:45 PM
#2015
newpowercord avatar

newpowercord

New Zenner

Join Date:
Dec 2011
Posts:
17
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I am trying to multi site add on zencart version 1.55b getting some problems with following files it will disappears side boxes and template wont show the colors.

includes/init_includes/overrides/init_templates.php
includes/classes/category_tree.php

includes/modules/bluemash_w/categories_tabs.php
includes/modules/bluemash_w/featured_products.php
includes/modules/bluemash_w/meta_tags.php
includes/modules/bluemash_w/new_products.php
includes/modules/bluemash_w/specials_index.php
includes/templates/bluemash_w/sideboxes/tpl_categories.php

includes/templates/bluemash_w/sideboxes/tpl_categories.php

where bluemash_w is my template name
looks like other files are ok only these above files have issue.
any help will be highly appreciated thanks in advance.

8 Nov 2016, 4:29 PM
#2016
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: MultiSite Module Support Thread

NewPowerCord:

I am trying to multi site add on zencart version 1.55b getting some problems with following files it will disappears side boxes and template wont show the colors.

includes/init_includes/overrides/init_templates.php
includes/classes/category_tree.php

includes/modules/bluemash_w/categories_tabs.php
includes/modules/bluemash_w/featured_products.php
includes/modules/bluemash_w/meta_tags.php
includes/modules/bluemash_w/new_products.php
includes/modules/bluemash_w/specials_index.php
includes/templates/bluemash_w/sideboxes/tpl_categories.php

includes/templates/bluemash_w/sideboxes/tpl_categories.php

where bluemash_w is my template name
looks like other files are ok only these above files have issue.
any help will be highly appreciated thanks in advance.
It is hard to tell what went wrong, without access to your files, but I suspect you did not merge the files the right way. The file you mentioned have not changed much since 1.5.1.

8 Nov 2016, 5:14 PM
#2017
newpowercord avatar

newpowercord

New Zenner

Join Date:
Dec 2011
Posts:
17
Plugin Contributions:
0

Re: MultiSite Module Support Thread

hi I just replaced these files did not merge at all can you tell me what are the modifications you done in these files so I will open same files from v1.55b and modify them manually I believe that can help lot thanks for your time.

8 Nov 2016, 5:49 PM
#2018
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: MultiSite Module Support Thread

All changes should be marked with comments like '// bof Multi site' and '// eof Multi site'> NewPowerCord:

hi I just replaced these files did not merge at all can you tell me what are the modifications you done in these files so I will open same files from v1.55b and modify them manually I believe that can help lot thanks for your time.

8 Nov 2016, 7:37 PM
#2019
newpowercord avatar

newpowercord

New Zenner

Join Date:
Dec 2011
Posts:
17
Plugin Contributions:
0

Re: MultiSite Module Support Thread

looks to me some thing wrong with comments can you have look it is from
includes/init_includes/overrides/init_templates.php

/*

  • Determine the active template name
    /
    /
    bof Multi site
    $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'];
}
eof Multi site */

/**

  • The actual template directory to use
    */
8 Nov 2016, 8:11 PM
#2020
newpowercord avatar

newpowercord

New Zenner

Join Date:
Dec 2011
Posts:
17
Plugin Contributions:
0

Re: MultiSite Module Support Thread

hi it is from this file and I believe some thing wrong with comments can you see carefully and guide me thanks
includes/init_includes/overrides/init_templates.php

/*

  • Determine the active template name
    /
    /
    bof Multi site
    $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'];
}
eof Multi site */

/**

  • The actual template directory to use
    */