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

Results 2,181 to 2,200 of 2,247
18 Nov 2021, 5:52 AM
#2181
royaldave avatar

royaldave

Zen Follower

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

MultiSite Module Support Thread

Carbonless:

Any issues to be aware of? I used to have a heavily modified version running and had to abandon from lack of updates as many core files were modified.

How is everyone going with this?

I am finally moving to 157c from 156c and hit a couple of snags.

1 - With the new version of cat_filter (as found in post 2148) - well basically it didn't work - ALL my categories were showing up. But by downgrading to the cat_filter from the previous version of the module it works fine.

2 - The files included in /zencart/includes/init_includes/overrides , should these actually be in /zencart/includes/init_includes ? (assume so)

Otherwise seems to work but admittedly not much time for testing so far.

18 Nov 2021, 6:06 AM
#2182
noppie avatar

noppie

Zen Follower

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

Re: MultiSite Module Support Thread

royaldave:

How is everyone going with this?

I am finally moving to 157c from 156c and hit a couple of snags.

1 - With the new version of cat_filter (as found in post 2148) - well basically it didn't work - ALL my categories were showing up. But by downgrading to the cat_filter from the previous version of the module it works fine.

2 - The files included in /zencart/includes/init_includes/overrides , should these actually be in /zencart/includes/init_includes ? (assume so)

Otherwise seems to work but admittedly not much time for testing so far.

i have been using this mod on and off for years.. i can help you but not understanding what you mean by cat_filter did not work.. you get the info in your admin under Tools>>multi-site copy that into your cat-filter. Make sure you name it >>> https://your_site.com_config.php.

this is one of mine
$template_dir = "kandi"; >>>>>>>>>your template name
define('SITE_NAME','kandi'); site name
define('HTTP_SERVER', 'https://thekandibazaar.com'); your site name
define('HTTPS_SERVER', 'https://thekandibazaar.com'); your site name
define('CATEGORIES_ROOT','0'); //root categories is 1 for this site
define('DIR_WS_CATALOG', '/'); >>>>>>>>>>>>>>>>>>>>> if you point your domain name to html/shop in your cpanel then don't change if this is not the main site. I use shop---some people use cart or some people have their store in the root directory.

define('DIR_WS_HTTPS_CATALOG', '/');
/**

any question i maybe able to help.

My Multi_Site Zen Carts
http://herasonlinemarket.com

18 Nov 2021, 9:11 AM
#2183
royaldave avatar

royaldave

Zen Follower

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

Re: MultiSite Module Support Thread

noppie:

i have been using this mod on and off for years.. i can help you but not understanding what you mean by cat_filter did not work.. you get the info in your admin under Tools>>multi-site copy that into your cat-filter. Make sure you name it >>> https://your_site.com_config.php.

this is one of mine
$template_dir = "kandi"; >>>>>>>>>your template name
define('SITE_NAME','kandi'); site name
define('HTTP_SERVER', 'https://thekandibazaar.com'); your site name
define('HTTPS_SERVER', 'https://thekandibazaar.com'); your site name
define('CATEGORIES_ROOT','0'); //root categories is 1 for this site
define('DIR_WS_CATALOG', '/'); >>>>>>>>>>>>>>>>>>>>> if you point your domain name to html/shop in your cpanel then don't change if this is not the main site. I use shop---some people use cart or some people have their store in the root directory.

define('DIR_WS_HTTPS_CATALOG', '/');
/**

any question i maybe able to help.

Sorry, one of the new files with this plugin is /zencart/includes/functions/extra_functions/cat_filter

The latest version of this file didn't work for me and I had to use the previous version.

18 Nov 2021, 8:22 PM
#2184
royaldave avatar

royaldave

Zen Follower

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

Re: MultiSite Module Support Thread

royaldave:

Sorry, one of the new files with this plugin is /zencart/includes/functions/extra_functions/cat_filter

The latest version of this file didn't work for me and I had to use the previous version.

Anyway I've fixed it.

Just removed this code -

// define('ALLOW_CAT_FILTER','no') will desactivate the category filter
if (!defined('ALLOW_CAT_FILTER') || (ALLOW_CAT_FILTER != 'no')) {
  return $sql;
}

This if statement not working the way intended - my filter was getting bypassed.

18 Nov 2021, 10:28 PM
#2185
royaldave avatar

royaldave

Zen Follower

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

Re: MultiSite Module Support Thread

Next problem.

Some of the admin settings are getting ignored.

For example I have 'Categories - Always Show on Main Page' set to 0, yet they are showing anyway. Another symptom is that my define_main_page.php does not display, however if I change this to '1' then it will display - however I still have the unwanted categories showing.

20 Nov 2021, 12:24 AM
#2186
royaldave avatar

royaldave

Zen Follower

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

Re: MultiSite Module Support Thread

royaldave:

Next problem.

Some of the admin settings are getting ignored.

For example I have 'Categories - Always Show on Main Page' set to 0, yet they are showing anyway. Another symptom is that my define_main_page.php does not display, however if I change this to '1' then it will display - however I still have the unwanted categories showing.

I've narrowed this down to the changes made to init_category_path.php. Another symptom is the display of New Products on the front page is switched off in the database, however it displays anyway.

Removing the changes made to this file fixes the problem.

20 Nov 2021, 12:45 AM
#2187
noppie avatar

noppie

Zen Follower

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

Re: MultiSite Module Support Thread

first how many stores do you have?????

i can probably help you..
but need to know how many stores you have.

My Multi_Site Zen Carts
http://herasonlinemarket.com

20 Nov 2021, 2:08 AM
#2188
royaldave avatar

royaldave

Zen Follower

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

Re: MultiSite Module Support Thread

noppie:

first how many stores do you have?????

i can probably help you..
but need to know how many stores you have.

Currently have 15 stores.

20 Nov 2021, 2:21 AM
#2189
noppie avatar

noppie

Zen Follower

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

Re: MultiSite Module Support Thread

royaldave:

Currently have 15 stores.

and a different config file for each correct.
the reason i ask is because

For example I have 'Categories - Always Show on Main Page' set to 0, yet they are showing anyway. Another symptom is that my define_main_page.php does not display, however if I change this to '1' then it will display - however I still have the unwanted categories showing.

so you have 15 different config files correct. 15 different templates correct!

changing in the admin will not work. except for like in the side box setting.. in the tools you see multi-site tool
has the configuration files in it. and what ever template you are working in that is the config file that is showing in the tools. what ever configuration you changed you have to change in you yoursitename.com_config.com

My Multi_Site Zen Carts
http://herasonlinemarket.com

20 Nov 2021, 2:38 AM
#2190
royaldave avatar

royaldave

Zen Follower

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

Re: MultiSite Module Support Thread

noppie:

and a different config file for each correct.
the reason i ask is because

so you have 15 different config files correct. 15 different templates correct!

changing in the admin will not work. except for like in the side box setting.. in the tools you see multi-site tool
has the configuration files in it. and what ever template you are working in that is the config file that is showing in the tools. what ever configuration you changed you have to change in you yoursitename.com_config.com

Hi, yes, 15 different config files and templatges.

I did try amending the config file but it didn't work.

That is, I added in -

define('SHOW_PRODUCT_INFO_MAIN_NEW_PRODUCTS','0');
define('SHOW_CATEGORIES_ALWAYS','0');

but it had no effect.

20 Nov 2021, 3:25 AM
#2191
noppie avatar

noppie

Zen Follower

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

Re: MultiSite Module Support Thread

royaldave:

Hi, yes, 15 different config files and templatges.

I did try amending the config file but it didn't work.

That is, I added in -

define('SHOW_PRODUCT_INFO_MAIN_NEW_PRODUCTS','0');
define('SHOW_CATEGORIES_ALWAYS','0');

but it had no effect.

on that will not work you have to change in the config file of what ever store you want.. cpane open your files.
your shop/included/config-sites
choose the config files for your store.
under /**

  • Layout Settings
    */

look toward the bottom of that group and look for this
define('CATEGORIES_TABS_STATUS','1'); //Categories-Tabs Menu ON/OFF

and you can turn it on or off ..
i hope that helpss

My Multi_Site Zen Carts
http://herasonlinemarket.com

20 Nov 2021, 4:37 AM
#2192
royaldave avatar

royaldave

Zen Follower

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

Re: MultiSite Module Support Thread

noppie:

on that will not work you have to change in the config file of what ever store you want.. cpane open your files.
your shop/included/config-sites
choose the config files for your store.
under /**

  • Layout Settings
    */

look toward the bottom of that group and look for this
define('CATEGORIES_TABS_STATUS','1'); //Categories-Tabs Menu ON/OFF

and you can turn it on or off ..
i hope that helpss

Hi

I've worked out where the problem is - just don't know what it is.

This if statement in main_template_vars -

  • if (isset($_GET['typefilter'])) $typefilter = $_GET['typefilter'];
    require(zen_get_index_filters_directory($typefilter . '_filter.php'));

////////////////////////////////////////////////////////////////////////////////////////////////////////////
$tpl_page_body = 'tpl_index_product_list.php';
////////////////////////////////////////////////////////////////////////////////////////////////////////////
} else {
////////////////////////////////////////////////////////////////////////////////////////////////////////////
$tpl_page_body = 'tpl_index_default.php';
////////////////////////////////////////////////////////////////////////////////////////////////////////////
}*

SHOULD be setting $tpl_page_body to 'tpl_index_default' HOWEVER it's coming out with 'tpl_index_product_list' instead.

This is the result of changes made to init_category_path. I have no idea why.

I can workaround the problem by hardcoding -

$tpl_page_body = 'tpl_index_default.php';

underneath the if statement and everything works the way I want. Except that of course it ruins the rest of the site.

I do not need to modify config_sites at all.

20 Nov 2021, 5:11 AM
#2193
noppie avatar

noppie

Zen Follower

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

Re: MultiSite Module Support Thread

royaldave:

Hi

I've worked out where the problem is - just don't know what it is.

This if statement in main_template_vars -

  • if (isset($_GET['typefilter'])) $typefilter = $_GET['typefilter'];
    require(zen_get_index_filters_directory($typefilter . '_filter.php'));

////////////////////////////////////////////////////////////////////////////////////////////////////////////
$tpl_page_body = 'tpl_index_product_list.php';
////////////////////////////////////////////////////////////////////////////////////////////////////////////
} else {
////////////////////////////////////////////////////////////////////////////////////////////////////////////
$tpl_page_body = 'tpl_index_default.php';
////////////////////////////////////////////////////////////////////////////////////////////////////////////
}*

SHOULD be setting $tpl_page_body to 'tpl_index_default' HOWEVER it's coming out with 'tpl_index_product_list' instead.

This is the result of changes made to init_category_path. I have no idea why.

I can workaround the problem by hardcoding -

$tpl_page_body = 'tpl_index_default.php';

underneath the if statement and everything works the way I want. Except that of course it ruins the rest of the site.

I do not need to modify config_sites at all.

i have been using this mullit site for a long time. I have 3 stores on it.
i used the responsive template that came with the cart.

i tried using different templates and there was so many changes I never got it working.. so i went back to basic.
i got it working on software guys the one on post 2148 rework and the latest zencart. and everything works as it should.
but it seems you got it going.

just remember this is zencart and it is free and not as easy to use as any of the paid carts are. it took me forever to get the facebook pixel working so i can upload my items to facebook then instagram. and i wanted to use one of the sub stores not the main one. and i got it working.. i am learning all the time.

My Multi_Site Zen Carts
http://herasonlinemarket.com

20 Nov 2021, 6:15 AM
#2194
royaldave avatar

royaldave

Zen Follower

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

Re: MultiSite Module Support Thread

noppie:

i have been using this mullit site for a long time. I have 3 stores on it.
i used the responsive template that came with the cart.

i tried using different templates and there was so many changes I never got it working.. so i went back to basic.
i got it working on software guys the one on post 2148 rework and the latest zencart. and everything works as it should.
but it seems you got it going.

just remember this is zencart and it is free and not as easy to use as any of the paid carts are. it took me forever to get the facebook pixel working so i can upload my items to facebook then instagram. and i wanted to use one of the sub stores not the main one. and i got it working.. i am learning all the time.

Well what I have actually done is taken out the 'required' changes to init_category_path - I don't know what they do - my site seems to work fine without it - and this results in everything working as it should.

Thanks for having a look!

29 Nov 2021, 6:52 AM
#2195
noppie avatar

noppie

Zen Follower

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

Re: MultiSite Module Support Thread

i am so glad things are working out.. every store seem to have its own personality

My Multi_Site Zen Carts
http://herasonlinemarket.com

21 Feb 2022, 4:23 PM
#2196
mralikorn avatar

mralikorn

New Zenner

Join Date:
Sep 2010
Posts:
13
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Ok so i Been trying to get this to work for awhile now. as long as i go directly to domain 1 where the site is, all works fine. But i cannot for the life of me get domain 2 to trigger its theme or products. The problem is i dont know how to get domain 2 to point at the site in domain 1 without using a redirect of some kind. with the redirects it goes to the site but does not trigger the associated configuration. Im sure it is something simple. Please help

21 Mar 2022, 6:12 AM
#2197
royaldave avatar

royaldave

Zen Follower

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

Re: MultiSite Module Support Thread

MrAliKorn:

Ok so i Been trying to get this to work for awhile now. as long as i go directly to domain 1 where the site is, all works fine. But i cannot for the life of me get domain 2 to trigger its theme or products. The problem is i dont know how to get domain 2 to point at the site in domain 1 without using a redirect of some kind. with the redirects it goes to the site but does not trigger the associated configuration. Im sure it is something simple. Please help

Did you get this working?

If not, and this might sound silly, are both domain names hosted at the same place? How are you redirecting?

23 Mar 2022, 3:23 AM
#2198
mralikorn avatar

mralikorn

New Zenner

Join Date:
Sep 2010
Posts:
13
Plugin Contributions:
0

Re: MultiSite Module Support Thread

yes. I had to set up Domain alias on my server to point the domains at the site.

12 May 2022, 2:50 AM
#2199
nicksab avatar

nicksab

Totally Zenned

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

Re: MultiSite Module Support Thread

Hello,

I have installed this plugin andconfigured as per the instructions. However, I have this thread over and over but i still really confuse on how to setup the server with cPanel.

i have 3 domains ( not subdomains) that are hosted on the same server. It is not a dedicated server so I am not sure if i can enable the DNs wildcard.

Here is what I have so far:

domain 1 ( main domain ) inside the public_html folder which contains the zen cart installation.
domain 2 and 3 are empty folders at the same level of public_html.

All 3 domains point to the same IP.

Domain 1 works but domain 2/3 do not. When they are access, nothing is displayed.

I am probably missing some basic steps but i am completely confused about it.

What am I missing? Can someone help me and/or direct me on how to set it up?

Thank you very much

12 May 2022, 7:15 AM
#2200
noppie avatar

noppie

Zen Follower

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

Re: MultiSite Module Support Thread

Ok I can help you tomorrow,. I am on my phone and I need my computer. I know exactly what is going on. I have been using this for years.

> **nicksab:**

Hello,

I have installed this plugin andconfigured as per the instructions. However, I have this thread over and over but i still really confuse on how to setup the server with cPanel.

i have 3 domains ( not subdomains) that are hosted on the same server. It is not a dedicated server so I am not sure if i can enable the DNs wildcard.

Here is what I have so far:

domain 1 ( main domain ) inside the public_html folder which contains the zen cart installation.
domain 2 and 3 are empty folders at the same level of public_html.

All 3 domains point to the same IP.

Domain 1 works but domain 2/3 do not. When they are access, nothing is displayed.

I am probably missing some basic steps but i am completely confused about it.

What am I missing? Can someone help me and/or direct me on how to set it up?

Thank you very much

My Multi_Site Zen Carts
http://herasonlinemarket.com