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

MultiSite Module Support Thread

Views: 580,165

Results 1,041 to 1,060 of 2,247
09 Jan 2010, 19:30
#1041
yps avatar

yps

New Zenner

Join Date:
Feb 2008
Posts:
24
Plugin Contributions:
0

MultiSite Module Support Thread

buildingblocks:

try using just the name, site1 without using the <!-- --> using the tools > multi-site tools > Display the relations Categories/Sites

Then the category box is empty

define('SITE_NAME','shop'); 
define('CATEGORIES_ROOT','1'); //root categories is 1 for this site
09 Jan 2010, 19:36
#1042
yps avatar

yps

New Zenner

Join Date:
Feb 2008
Posts:
24
Plugin Contributions:
0

Re: MultiSite Module Support Thread

yps:

Then the category box is empty

define('SITE_NAME','shop');
define('CATEGORIES_ROOT','1'); //root categories is 1 for this site


Change to

```php
define('SITE_NAME','site1'); 
define('CATEGORIES_ROOT','1'); //root categories is 1 for this site
```\[/QUOTE]

Then the again only one category is shown but without name
09 Jan 2010, 19:40
#1043
buildingblocks avatar

buildingblocks

Totally Zenned

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

Re: MultiSite Module Support Thread

yps:

Then the category box is empty

define('SITE_NAME','shop');
define('CATEGORIES_ROOT','1'); //root categories is 1 for this site



SITE_NAME says shop

When your at tools > multi-site tools > Display the relations Categories/Sites

Are you actually entering the name site1 or shop?

I would be entering shop.
09 Jan 2010, 19:50
#1044
buildingblocks avatar

buildingblocks

Totally Zenned

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

Re: MultiSite Module Support Thread

buildingblocks:

SITE_NAME says shop

When your at tools > multi-site tools > Display the relations Categories/Sites

Are you actually entering the name site1 or shop?

I would be entering shop.

apparently spaces before or after the name is affecting mine when I try to reproduce what you are experiencing. Be sure there are no spaces before or after shop or site1, whichever you are using.

09 Jan 2010, 20:00
#1045
yps avatar

yps

New Zenner

Join Date:
Feb 2008
Posts:
24
Plugin Contributions:
0

Re: MultiSite Module Support Thread

i use the shop configuration.

<?php
$template_dir = "template2";
define('SITE_NAME','shop');
define('HTTP_SERVER', 'http://www.domain.de');
define('HTTPS_SERVER', 'http://www.domain.de');
define('CATEGORIES_ROOT','1'); //root categories is 1 for this site  
?>

maybe the problem is something in the code. I use zen cart 1.3.7.

For the second shop i use https://www.test.domain.de and a old template from the shop but if i go to the site i'm redirected to my shop site.

<?php
$template_dir = "template1";
define('SITE_NAME','test');
define('HTTP_SERVER', 'http://www.test.domain.de');
define('HTTPS_SERVER', 'http://www.test.domain.de');
define('CATEGORIES_ROOT','2'); //root categories is 1 for this site  
?>
09 Jan 2010, 20:06
#1046
buildingblocks avatar

buildingblocks

Totally Zenned

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

Re: MultiSite Module Support Thread

yps:

i use the shop configuration.

<?php $template_dir = "template2"; define('SITE_NAME','shop'); define('HTTP_SERVER', 'http://www.domain.de'); define('HTTPS_SERVER', 'http://www.domain.de'); define('CATEGORIES_ROOT','1'); //root categories is 1 for this site ?>
> 
> 
> maybe the problem is something in the code. I use zen cart 1.3.7.
> 
> 
> For the second shop i use <https://www.test.domain.de> and a old template from the shop but if i go to the site i'm redirected to my shop site.
> 
> ```php
<?php
$template_dir = "template1";
define('SITE_NAME','test');
define('HTTP_SERVER', 'http://www.test.domain.de');
define('HTTPS_SERVER', 'http://www.test.domain.de');
define('CATEGORIES_ROOT','2'); //root categories is 1 for this site  
?>

change CATEGORIES_ROOT','2' to CATEGORIES_ROOT','0' and see if that helps

09 Jan 2010, 20:48
#1047
yps avatar

yps

New Zenner

Join Date:
Feb 2008
Posts:
24
Plugin Contributions:
0

Re: MultiSite Module Support Thread

buildingblocks:

change CATEGORIES_ROOT','2' to CATEGORIES_ROOT','0' and see if that helps

Thank you so much for your ideas. But it did not help.

the only thing i did not find to change in my tpl_categories.php, was this, but this should not so effect the category.

#############################################################################
### FILE includes/templates/template_default/sideboxes/tpl_categories.php ###
#############################################################################
Line 33:
$specials_index = $db->ExecuteRandomMulti($specials_index_query, MAX_DISPLAY_SPECIAL_PRODUCTS_INDEX);
Replace by:
$specials_index = $db->ExecuteRandomMulti(cat_filter($specials_index_query), MAX_DISPLAY_SPECIAL_PRODUCTS_INDEX);
10 Jan 2010, 12:41
#1048
yps avatar

yps

New Zenner

Join Date:
Feb 2008
Posts:
24
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Hello,

i have another question: is it theoretically possible to change something in the sites_switch.php to use one domain?

https://www.domain.de/shop1
https://www.domain.de/shop2

thanks yps

10 Jan 2010, 14:19
#1049
buildingblocks avatar

buildingblocks

Totally Zenned

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

Re: MultiSite Module Support Thread

I'm trying to add

define('CATEGORIES_ROOT','11'); //root categories is 21 for this site

to site2.com_config.php

if it's set to anything but 0 and then I go to view store2 the category links in the sidebox are missing their text and when I click on the link I get a page showing nothing but the head banner

debug says

[10-Jan-2010 07:57:37] PHP Fatal error: Call to a member function MoveNext() on a non-object in /home/myID/public_html/mysite1.com/includes/classes/category_tree.php on line 68

line 68 shows $categories->MoveNext();

Multi-site log says (I don't know if it's related)

Query not changed:
select manufacturers_id, manufacturers_name from zen_manufacturers order by manufacturers_name

this info is what I've gathered but I don't know what it means or what to do about it. I'd like to be able to set the category.

11 Jan 2010, 06:07
#1050
interactivewest avatar

interactivewest

New Zenner

Join Date:
Dec 2008
Location:
Aspen, CO
Posts:
25
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I'm contemplating using Multi-Site Module for an upcoming project. Are there any known issues with the following add-on modules that I should be concerned with?

FCK Editor
Google Analytics
How Did You Hear About Us?
You May Also Like - Another Cross Sell Module
Quickbooks Import - Pro Edition
Gift Wrapping Module
Inventory by Attribute Module

Will I be able to have slightly different graphics for each domain.

Thanks,

13 Jan 2010, 12:35
#1051
notyet avatar

notyet

New Zenner

Join Date:
Jan 2010
Posts:
7
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Hi,

I have installed apple_zen with this mod at

http://site1.comparethebonus.com/
http://site2.comparethebonus.com/

everything seems to be working fine except the dropdown menu on the second site, i cant firnd a similar case in this thread, can anyone help?

Notyet

13 Jan 2010, 13:00
#1052
fotofx avatar

fotofx

Zen Follower

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

Re: MultiSite Module Support Thread

I don't think that is a multisite mod problem as much as a template problem. Looks like a define file (maybe a language file) is missing or not being found within the template.

When the menu was made for site 1 were the paths hard coded? Could it be that when you duplicated the template for site 2 that it is not locating a file or files that define the menu items. You can see the variables but it is not picking up the define for it.

Recheck your template for site 2 and I think you will find the problem.

13 Jan 2010, 15:10
#1053
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

everything seems to be working fine except the dropdown menu on the second site, i cant firnd a similar case in this thread, can anyone help?
Like fotofx said... this is a language problem. Check:
includes/languages/english/site2

...you have to re-create all the correspondient files (header, index, metatags).

13 Jan 2010, 16:06
#1054
notyet avatar

notyet

New Zenner

Join Date:
Jan 2010
Posts:
7
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Thank you, it was the extra definitions file for the second site...Thats been driving me mad

14 Jan 2010, 02:53
#1055
adam2020 avatar

adam2020

New Zenner

Join Date:
Nov 2009
Posts:
33
Plugin Contributions:
0

Re: MultiSite Module Support Thread

This mod is perfect for my current project. Everything works well without dedicated IP and SSL by simply parking domains on top of the main site.

The client desires a dedicated IP and SSL for each domain so I started moving forward with this but come to a dead end.

My host says I cannot have a site with a dedicated IP and SSL parked on another account also with dedicated IP and SSL.

How do I set up the domains to point to the main site?

@MotoDelta how did you do it?

I have a reseller account with WHM/CPanel but willing to move to VPS, dedicated or whatever is required to make it easy.

Hope someone can shed some light on this.

14 Jan 2010, 12:22
#1056
adam2020 avatar

adam2020

New Zenner

Join Date:
Nov 2009
Posts:
33
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I have found a method from Bill Bontrager's website:
http://www.willmaster.com/library/web-development/URL-masking.php using php that works :)

<?php
$URL = "http://domain.com/catalog/index.php";
$base = '<base href="'.$URL.'">';
$host = preg_replace('/^[^\/]+\/\//','',$URL);
$tarray = explode('/',$host);
$host = array_shift($tarray);
$URI = '/' . implode('/',$tarray);
$content = '';
$fp = @fsockopen($host,80,$errno,$errstr,30);
if(!$fp) { echo "Unable to open socked: $errstr ($errno)\n"; exit; } 
fwrite($fp,"GET $URI HTTP/1.0\r\n");
fwrite($fp,"Host: $host\r\n");
if( isset($_SERVER["HTTP_USER_AGENT"]) ) { fwrite($fp,'User-Agent: '.$_SERVER["HTTP_USER_AGENT"]."\r\n"); }
fwrite($fp,"Connection: Close\r\n");
fwrite($fp,"\r\n");
while (!feof($fp)) { $content .= fgets($fp, 128); }
fclose($fp);
if( strpos($content,"\r\n") > 0 ) { $eolchar = "\r\n"; }
else { $eolchar = "\n"; }
$eolpos = strpos($content,"$eolchar$eolchar");
$content = substr($content,($eolpos + strlen("$eolchar$eolchar")));
if( preg_match('/<head\s*>/i',$content) ) { echo( preg_replace('/<head\s*>/i','<head>'.$base,$content,1) ); }
else { echo( preg_replace('/<([a-z])([^>]+)>/i',"<\\1\\2>".$base,$content,1) ); }
?>

Is this the way to go? Any feedback is appreciated.

14 Jan 2010, 14:12
#1057
motodelta avatar

motodelta

Zen Follower

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

Re: MultiSite Module Support Thread

Adam, sent you a PM on this....

14 Jan 2010, 15:38
#1058
riky avatar

riky

New Zenner

Join Date:
Dec 2009
Posts:
59
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Hi guys ! After installed the multiple site module i see that I can manage the layout boxes for each template. BUT I can t do the same for page editor.

For example i select site 1 and edit the main page , then i see the change in site 1 and site2.

Any suggestions ?

I would like to do the same for payments .

14 Jan 2010, 21:26
#1059
lackew avatar

lackew

Zen Follower

Join Date:
Aug 2009
Location:
Tampa Bay
Posts:
223
Plugin Contributions:
1

Re: MultiSite Module Support Thread

Have mod installed on old site (not sure if I edited all the correct files). On front end Neither site is showing (blank page w/no errors given).
in Admin/Tools/Multi tools shows my products and an config file but there is no way to save it after editing so I copied into to www.site2.com_config.php. Gone over instructions several times and still not sure what to do with those file edits for www.site2.com_config.php or if needed for both sites or just the second site.

Both domains are pointing to the same DNS/IP and folder which the 1st site worked before the mod add-on.

17 Jan 2010, 22:50
#1060
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I just installed this on a store that is installed in a sub-directory... example: https://www.myurl.com/zen-cart and it works fine for the store, but when I visit the main website that's located at https://www.myurl.com I'm now getting "the domain https://www.myurl.com does not exist."

Is there something different that I need to do when the store is in a subdirectory like this???