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

MultiSite Module Support Thread

Views: 580,151

Results 1,281 to 1,300 of 2,247
24 May 2010, 20:29
#1281
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,768
Plugin Contributions:
20

MultiSite Module Support Thread

@Ray303: You can control almost all zencart features, but you'll have to do it manually. You'll have to edit the appropriate _config files in your includes/config_sites folder.
In other words, if you want your site1 NOT use storepickup module you'll have to edit your shop1.com_config.php and add the following line:```
define('MODULE_SHIPPING_STOREPICKUP_STATUS','false'); //Enable Store Pickup Shipping

By adding that line, your shop1 will not use storepickup module. You can do that for almost any other module/feature you have installed, you'll just have to use the appropriate command...
Note that you're NOT changing any template files whatsoever. ALL modules/features are controlled from the _config.php file! Have fun!
24 May 2010, 21:33
#1282
ray303 avatar

ray303

New Zenner

Join Date:
May 2010
Posts:
8
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Thank you balihr! I will familiarize myself with the settings and flags in the _config file. Since I am mainly focused on the payment module customization for each store, I wanted to confirm that placing the payment module php files in /includes/languages/english/modules/payment/mytemplate effectively tells the multi-store module which payment module to use. Ex: if one store is using Authorize.net and another store is using First Data. Am I on the right track?

Thanks again,
Ray

24 May 2010, 21:39
#1283
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,768
Plugin Contributions:
20

Re: MultiSite Module Support Thread

Actually, no. Payment modules, just like all other modules, are NOT located in your languages directory! If you work with files in the language directory, you only affect language files. But the module files are still available to zencart in includes/modules directory... And that directory doesn't care about templates... :smile:

24 May 2010, 23:13
#1284
ray303 avatar

ray303

New Zenner

Join Date:
May 2010
Posts:
8
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Thanks again balihr! If everything runs through one payment module, his would seem to contradict the statement, "You can use different payment module for each site" that Gerome and one or two others have said in this thread. (ex: post#169) I guess I was thinking that the template override applies the unique payment module settings for each store. The setup instrucitons also reference the

I think I am just not clear on how the multi-store module supports this feature. Does the _config.php file actually let you enter settings like the merchant ID and gateway information? I did see settings related to which payment modules are activated, but not the more detailed settings related to the merchant account.

Sorry I am a little slow on this one! If the multi-store module is used for several independent businesses, it would make sense that each would have separate payment module settings and you would want people to see the correct store name on their credit card statements.

Thanks so much for your insight on this!

25 May 2010, 09:28
#1285
louis avatar

louis

Zen Follower

Join Date:
Jul 2006
Location:
Johannesburg
Posts:
408
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Ray303,

Let's see if I can make any sense of this. This module allows you to run various front-ends whilst controlling everything from one backoffice. To enable you to have different futures for different sites the module introduced the "site-config" files. ANYTHING contained within Zen-Cart can be controlled using the appropriate config file.

Step 1. Setup all the payment gateways (and everything else you require on your sites) using the main site backoffice.

Step 2. Now setup each config file with the parameters of the functions you DO NOT want to have active for that site. NOTE: All functions installed will be active across all the front-ends unless you specifically switch them off. The example Balihr gave in his previous post DISABLES the store pickup option for the site into which config file you added this line.

define('MODULE_SHIPPING_STOREPICKUP_STATUS','false'); //Enable Store Pickup Shipping

There is a mod available that will show you all the variables used by zencart. Let me scratch around and I will post the details here.

25 May 2010, 16:57
#1286
ray303 avatar

ray303

New Zenner

Join Date:
May 2010
Posts:
8
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Thanks Louis! Your comments made me realize that I have to complete the install process of each payment module before the specific defines will show up on the list that you can pull up using Tools> Multisite Tools > Display Configuration I should have realized that right off the bat, but I am still a bit clueless on the inner workings of Zen Cart.

I installed Authorize.net as a test and the defines magically :wink: appeared on the list. These do look like the specifics for each unique merchant account such as MODULE_PAYMENT_AUTHORIZENET_LOGIN, MODULE_PAYMENT_AUTHORIZENET_TXNKEY, and so on. I think I have everything I need now.

I will try setting these in the _config.php files for each store and see how it goes! Exciting stuff! I think it will work! Thanks again to balihr as well! I will post again to confirm if it worked or if there are additional caveats.

28 May 2010, 17:35
#1287
fergusmacdonald avatar

fergusmacdonald

Zen Follower

Join Date:
Oct 2007
Location:
Edinburgh, Scotland
Posts:
243
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Hi there,

I have a slightly modified version of this mod installed in my store and am wondering if anyone has some information on its compatibility with 1.3.9c before I attempt an upgrade.

Any help much appreciated.

28 May 2010, 22:16
#1288
rennevat avatar

rennevat

New Zenner

Join Date:
Apr 2010
Posts:
6
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Has anyone integrated this module with the Hide Categories module. I have 1.3.9b installed and functioning properly with Hide Categories. I am able to successfully see the login page and correct templates for each subdomain after installing Multisite. However, I am unable to log in or view any categories, even those that are not hidden. I'll start over from scratch but wanted to see if anyone else has also encountered this. Thanks.

31 May 2010, 12:59
#1289
jvoce avatar

jvoce

New Zenner

Join Date:
Jul 2006
Location:
Toronto, ON
Posts:
87
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I have both the Multi-Site module and the Hide Categories module working together perfectly on our website. It's been a few years since I set the site up, and I don't remember any difficulty at all.

I am in the process of upgrading our site to 1.3.9c and it seems to be working well for me so far.

31 May 2010, 17:18
#1290
jvoce avatar

jvoce

New Zenner

Join Date:
Jul 2006
Location:
Toronto, ON
Posts:
87
Plugin Contributions:
0

Re: MultiSite Module Support Thread

My apologies. I am not using the Hide Categories with the Multi-Site module. Originally I was trying to use it, but I believe I left it out because I was able to the use the Multi-Site module to do what was required.

With this mod you are able to define certain categories with certain sites. If you want one category to only display on one site then you only associate it with that site through the Admin > Tools > Multi-Site Tools > Display the relations Categories/Sites. By default I would assume that if you do not associate a category with any site then that category and the products within that category will not display.

01 Jun 2010, 14:29
#1291
karimm avatar

karimm

New Zenner

Join Date:
Nov 2008
Posts:
53
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I was wondering, does anyone has multisite setup with the "SitemapXMLv2 module". can't find any thing about that.
I would like to use a xml sitemap for my google webmaster tools.

Can you point me in de right direction ?

Regards,

02 Jun 2010, 17:55
#1292
thewhiz01 avatar

thewhiz01

New Zenner

Join Date:
May 2010
Posts:
9
Plugin Contributions:
0

Re: MultiSite Module Support Thread

hi.. i have two sites https://www.site1.com and https://www.site2.com... i have installed zen cart at site1.com and installed the multisite module too... i can see the link for site2.com on the main site(https://www.site1.com), but when i click on it, it gives me nothing but the directory structure of site2.com. Plase tell me where i am going wrong.

02 Jun 2010, 19:14
#1293
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,768
Plugin Contributions:
20

Re: MultiSite Module Support Thread

thewhiz01:

hi.. i have two sites https://www.site1.com and https://www.site2.com... i have installed zen cart at site1.com and installed the multisite module too... i can see the link for site2.com on the main site(https://www.site1.com), but when i click on it, it gives me nothing but the directory structure of site2.com. Plase tell me where i am going wrong.

And what is the directory structure of your site2 ?

You should make your site2 point to your site1 (not a redirect) so basically your site2 doesn't even have any directory structure... Your site2 is actually just a domain, nothing else. All files are located in site1.

03 Jun 2010, 02:16
#1294
rennevat avatar

rennevat

New Zenner

Join Date:
Apr 2010
Posts:
6
Plugin Contributions:
0

Re: MultiSite Module Support Thread

jvoce:

My apologies. I am not using the Hide Categories with the Multi-Site module. Originally I was trying to use it, but I believe I left it out because I was able to the use the Multi-Site module to do what was required.

With this mod you are able to define certain categories with certain sites. If you want one category to only display on one site then you only associate it with that site through the Admin > Tools > Multi-Site Tools > Display the relations Categories/Sites. By default I would assume that if you do not associate a category with any site then that category and the products within that category will not display.

Thank you. Each of the sites will have custom products within a hidden category to which only select customers will be provided with link access. I believe the problem I'm encountering lies within the modules/sideboxes/classic files. None of the sites are displaying sideboxes. The error message I am receiving is ```
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 4
in:
[select visibility_status FROM hide_categories WHERE categories_id = LIMIT 1]


The variable for the categories id for the Hide Categories module appears to be missing from the categories sidebox.  It may have something to do with the cat_filter function of Multisite?
03 Jun 2010, 22:49
#1295
rennevat avatar

rennevat

New Zenner

Join Date:
Apr 2010
Posts:
6
Plugin Contributions:
0

Re: MultiSite Module Support Thread

rennevat:

The variable for the categories id for the Hide Categories module appears to be missing from the categories sidebox. It may have something to do with the cat_filter function of Multisite?

I gave up on Hide Categories module, reinstalled zen cart (now using 1.3.9d), installed Multisites, and duplicated the custom template folders. Then enabled each template through admin and assigned sideboxes in layout. One subdomain functions perfectly after login, the second keeps redirecting/looping back to the login page (no error messages). I ran a comparison of the custom folders (languages, modules, templates) through Winmerge and it stated they were identical. I'm hoping someone might have a suggestion as to why one domain won't allow login? Thanks!

04 Jun 2010, 16:57
#1296
rennevat avatar

rennevat

New Zenner

Join Date:
Apr 2010
Posts:
6
Plugin Contributions:
0

Re: MultiSite Module Support Thread

rennevat:

One subdomain functions perfectly after login, the second keeps redirecting/looping back to the login page (no error messages). I ran a comparison of the custom folders (languages, modules, templates) through Winmerge and it stated they were identical. I'm hoping someone might have a suggestion as to why one domain won't allow login? Thanks!

Update...during the course of multiple login attempts on the second subdomain, occasionally I received "There was a security error when trying to login." Found this link https://www.zen-cart.com/tutorials/index.php?article=312 but it did not apply as I have 1.3.9d installed.

However, when I attempted to login to the second subdomain using a different browser I was successful.

07 Jun 2010, 17:26
#1297
itsjef avatar

itsjef

New Zenner

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

Re: MultiSite Module Support Thread

I have 2 sites working together with multisite, but they does not share product images. Is there any good solutions to that problem. This has to be an automatic solution which update every time a new picture is uploaded!
Any good ones?

07 Jun 2010, 18:40
#1298
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,768
Plugin Contributions:
20

Re: MultiSite Module Support Thread

If you installed this module correctly, then you should have product images on both/all sites where you assigned a category to show. So, if your cat1 is set to show on bith site1 and site2, all products, images, attributes etc that have something to do with cat1 will show.
Perhaps you've missed something in the installation. Recheck your multisite module installation, it's gotta be something wrong...

08 Jun 2010, 20:04
#1299
danielle avatar

danielle

Totally Zenned

Join Date:
Oct 2004
Posts:
973
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Is this mod compatible with Fast and Easy Checkout?

Do you use the same payment accounts for both sites, e.g. the same Paypal account, same Authorize.net account, etc.? Or do you need to set up separate accounts for each site?

Thanks!

08 Jun 2010, 20:06
#1300
danielle avatar

danielle

Totally Zenned

Join Date:
Oct 2004
Posts:
973
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Also, I assume each site needs it own SSL if they are on different domains?