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

Results 1,941 to 1,960 of 2,247
21 Mar 2015, 2:25 PM
#1941
delia avatar

delia

Totally Zenned

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

MultiSite Module Support Thread

Well, back to square one.

I have found that with 1.5.4, if you turn on authorize customer, multisite seems to just quit working. There is a bug in 1.5.4 that requires a small code change which is in place. So I guess it is related to this bug.

At first the site that required the login to browse just thru a session error.

[21-Mar-2015 08:21:39 America/New_York] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/user/public_html/includes/config_sites/www.domain.com_config.php:5) in /home/user/public_html/includes/functions/sessions.php on line 115

After I changed that to browse with no prices, I thought I had avoided the problem. But found out that though you can get to the login, you can't login without an error or logout without an error.

So I decided to start with the database from the other site. The one that doesn't have customer authorization turned on. If I put this in the config site file:

define('CUSTOMERS_APPROVAL_AUTHORIZATION','1');

I get the same results. It just will not work with customer authorization turned on in any fashion.

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

21 Mar 2015, 2:40 PM
#1942
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:

Well, back to square one.

I have found that with 1.5.4, if you turn on authorize customer, multisite seems to just quit working. There is a bug in 1.5.4 that requires a small code change which is in place. So I guess it is related to this bug.

At first the site that required the login to browse just thru a session error.

[21-Mar-2015 08:21:39 America/New_York] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/user/public_html/includes/config_sites/www.domain.com_config.php:5) in /home/user/public_html/includes/functions/sessions.php on line 115

After I changed that to browse with no prices, I thought I had avoided the problem. But found out that though you can get to the login, you can't login without an error or logout without an error.

So I decided to start with the database from the other site. The one that doesn't have customer authorization turned on. If I put this in the config site file:

define('CUSTOMERS_APPROVAL_AUTHORIZATION','1');

I get the same results. It just will not work with customer authorization turned on in any fashion.

Ok, I will take a look and try to reproduce the symptoms. Just checking, but you did aply the bug fix there is for 1.5.4 and customer authorization? Not sure is that is the problem, but just trying to find the source.

21 Mar 2015, 2:49 PM
#1943
delia avatar

delia

Totally Zenned

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

Re: MultiSite Module Support Thread

yeah, I did and I'm about to pull out that fix to see if that fixes the multisite problem. If it does I'm going to be asking about that fix. It may be that's really a temp fix, not a full fix.

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

21 Mar 2015, 2:56 PM
#1944
delia avatar

delia

Totally Zenned

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

Re: MultiSite Module Support Thread

it's not that bug. There must some changes to session handling in 1.5.4 that creates this problem - and led to the bug in the first place. I'm going to see if I can find out more about that from those who know.....

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

21 Mar 2015, 11:24 PM
#1945
delia avatar

delia

Totally Zenned

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

Re: MultiSite Module Support Thread

I also tried this against a default 1.5.4 database with no change. The files are default 1.5.4 as well. I bypassed the template and this happens on the default-template as well. So pretty much took all the possible site specific files out of the equation. Didn't you say you had tried turning on the customer authorization and it worked in your demo site with 1.5.4?

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

22 Mar 2015, 8:31 AM
#1946
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:

Didn't you say you had tried turning on the customer authorization and it worked in your demo site with 1.5.4?
Yes i did. I used the settings you specified a few posts back and all seemed to work. I know for sure I tested on the main domain, but can not remember I also tested on the extra domains. Will test that again , and let you know.

22 Mar 2015, 1:35 PM
#1947
delia avatar

delia

Totally Zenned

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

Re: MultiSite Module Support Thread

finally - there was a space after the ending tag in the config file. It only gave a problem when trying to log in which I think is weird but the problem is now solved!!

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

22 Mar 2015, 1:42 PM
#1948
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:

finally - there was a space after the ending tag in the config file. It only gave a problem when trying to log in which I think is weird but the problem is now solved!!

:clap::clap::jump::jump:

13 Apr 2015, 5:33 PM
#1949
delia avatar

delia

Totally Zenned

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

Re: MultiSite Module Support Thread

In admin - I see the code in orders.php to distinguish the sites for orders. It's preparing a pull down list but I don't see the code to actually display the pull down list any where - I definitely see no way in admin to distinguish the different orders. I'm assuming there is supposed to be a way to switch between the sites orders.

In the database, that column in the orders table at the moment only has no in that order_site field. I don't see any code to gather the site name and display in all the files.

can you confirm that the code for the orders display is still working?

I also want to extend this to distinguish between customers not just orders. Preferably by just an added field in the customers list (and prefer to see the orders list this way as well). My client wants to look at the list and see at a glance what's up. But I need to be sure the code that is there now is working before I start making code changes.

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

13 Apr 2015, 6:58 PM
#1950
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:

In admin - I see the code in orders.php to distinguish the sites for orders. It's preparing a pull down list but I don't see the code to actually display the pull down list any where - I definitely see no way in admin to distinguish the different orders. I'm assuming there is supposed to be a way to switch between the sites orders.

In the database, that column in the orders table at the moment only has no in that order_site field. I don't see any code to gather the site name and display in all the files.

can you confirm that the code for the orders display is still working?

I also want to extend this to distinguish between customers not just orders. Preferably by just an added field in the customers list (and prefer to see the orders list this way as well). My client wants to look at the list and see at a glance what's up. But I need to be sure the code that is there now is working before I start making code changes.

I hate to disappoint you, but that piece of drop down code is the only thing that ever made it. It was placed in the code way before my time, and i never had the time to do anything with it.
So if you want to use the dropdown you will have to write your own code, as I do not have plans to update tis module in the near future..

15 Apr 2015, 6:41 AM
#1951
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: MultiSite Module Support Thread

delia:

finally - there was a space after the ending tag in the config file. It only gave a problem when trying to log in which I think is weird but the problem is now solved!!

I remember using this bit of php - found_extra_space.php from Andrew Berezin - to find extra spaces some time ago. Although it's after the fact I found it useful to debug a problem I was having.

Attachment #15177 - it'll need renaming from .pdf to .php to work

Simon

15 Apr 2015, 11:34 AM
#1952
delia avatar

delia

Totally Zenned

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

Re: MultiSite Module Support Thread

a handy piece of scripting! Thanks!

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

4 May 2015, 10:26 AM
#1953
raunharman avatar

raunharman

Zen Follower

Join Date:
Dec 2005
Posts:
165
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Where can I find the patch to use Multi site module for Zen cart 1.5.4

http://www.raunharman.com
http://www.raunharman.net
Website Development, E-Book Solutions & Handicraft Exports

4 May 2015, 10:47 AM
#1954
design75 avatar

design75

Totally Zenned

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

Re: MultiSite Module Support Thread

raunharman:

Where can I find the patch to use Multi site module for Zen cart 1.5.4

There is no version specific for zc 1.5.4, but you can use the latest available. Although I have not tested it on 1.5.4, I believe it works fine.

20 May 2015, 9:12 PM
#1955
twi avatar

twi

Zen Follower

Join Date:
Aug 2007
Posts:
277
Plugin Contributions:
0

Re: MultiSite Module Support Thread

zc1.5.1
multisite v1.1

Hi design75 ,

do you know how to create multiple xml site maps for each url site hosted using the multisite module?
currently I have one xml site map pointing to only the main site. How do I create or where do I put the site maps for the other url's?

Any help is greatly appreciated.

20 May 2015, 9:31 PM
#1956
design75 avatar

design75

Totally Zenned

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

Re: MultiSite Module Support Thread

In the config file for the second site, add;

define('SITEMAPXML_SITEMAPINDEX', 'sitemap_store2');
define('SITEMAPXML_DIR_WS', 'sitemap_store2');

this will tell the module to create a new file, sitemap_store2.xml and use folder sitemap_store2 (create this manually through ftp).
Next create a new file in the root of your site called robots.php and add the next lines

<?php
header('Content-Type:text/plain');

echo 'Sitemap: http://' . $_SERVER['HTTP_HOST'] . '/' . SITEMAPXML_SITEMAPINDEX . '.xml' . "\r\n";

echo 'User-agent: *' . "\r\n";
echo 'Disallow: /cgi-bin/' . "\r\n";

and may be other lines from your robots.txt file.

Next create if there is no .htacces file in your root or else edit.
search for RewriteEngine On . If it is not there add it.
after thet add : RewriteRule ^robots.txt$ /robots.php [NC,L]

Next remove robots.txt from the root of the site. Now you have a dynamically created robots.txt that can adapt to any circumstance you want.

3 Jun 2015, 5:40 PM
#1957
cpt_tom avatar

cpt_tom

New Zenner

Join Date:
Aug 2012
Location:
Corning, NY
Posts:
8
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I have successfully installed MultiSite with Zen-Cart 1.5.1 and have all my stores working and customized successfully since the beginning of the year. Most of our orders up until now have not used the packing or invoice from Zen-cart as we processed the orders through another site and used their packing slip. Well now I need to get the invoice and packing slips to work and by that I mean different addresses and logos on each store's packing slips and invoices. I have tried searching the support thread for information on how to do this, and I have not yet located how to do this customizations except for vague references like "I figured out how to do that" but with out any specifics.

Since this seems like something most stores would have to do, Is there a link to where this is documented how to do this, or is there a code example that I just haven't found yet?

Sorry if this has been answered before, but I can't seem to find it and I'm coming up against a deadline...I'm sure it's there I'm just not finding it. :frusty:

Thanks for any help in advance,

--Tom

3 Jun 2015, 6:43 PM
#1958
design75 avatar

design75

Totally Zenned

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

Re: MultiSite Module Support Thread

Cpt Tom:

I have successfully installed MultiSite with Zen-Cart 1.5.1 and have all my stores working and customized successfully since the beginning of the year. Most of our orders up until now have not used the packing or invoice from Zen-cart as we processed the orders through another site and used their packing slip. Well now I need to get the invoice and packing slips to work and by that I mean different addresses and logos on each store's packing slips and invoices. I have tried searching the support thread for information on how to do this, and I have not yet located how to do this customizations except for vague references like "I figured out how to do that" but with out any specifics.

Since this seems like something most stores would have to do, Is there a link to where this is documented how to do this, or is there a code example that I just haven't found yet?

Sorry if this has been answered before, but I can't seem to find it and I'm coming up against a deadline...I'm sure it's there I'm just not finding it. :frusty:

Thanks for any help in advance,

--Tom

That feature never made it to the last release of this module. There may be some who made it to work but failed to help other by sharing the code. I am lacking the time right now to take a look in to this.

3 Jun 2015, 9:32 PM
#1959
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: MultiSite Module Support Thread

Design75:

That feature never made it to the last release of this module. There may be some who made it to work but failed to help other by sharing the code. I am lacking the time right now to take a look in to this.
I haven't coded this up, but just wanted to mention that the "order_site" field that's present in each order's database record captures the SITE_NAME that you've configured in the sites_switch.php module. That said, you can customize the logo and address based on the value present in that field.

3 Jun 2015, 9:58 PM
#1960
design75 avatar

design75

Totally Zenned

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

Re: MultiSite Module Support Thread

lat9:

I haven't coded this up, but just wanted to mention that the "order_site" field that's present in each order's database record captures the SITE_NAME that you've configured in the sites_switch.php module. That said, you can customize the logo and address based on the value present in that field.

True, and it is not that difficult, it just takes some time