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 81 to 100 of 2,247
20 May 2007, 6:48 PM
#81
rikreations avatar

rikreations

New Zenner

Join Date:
Oct 2005
Location:
Vila Nova de Gaia, Portugal
Posts:
14
Plugin Contributions:
0

MultiSite Module Support Thread

I just found out that when you remove <!--site1-site2-site3--> from the description in one of the languages, it decreases the number of repetitions.

For example, i'm browsing the store in the english language and i have the product "Call of Duty 3 (PS3)" in the category "All PlayStation 3 Games" repeated 12 times when i do a product listing. If i go to admin and remove <!--site1-site2-site3--> in the portuguese language of the category "All PlayStation 3 Games", the product is only repeated 11 times.

I hope i'm getting understood...

21 May 2007, 1:30 AM
#82
rikreations avatar

rikreations

New Zenner

Join Date:
Oct 2005
Location:
Vila Nova de Gaia, Portugal
Posts:
14
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I had to remove all cat_filter from the php because it was afecting the entire site. If you click on the link i gave before it will show everything normal but i still haven't figure out the problem.

Regards

21 May 2007, 8:37 AM
#83
gerome avatar

gerome

Zen Follower

Join Date:
Sep 2006
Posts:
100
Plugin Contributions:
0

Re: MultiSite Module Support Thread

streetglow:

I've fixed it myself, not that hard, just some experiments and it all works fine to me.
Except for 1 thing, EZPages...
What about them? If I have an EZPage for site1, then I got the EZPage also for site 2...

I personnally don't use the EZPages, instead of that, there is a way to add html pages to the template by only adding two files to zen-cart. for exemple, this is what I've done with this page:
http://navnav.co.uk/in-car-navigation.html

If you really prefere using EZ-Page, It could be possible to implement a "filter which would be similar to the cat_filter function. However, I might not work on it before couple of weeks as I have other stuf on the fire...

rikreations:

Hi,

I'm having a problem with my multistore.
My product listing is showing each item 12 times. When i remove cat_filter from product_listing.php it works fine.
I'm using 12 languages in my site so i guess the problem was related to bad filtering of the languages, but it's not. The item is shown 12 times in the same language. I suppose it has something to do with the languages but i really can't figure it out.

You can see it by clicking here

Any help or sugestions will be extremelly apreciated.
Thanks in advance.

I never used multi language with Zen-cart, as here in the uk, we assume that anybody should understand English :)
I am preetty impressed to see that you translated your site in 12 languages. This bug is due to a lack of testing with multi language of Multisite.

The problem is that the table categories_description which is use for filtering the products contain one line of each categories per language. I think that, in order to fix it, it is required to use a different way of filtering the categories/products. I thought of making a specific new table for this purpose. With this new talb,e it would be also possible to do a new admin page that would be dedicated to choosing the categories for each sites.

I made the whole category filtering centralised into one function. It means that I would only have to change this function in order to change the filter type.

That could be done in the next version of the Multisite, hopefully !

23 May 2007, 1:42 PM
#84
streetglow avatar

streetglow

New Zenner

Join Date:
Aug 2006
Posts:
38
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Hi, thanks for your reply.

I've already written something that filters out the ez-pages.
You can turn them off/on for each site.
I'll post my version as soon as possible.
As for that filtering problem:
Just create a new category for each language. (althought that would be many for you...)
And only use category filtering.

That's my suggestion,

Greetings,

~Streetglow.

24 May 2007, 5:18 AM
#85
rikreations avatar

rikreations

New Zenner

Join Date:
Oct 2005
Location:
Vila Nova de Gaia, Portugal
Posts:
14
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Thank's for the sugestions guys.
I think that i will give up on the cat_filter for now, i still have many issues to fix.

If anybody wants to use the mod "Simple Google Analytics" you just have to add:

define('GOOGLE_ANALYTICS_UACCT','UA-XXXXXXX-X')

in your "yourdomain_config.php" file.
You don't need to modify any files.

On the other hand, if you want to use the mod "Google Sitemaps" with multisite you will have to modify a file or two. If's there's any interest in this i can post the necessary modifications.

Regards and thanks again.

24 May 2007, 1:17 PM
#86
gerome avatar

gerome

Zen Follower

Join Date:
Sep 2006
Posts:
100
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Thanks for both of you for helping the development of this module !

I really appreciate this.

25 May 2007, 5:14 AM
#87
xzc avatar

xzc

New Zenner

Join Date:
Apr 2007
Posts:
14
Plugin Contributions:
0

Re: MultiSite Module Support Thread

rikreations:

Thank's for the sugestions guys.
I think that i will give up on the cat_filter for now, i still have many issues to fix.

If anybody wants to use the mod "Simple Google Analytics" you just have to add:

define('GOOGLE_ANALYTICS_UACCT','UA-XXXXXXX-X')

in your "yourdomain_config.php" file.
You don't need to modify any files.

On the other hand, if you want to use the mod "Google Sitemaps" with multisite you will have to modify a file or two. If's there's any interest in this i can post the necessary modifications.

Regards and thanks again.

"Google Sitemaps" can know where is user is from? right?

31 May 2007, 12:29 PM
#88
esugrue avatar

esugrue

Zen Follower

Join Date:
Jun 2004
Posts:
182
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Hi!

Is it possible using this contribution to:

  1. Share customers between sites (ie: members of one store can sign into the other store etc)

  2. Have a minimum order threshold on Store 1 but no minimum on Store 2

  3. Offer FREE Shipping on Store 1 and Flat Rate Shipping on Store 2


I would like customer to shop their first order at Store 1 and then subsequent orders on Store 2 (because there's a tricky shipping/minimum order combo that a single store can't handle). So we may separate stores!

Thanks
Ernie

31 May 2007, 6:12 PM
#89
rikreations avatar

rikreations

New Zenner

Join Date:
Oct 2005
Location:
Vila Nova de Gaia, Portugal
Posts:
14
Plugin Contributions:
0

Re: MultiSite Module Support Thread

xzc, what you want is Google Analytics.
Google Sitemaps is a tool to help Google index your pages.
Search for the mod in the downloads.

Gerome, you've done a fantastic job putting this mod together. Thank's for the great work.

I've found an error when using the automatic update currency mod and as soon as i take a look at it i will post it here.

Best regards

3 Jun 2007, 9:14 PM
#90
a_1_electronics avatar

a_1_electronics

Inactive

Join Date:
Apr 2007
Posts:
117
Plugin Contributions:
0

Re: MultiSite Module Support Thread

My version of Zen has already been modified several different times. Can someone assist me with the files that need modifications? The instructions are for a clean version of Zen. The zip file contains ADD_FILES (easy enough) and MODIFY_FILES (not as easy). Are there instructions for the files that need to be modified?

6 Jun 2007, 8:54 AM
#91
gerome avatar

gerome

Zen Follower

Join Date:
Sep 2006
Posts:
100
Plugin Contributions:
0

Re: MultiSite Module Support Thread

A-1 Electronics:

My version of Zen has already been modified several different times. Can someone assist me with the files that need modifications? The instructions are for a clean version of Zen. The zip file contains ADD_FILES (easy enough) and MODIFY_FILES (not as easy). Are there instructions for the files that need to be modified?
Hi,

Not yet but this is something that should be done in a short period of time.

For now, I advice you to use WinMerge in order to compare your Zencart folder with the MODIFY_FILES folder and then you will see what to modify in each files.

6 Jun 2007, 9:05 AM
#92
gerome avatar

gerome

Zen Follower

Join Date:
Sep 2006
Posts:
100
Plugin Contributions:
0

Re: MultiSite Module Support Thread

esugrue:

Hi!

Is it possible using this contribution to:

  1. Share customers between sites (ie: members of one store can sign into the other store etc)

  2. Have a minimum order threshold on Store 1 but no minimum on Store 2

  3. Offer FREE Shipping on Store 1 and Flat Rate Shipping on Store 2


I would like customer to shop their first order at Store 1 and then subsequent orders on Store 2 (because there's a tricky shipping/minimum order combo that a single store can't handle). So we may separate stores!

Thanks
Ernie

  1. Yes, the customers' table is the same for all the shops, it means that any account is the smae between the two. However, the basket is also shared, it means that you can actually buy products from the two shops in the same order. It can be quite handy for some shops but maybe not for others.

  2. Here again, it is technically possible, but it would make some problems with the common cart. Somebody could add to cart on one shop and then pay on a different shop. I guess that this could be solved by changing the table of the session to a different one so the cart of customers won't be common between shops, but this is something I have never tried yet, so it is not guarantee to work. Appart from that, it is technically possible to have different payment module for the different shop.
    A good solution of this problem would be to have different shipping in function of the categories of the products. In this way, the shipping would be equitable no matter on which shop it has been payed.

  3. sams for that, it could be done by checking that alll the products of a cart are from the "free shipping categories". Then you can facturate free shipping for the cart... The problem would come when you say that the same products would be either free shipping and charged for shipping on two different sites. I is possible but look a bit strange to me...

6 Jun 2007, 9:08 AM
#93
gerome avatar

gerome

Zen Follower

Join Date:
Sep 2006
Posts:
100
Plugin Contributions:
0

Re: MultiSite Module Support Thread

rikreations:

xzc, what you want is Google Analytics.
Google Sitemaps is a tool to help Google index your pages.
Search for the mod in the downloads.

Gerome, you've done a fantastic job putting this mod together. Thank's for the great work.

I've found an error when using the automatic update currency mod and as soon as i take a look at it i will post it here.

Best regards
This is why this module is still a "Beta". It still need to be tested for compatibility with other modules.

In fact, I have never used the "automatic update currency".

Let us know if you can give more details about how this bug...

Thanks.

12 Jun 2007, 3:34 AM
#94
marknew avatar

marknew

Zen Follower

Join Date:
Oct 2005
Posts:
274
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Hi, this looks like a great mod, just what i need. I have set the multi sites up on two subdomains and the tamplate side of things works but only one site is filtering the categories. The other shows all active catogories. any ideas anyone?

I have added <!--agents.newmediastudio-retail.newmediastudio--> to Action category description only.

This one works OK
http://www.agents.newmediastudio.com.au/

This one should only show "action' catogory, but it shows both available categories.

http://www.retail.newmediastudio.com.au/

12 Jun 2007, 12:44 PM
#95
gerome avatar

gerome

Zen Follower

Join Date:
Sep 2006
Posts:
100
Plugin Contributions:
0

Re: MultiSite Module Support Thread

marknew:

Hi, this looks like a great mod, just what i need. I have set the multi sites up on two subdomains and the tamplate side of things works but only one site is filtering the categories. The other shows all active catogories. any ideas anyone?

I have added <!--agents.newmediastudio-retail.newmediastudio--> to Action category description only.

This one works OK
http://www.agents.newmediastudio.com.au/

This one should only show "action' catogory, but it shows both available categories.

http://www.retail.newmediastudio.com.au/

are you sure that you have
define('SITE_NAME','agents.newmediastudio');
in the config of one, and
define('SITE_NAME','retail.newmediastudio');
in the config of the other ?

18 Jun 2007, 9:10 PM
#96
pfabrick avatar

pfabrick

New Zenner

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

Re: MultiSite Module Support Thread

First I want to congratulate you on a job well done!! "Job" because you put A LOT of work into this, "Well" because the code looks clean and doesn't require tons of core changes and "Done" because you actually made it to a finished mod!

I have my test sites up and running, but the only problem seems to be that the template isn't being chosen based on which site you're at. I can still choose the template from within the admin and that is the actual template that appears at BOTH sites. Catorization is working but I just can't get the templates to "stick."

Here are my sites: http://testsite.onlinecatholicstore.com and http://testsite2.onlinecatholicstore.com

Here's the content of my testsite.onlinecatholicstore.com_config.php

<?php
    define('DIR_WS_CATALOG', '/');
	define('DIR_WS_HTTPS_CATALOG', '/');
	$template_dir = "testsite";
	define('SITE_NAME','testsite.onlinecatholicstore.com');
?>

And the content of testsite2.onlinecatholicstore.com_config.php

<?php
    define('DIR_WS_CATALOG', '/');
	define('DIR_WS_HTTPS_CATALOG', '/');
	$template_dir = "testsite2";
	define('SITE_NAME','testsite2.onlinecatholicstore.com');
?>

And, of course, I've included site_switch.php at the top of my configure.php file.

Any idea what's going on? I appreciate anything you can do...I've hit a brick wall :frusty:

Thanks,
Patti

Patti - OnlineCatholicStore.com
ZC 1.3.9h with multisite mod -- ZC ROCKS!

20 Jun 2007, 10:19 AM
#97
gerome avatar

gerome

Zen Follower

Join Date:
Sep 2006
Posts:
100
Plugin Contributions:
0

Re: MultiSite Module Support Thread

You have to make sure that you have this file:

includes/init_includes/overrides/init_templates.php

The only change of this file is to comment the part where the $template_dir is defined from the database. in this way, template_dir of the config file will be the one used.

/*
 * Determine the active template name
 */
/*
  $template_dir = "";
  $sql = "select template_dir
            from " . TABLE_TEMPLATE_SELECT . "
            where template_language = 0";
  $template_query = $db->Execute($sql);
  $template_dir = $template_query->fields['template_dir'];

  $sql = "select template_dir
            from " . TABLE_TEMPLATE_SELECT . "
            where template_language = '" . $_SESSION['languages_id'] . "'";
  $template_query = $db->Execute($sql);
  if ($template_query->RecordCount() > 0) {
    $template_dir = $template_query->fields['template_dir'];
  }
*/
20 Jun 2007, 10:40 PM
#98
glemigh avatar

glemigh

New Zenner

Join Date:
Jun 2007
Posts:
4
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Is there a sane way to deal with the SSL problem where SSL is used and on the primary domain, and not on the additional domains, and checkout must occure within the SSL under the primary domain?

George

21 Jun 2007, 12:39 AM
#99
pfabrick avatar

pfabrick

New Zenner

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

Re: MultiSite Module Support Thread

Gerome- Thank you so much for your help. Yep, for some reason that file was missing.

We currently have both sites running in test and everything is testing out well. We did have a little question about the favicon: Where does the favicon file need to be located for each of the sites?

P.S. We plan on implementing this with our 10 current sites and probably more in the future. We'll let you know how it goes...

Thanks,
Patti

Patti - OnlineCatholicStore.com
ZC 1.3.9h with multisite mod -- ZC ROCKS!

21 Jun 2007, 6:48 AM
#100
chrome_orange avatar

chrome_orange

Totally Zenned

Join Date:
Jun 2004
Posts:
457
Plugin Contributions:
0

Re: MultiSite Module Support Thread

hi

this looks like a great mod, perfect for my needs but I have one question

how do I 'point' my domains?

What do I do DNS wise?

Lets say I have

site1.domain.com and site2.domain.com

what do I do in my dns to get site2 to work?

I've read this thread and the install stuff but I am not clear at all.

It's my server so I have full dns access but there are several other domains on the server all dong different things

Thanks

Andy