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

MultiSite Module Support Thread

Views: 580,360

Results 1,461 to 1,480 of 2,247
6 Aug 2011, 2:38 AM
#1461
gazag avatar

gazag

Zen Follower

Join Date:
Jun 2011
Posts:
195
Plugin Contributions:
0

MultiSite Module Support Thread

I have been trouble shooting and trying everything i can think of!

When my new.mydomain.com_config.php says:-

<?php $template_dir = "new_mydomain"; define('SITE_NAME','new_mydomain'); define('HTTP_SERVER', 'http://new.mydomain.com'); define('HTTPS_SERVER', 'https://new.mydomain.com'); define('CATEGORIES_ROOT','1'); //root categories is 1 for this site define('STORE_NAME','Limelight Products - NEW'); //Store Name ?>

no formating and the template doesn't load!

if i change it to:-

<?php $template_dir = "new_mydomain"; define('SITE_NAME','new_mydomain'); define('HTTP_SERVER', 'http://www.mydomain.com'); define('HTTPS_SERVER', 'https://www.mydomain.com'); define('CATEGORIES_ROOT','1'); //root categories is 1 for this site define('STORE_NAME','Limelight Products - NEW'); //Store Name ?>

Then the template loads and everything is there except the pictures!!!:lamo:

Can anyone help out?????

6 Aug 2011, 7:43 PM
#1462
gazag avatar

gazag

Zen Follower

Join Date:
Jun 2011
Posts:
195
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Ok after much trial and error and reading hundreds of pages in this forum i have got everything working except the images!!

Can anyone help????

6 Aug 2011, 8:54 PM
#1463
keezee avatar

keezee

New Zenner

Join Date:
Jun 2010
Posts:
38
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Hello!

I am having a hard time determining if this MultiSite Module is what I need.

I currently manage a site for a client who essentially wants three additional sites.

Essentially, they want to manage four sites from within one admin panel.

A site dealing with auto parts, another dealing in hobby supplies, another dealing with children's clothes, etc... four very different sites with central management.

Also, is this MultiSite Module conducive to SEO?

If four domains with different product lines can be linked together, will the domain promoting auto parts be distinguished from hobby supplies from an SEO perspective?

Thanks for any info.

6 Aug 2011, 10:14 PM
#1464
sandihudson avatar

sandihudson

New Zenner

Join Date:
Apr 2011
Posts:
20
Plugin Contributions:
0

Re: MultiSite Module Support Thread

This is definitely the most complex mod I've worked with but I'm getting through it! Just a couple more fixes and we're there. Right now we have just one main site and one child site - will be adding more once we work out the last issues.

First issue is on the second site where all the products showing actually link back to the main site. For example there's a product called Shoe 1 in the products shown on the home page; instead of linking to site2.com/product_info it goes to mainsite/product_info. All the products in all categories show on both sites (for now) but shouldn't products on site2 link to site2 pages? It actually happens with ALL the links - categories, shipping info, conditions, contact, etc.

Second problem is that at the top of the home page just under the breadcrumb on site 2 it says "Main Site" as the page title text and underneath it says "Site 2". How to make the text show the name of Site 2? The two templates are very different so I'm pretty sure it's being called in the admin but can't seem to find where to change it for individual stores.

Thanks for any help anyone can offer!

7 Aug 2011, 4:47 AM
#1465
noppie avatar

noppie

Zen Follower

Join Date:
Mar 2004
Posts:
210
Plugin Contributions:
0

Re: MultiSite Module Support Thread

the answer is
includes/module/sideboxes/site_links.php

you have change it in the code line 17-18

//add_site_link(DISPLAYED NAME OF THE SITE , URL OF THE SITE);
add_site_link('Example Shop -- Edit site_links.php...','http://www.example.com');

sandihudson:

This is definitely the most complex mod I've worked with but I'm getting through it! Just a couple more fixes and we're there. Right now we have just one main site and one child site - will be adding more once we work out the last issues.

First issue is on the second site where all the products showing actually link back to the main site. For example there's a product called Shoe 1 in the products shown on the home page; instead of linking to site2.com/product_info it goes to mainsite/product_info. All the products in all categories show on both sites (for now) but shouldn't products on site2 link to site2 pages? It actually happens with ALL the links - categories, shipping info, conditions, contact, etc.

Second problem is that at the top of the home page just under the breadcrumb on site 2 it says "Main Site" as the page title text and underneath it says "Site 2". How to make the text show the name of Site 2? The two templates are very different so I'm pretty sure it's being called in the admin but can't seem to find where to change it for individual stores.

Thanks for any help anyone can offer!

7 Aug 2011, 4:49 AM
#1466
noppie avatar

noppie

Zen Follower

Join Date:
Mar 2004
Posts:
210
Plugin Contributions:
0

Re: MultiSite Module Support Thread

that is what is so great about this software addon.. is you have have all those stores and one admin..

this is why it was created.

Keezee:

Hello!

I am having a hard time determining if this MultiSite Module is what I need.

I currently manage a site for a client who essentially wants three additional sites.

Essentially, they want to manage four sites from within one admin panel.

A site dealing with auto parts, another dealing in hobby supplies, another dealing with children's clothes, etc... four very different sites with central management.

Also, is this MultiSite Module conducive to SEO?

If four domains with different product lines can be linked together, will the domain promoting auto parts be distinguished from hobby supplies from an SEO perspective?

Thanks for any info.

7 Aug 2011, 8:48 AM
#1467
sandihudson avatar

sandihudson

New Zenner

Join Date:
Apr 2011
Posts:
20
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Noppie,

Thanks for you quick response and assitance!

Actually the problem I'm having is a bit different than site-links.php as I'm not giving customers the option to move between sites or any external sites.

You can see the problem at softball-baseball-bats.com (don't knock the template, I'm still working on that LOL). All the links and products show up correctly but they link back to the main site which is worthsoftballbats.com.

I did manage to get rid of the second site name at the top in the languages/english/html_includes/MY_TEMPLATE/define_main_page.php in case anyone else has the same problem. However, the main site name is still there as the page title.

Any suggestions would be helpful!

7 Aug 2011, 12:06 PM
#1468
gazag avatar

gazag

Zen Follower

Join Date:
Jun 2011
Posts:
195
Plugin Contributions:
0

Re: MultiSite Module Support Thread

any idea why images don't show up on my site1 and site2??? only on my main site!! PM me for a link if it helps!!

7 Aug 2011, 1:45 PM
#1469
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: MultiSite Module Support Thread

Keezee:

Hello!

I am having a hard time determining if this MultiSite Module is what I need.

I currently manage a site for a client who essentially wants three additional sites.

Essentially, they want to manage four sites from within one admin panel.

A site dealing with auto parts, another dealing in hobby supplies, another dealing with children's clothes, etc... four very different sites with central management.

Also, is this MultiSite Module conducive to SEO?

If four domains with different product lines can be linked together, will the domain promoting auto parts be distinguished from hobby supplies from an SEO perspective?

Thanks for any info.

In short: the four sites will have only one bit in common, namely the database. Everything else like domain name, template, content etc will be different (depending on your imagination and design capabilities)

7 Aug 2011, 7:10 PM
#1470
noppie avatar

noppie

Zen Follower

Join Date:
Mar 2004
Posts:
210
Plugin Contributions:
0

Re: MultiSite Module Support Thread

this may help
this is my config_sites.php for my second site..
Maybe that will help.

[QOUTE]//define('PRODUCTS_OPTIONS_TYPE_SELECT','0'); //Product option type Select
//define('UPLOAD_PREFIX','upload_'); //Upload prefix
//define('TEXT_PREFIX','txt_'); //Text prefix

$template_dir = "Mystic";
define('SITE_NAME','Mystic');
define('HTTP_SERVER', 'http://buykandibracelets.com');
//define('HTTPS_SERVER', 'https://herasonlinemarket.com/');
define('ENABLE_SSL', 'false');
define('CATEGORIES_ROOT','0'); //root categories is 1 for this site
define('DIR_WS_CATALOG', '/shop/');
//define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

// define('DIR_WS_PHPBB', '/');

// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_CATALOG', 'XXXXXXXXX/XXX/shop/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');[/QUOTE]

sandihudson:

Noppie,

Thanks for you quick response and assitance!

Actually the problem I'm having is a bit different than site-links.php as I'm not giving customers the option to move between sites or any external sites.

You can see the problem at softball-baseball-bats.com (don't knock the template, I'm still working on that LOL). All the links and products show up correctly but they link back to the main site which is worthsoftballbats.com.

I did manage to get rid of the second site name at the top in the languages/english/html_includes/MY_TEMPLATE/define_main_page.php in case anyone else has the same problem. However, the main site name is still there as the page title.

Any suggestions would be helpful!

7 Aug 2011, 8:41 PM
#1471
sandihudson avatar

sandihudson

New Zenner

Join Date:
Apr 2011
Posts:
20
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Thanks again Noppie, I appreciate your help with this!

My config file is softball-baseball-bats.com_config.php (and one for the www.) and looks like:

<?php define('STORE_NAME','Softball Baseball Bats'); //Store Name define('STORE_OWNER','Softball Baseball Bats'); //Store Owner define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); $template_dir = "softballbaseballbats"; define('SITE_NAME','softballbaseballbats'); define('HTTP_SERVER', 'http://softball-baseball-bats.com'); define('HTTPS_SERVER', 'https://softball-baseball-bats.com'); define('CATEGORIES_ROOT','0'); //root categories is 1 for this site ?>

We have some differences but it looks pretty much like the sample that came with the mod.

I suspect it's probably the category_root thing but all the products should show on all the sites so that shouldn't be an issue - or - it's in the add-on setup.

The addon points to the root cuz that's where Zen is installed, and all the categories have been assigned to both sites.

Then again I'm the one with problems so what do I know? :)

8 Aug 2011, 12:18 AM
#1472
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: MultiSite Module Support Thread

gazag:

any idea why images don't show up on my site1 and site2??? only on my main site!! PM me for a link if it helps!!

This happened to me when the site name and the physical site-named-directory or override directory didn't exist.

I have also found some missing cat_filter lines of code... most likely as a result of upgraded files that i have and the stock install does not.

Keep me posted

**Twtich.

**

8 Aug 2011, 2:35 AM
#1473
gazag avatar

gazag

Zen Follower

Join Date:
Jun 2011
Posts:
195
Plugin Contributions:
0

Re: MultiSite Module Support Thread

twitchtoo:

This happened to me when the site name and the physical site-named-directory or override directory didn't exist.

I have also found some missing cat_filter lines of code... most likely as a result of upgraded files that i have and the stock install does not.

Keep me posted

**Twtich.

**

Sorry i don't quite understand!
i presume that your are meaning my includs/config_sites/?
name of the file is new dot limelightproducts dot net_config.php

it contains:-

define('DIR_WS_CATALOG', '/test/');
define('DIR_WS_HTTPS_CATALOG', '/test/');
$template_dir = "new_limelightproducts";
define('SITE_NAME','new_limelightproducts');

what is wrong??

8 Aug 2011, 7:42 AM
#1474
oberheimer avatar

oberheimer

Zen Follower

Join Date:
Feb 2009
Posts:
108
Plugin Contributions:
0

Re: MultiSite Module Support Thread

How do i define a language for one site lets say i want swedish. I can't find the decumentation so....

8 Aug 2011, 9:20 AM
#1475
yapliren avatar

yapliren

New Zenner

Join Date:
May 2006
Posts:
31
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I need help on modify this best seller script to comply with cat_filter by multisite.

The problem: Best seller script shows all the product across multiple carts. How do I implement or trigger the categories filter set by multisite?

Anyone can help?

Script as below:

<?php
/**
 * Best Sellers Alpha 1
 */

if (BEST_SELLERS_SHOW_OUT_OF_STOCK == 'true') {

$listing_sql = "select distinct p.products_quantity, p.products_id, p.products_image, pd.products_name, p.products_ordered
                      from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
                      where p.products_status = '1'
                      and p.products_ordered > 0
					  and p.products_id = pd.products_id
                      and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
                      order by p.products_ordered desc, pd.products_name";
					  
} else {
					  
$listing_sql = "select distinct p.products_quantity, p.products_id, p.products_image, pd.products_name, p.products_ordered
                      from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
                      where p.products_status = '1'
                      and p.products_ordered > 0
					  and p.products_id = pd.products_id
                      and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
					  and p.products_quantity > 0
                      order by p.products_ordered desc, pd.products_name";
					  
}
$define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL,
  'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME,
  'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER,
  'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE,
  'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY,
  'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT,
  'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE);

  /*                         ,
  'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW);
  */
  asort($define_list);
  reset($define_list);
  $column_list = array();
  foreach ($define_list as $key => $value)
  {
    if ($value > 0) $column_list[] = $key;
  }
?>

Thank you in advanced

8 Aug 2011, 8:51 PM
#1476
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: MultiSite Module Support Thread

gazag:

Sorry i don't quite understand!
i presume that your are meaning my includs/config_sites/?
name of the file is new dot limelightproducts dot net_config.php

it contains:-

define('DIR_WS_CATALOG', '/test/');
define('DIR_WS_HTTPS_CATALOG', '/test/');
$template_dir = "new_limelightproducts";
define('SITE_NAME','new_limelightproducts');

what is wrong??

When you create/duplicate the physical override directories for your site template you should be using 'new_limelightproducts' as the folder/directory name.

Twitch.

8 Aug 2011, 9:06 PM
#1477
gazag avatar

gazag

Zen Follower

Join Date:
Jun 2011
Posts:
195
Plugin Contributions:
0

Re: MultiSite Module Support Thread

twitchtoo:

When you create/duplicate the physical override directories for your site template you should be using 'new_limelightproducts' as the folder/directory name.

Twitch.

Thanks Twitch

It turned out to be an error on the server, hotlinks protection had been enabled and the subdomains weren't on the allowed list.:oops:
Thanks for your help!

10 Aug 2011, 1:51 PM
#1478
gazag avatar

gazag

Zen Follower

Join Date:
Jun 2011
Posts:
195
Plugin Contributions:
0

Re: MultiSite Module Support Thread

twitchtoo:

This happened to me when the site name and the physical site-named-directory or override directory didn't exist.

I have also found some missing cat_filter lines of code... most likely as a result of upgraded files that i have and the stock install does not.

Keep me posted

**Twtich.

**

Twitch,

When you say missing cat_filter where abouts??

I am having another problem, i have installed "A Pure Black" Template on one of my sites, because it has the tpl_categories in the override file i had to edit the relevant two lines!

Now when i look at my site it comes up with the header, the site links sidebox and nothing else. If i change the tpl_categories file back to the original non modded one it comes up fine!!

Any ideas what i am doing wrong, i installed all the modified files into a clean install of zen-cart and i put them in the template default file.

14 Aug 2011, 7:07 PM
#1479
lndlyb4 avatar

lndlyb4

New Zenner

Join Date:
Mar 2009
Posts:
78
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I'm having a bit of a tough time installing this
module onto my site.
I'm working with an existing zen cart installation that has been
customized quite a bit.
I followed the instructions for adding new files and hand-coding the files that already exist.
The primary site is livingcolorgardencenter.net and the second
site is a subdomain blackoliveeastnursery.net.

When I try to access my online store at livingcolorgardencenter.net/zencart_living_color/
all I get is a blank page.

I'm not sure if it is because the zencart store is in the folder "zencart_living_color"
instead of the root folder.

My config files are named livingcolorgardencenter.net_config.php and blackoliveeastnursery.net_config.php

Their contents are as follows:

<?php
$template_dir = "living_color";
define('SITE_NAME','Livng Color Garden Center');
define('HTTP_SERVER', 'http://www.livingcolorgardencenter.net');
define('HTTPS_SERVER', 'https://livingcolorgardencenter.net');
define('CATEGORIES_ROOT','1'); //root categories is 1 for this site  
?>
<?php
$template_dir = "black_olive";
define('SITE_NAME','Black Olive East Nursery');
define('HTTP_SERVER', 'http://www.blackoliveeastnursery.net');
define('HTTPS_SERVER', 'https://blackoliveeastnursery.net');
define('CATEGORIES_ROOT','1'); //root categories is 1 for this site  
?>

I have seen some posts about "pointing" the named servers to the right domain which I am having trouble understanding.

I hope I have provided enough information.

Any advice would be really appreciated.

Bill

14 Aug 2011, 8:07 PM
#1480
noppie avatar

noppie

Zen Follower

Join Date:
Mar 2004
Posts:
210
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Ok Now I understand why other people posting on these boards get so upset..
the answer is in this forum..
I answered something close in post #1469

I have cpanel for my background on my domains.. what do you have?
this is where I had the most problem... and spent the most time on these forums is setting up the extra domain in the background..
is your hosting linux or windows.
I will try to help you .. as long as you have cpanel.. I don't know any of the others.
noppie

lndlyb4:

I'm having a bit of a tough time installing this
module onto my site.
I'm working with an existing zen cart installation that has been
customized quite a bit.
I followed the instructions for adding new files and hand-coding the files that already exist.
The primary site is livingcolorgardencenter.net and the second
site is a subdomain blackoliveeastnursery.net.

When I try to access my online store at livingcolorgardencenter.net/zencart_living_color/
all I get is a blank page.

I'm not sure if it is because the zencart store is in the folder "zencart_living_color"
instead of the root folder.

My config files are named livingcolorgardencenter.net_config.php and blackoliveeastnursery.net_config.php

Their contents are as follows:

<?php $template_dir = "living_color"; define('SITE_NAME','Livng Color Garden Center'); define('HTTP_SERVER', 'http://www.livingcolorgardencenter.net'); define('HTTPS_SERVER', 'https://livingcolorgardencenter.net'); define('CATEGORIES_ROOT','1'); //root categories is 1 for this site ?>
> 
> 
> ```php
<?php
$template_dir = "black_olive";
define('SITE_NAME','Black Olive East Nursery');
define('HTTP_SERVER', 'http://www.blackoliveeastnursery.net');
define('HTTPS_SERVER', 'https://blackoliveeastnursery.net');
define('CATEGORIES_ROOT','1'); //root categories is 1 for this site  
?>

I have seen some posts about "pointing" the named servers to the right domain which I am having trouble understanding.

I hope I have provided enough information.

Any advice would be really appreciated.

Bill