Zen Cart Logo
Forums / All Other Contributions/Addons / Multi-Site Module...

Multi-Site Module...

Locked

Views: 16,860

Results 61 to 67 of 67
This thread is locked. New replies are disabled.
27 Dec 2007, 10:24 PM
#61
neilg avatar

neilg

New Zenner

Join Date:
Dec 2006
Posts:
75
Plugin Contributions:
0

Multi-Site Module...

Hi,

I have two web addresses that I would like to use the same cart for i.e. I want the front pages to be separate but the products and stock etc are from the same admin source.....is this what this module can do for me?

Cheers,
Neil

27 Dec 2007, 10:35 PM
#62
beez avatar

beez

Zen Follower

Join Date:
Sep 2005
Location:
Malmö, Sweden
Posts:
117
Plugin Contributions:
4

Re: Multi-Site Module...

Hi neilg!

This is the mod for you! It does just that: Different store fronts, one admin and the ability to share product catalog.

Good Luck!

27 Dec 2007, 10:53 PM
#63
neilg avatar

neilg

New Zenner

Join Date:
Dec 2006
Posts:
75
Plugin Contributions:
0

Re: Multi-Site Module...

Cool...thanks Beez!

28 Dec 2007, 4:54 AM
#64
neilg avatar

neilg

New Zenner

Join Date:
Dec 2006
Posts:
75
Plugin Contributions:
0

Re: Multi-Site Module...

Actually...I do have another question. I have a lot of mods in my store and run a different template.....do you think this could have any impact on installing this module??

Cheers,
Neil

21 Mar 2008, 9:14 PM
#65
kthompson avatar

kthompson

New Zenner

Join Date:
Jul 2007
Location:
Minneapolis, MN, United States
Posts:
71
Plugin Contributions:
0

Re: Multi-Site Module...

It shouldnt In some situations you may need to modify a file or two to do the proper category filtering and such but I have had no compatibility issues with multisite

14 Jul 2008, 7:48 PM
#66
ryska avatar

ryska

New Zenner

Join Date:
Apr 2005
Location:
Louny, Czech Republic
Posts:
50
Plugin Contributions:
0

Re: Multi-Site Module...

Hi Breeze,

I have question about linked products. Your code from post http://www.zen-cart.com/forum/showpost.php?p=478494&postcount=58 not working.
You have

if ($str_pos_p2c!==false) { 

but from post by Lenny is

if ($str_pos_p2c!=true) { 

and without error.

Is good this in file catalog/includes/functions/extra_functions/cat_filter.php?

around line 15 replace

$str_pos_products = strpos($sql_lower,TABLE_PRODUCTS . ' p');  

with

$str_pos_products = strpos($sql_lower,TABLE_PRODUCTS . ' p');
$str_pos_p2c = strpos($sql_lower,TABLE_PRODUCTS_TO_CATEGORIES . ' p2c');

around line 91 replace

$sql = substr($sql,0,$add_pos).
				" INNER JOIN ".TABLE_CATEGORIES_DESCRIPTION." cd
	  			ON (p.master_categories_id = cd.categories_id
	  			AND cd.language_id=".$_SESSION['languages_id']."
	  			AND cd.categories_description LIKE '%-".SITE_NAME."-%') ".
				substr($sql,$add_pos);

with:

if ($str_pos_p2c!=true) {

         $sql = substr($sql,0,$add_pos).
                               " INNER JOIN ".TABLE_PRODUCTS_TO_CATEGORIES." p2c ON (p2c.products_id=p.products_id)
                               INNER JOIN ".TABLE_CATEGORIES_DESCRIPTION." cd
                               ON (p2c.categories_id = cd.categories_id
                               AND cd.language_id=".$_SESSION['languages_id']."
                               AND cd.categories_description LIKE '%-".SITE_NAME."-%') ".
                               substr($sql,$add_pos);
         } else {
         $sql = substr($sql,0,$add_pos).
                               " INNER JOIN ".TABLE_CATEGORIES_DESCRIPTION." cd
                               ON (p.master_categories_id = cd.categories_id
                               AND cd.language_id=".$_SESSION['languages_id']."
                               AND cd.categories_description LIKE '%-".SITE_NAME."-%') ".
                               substr($sql,$add_pos);  
         } 

!!!!! or with !!!!!

if ($str_pos_p2c!==false) {
	        		$sql = substr($sql,0,$add_pos). 
				" INNER JOIN ".TABLE_CATEGORIES_DESCRIPTION." cd
				ON (p2c.categories_id = cd.categories_id
				AND cd.language_id=".$_SESSION['languages_id']."
				AND cd.categories_description LIKE '%-".SITE_NAME."-%') ".
				substr($sql,$add_pos);
	 } else { 
				$sql = substr($sql,0,$add_pos).
				" INNER JOIN ".TABLE_CATEGORIES_DESCRIPTION." cd
				ON (p.master_categories_id = cd.categories_id
				AND cd.language_id=".$_SESSION['languages_id']."
				AND cd.categories_description LIKE '%-".SITE_NAME."-%') ".
				substr($sql,$add_pos);
	 } 

Work this patch?

16 Jul 2008, 2:48 PM
#67
dumus avatar

dumus

New Zenner

Join Date:
Jul 2008
Location:
Early, TX
Posts:
5
Plugin Contributions:
0

Re: Multi-Site Module...

Gerome:

This thread is related to this one:
http://www.zen-cart.com/forum/showthread.php?t=36709&goto=newpost

Test shops are running on these addresses:

http://bigdepot.bigdepot.co.uk/
http://pressit.bigdepot.co.uk/
http://medea.bigdepot.co.uk/
http://lightscribe.bigdepot.co.uk/
http://inkrite.bigdepot.co.uk/
http://infiniti.bigdepot.co.uk/
http://scratchlessdisc.bigdepot.co.uk/

All these shops are running from the same zen cart, there is a filter that only display some categories in some shops and not in other. medea.bigdepot.co.uk and bigdepot.bigdepot.co.uk have all the categories since they are "main websites..." the others only contain subproduct.

These sites are still "test servers" so please so please don't buy things from there.

An account created on a shop works on all the other shop. When you click on the link in Partner, it keep the same session when you go in a different site. It means, you can buy products from different website in the same cart.

These are test shops as I'll write the Multi-Site Module shortly.

PS: You can buy the product from the test shop on this site: http://www.medea.co.uk/buy/
Hi Gerome,
I have been lurking in the zen cart forums frantically searching to a solution to a problem when I ran across your post. Where do you stand on this project as of today?

Warm Regards,
Brent Thomas
Thomasco Media
Thomasco Media Blog