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

Multi-Site Module...

Locked

Views: 16,860

Results 41 to 60 of 67
This thread is locked. New replies are disabled.
15 May 2007, 3:17 PM
#41
gerome avatar

gerome

Zen Follower

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

Multi-Site Module...

Yes it is, I think it would be done by adding these lines to the config files respective of your sites...

in site1.sitename.com_config.php:
define('HTTP_SERVER', 'https://site1.sitename.com');

in the file site2.sitename.com_config.php:
define('HTTP_SERVER', 'http://site2.sitename.com');

This means that every single pages of site1 will have an SLL link (not only the secure sections cart, payment, profile...)

I hope this answer your question.

19 Nov 2007, 1:37 AM
#42
sassayone avatar

sassayone

New Zenner

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

Re: Multi-Site Module...

Can you have different prices on each store? Im doing a retail and a wholesale site

Anyone done it? Thanks!

1 Dec 2007, 12:47 AM
#43
ideasgirl avatar

ideasgirl

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,437
Plugin Contributions:
3

Re: Multi-Site Module...

swguy:

What's the business reasoning behind this mod? I hear about people asking for this sort of thing now and again and can never understand it. Why would you not want to show your entire product portolio to your customers?

swguy:

I was responding to Merlin's assertion that specialty shops could charge higher prices.

Relevance is an interesting argument. And clearly it can be done as a price/demographic
segmentation strategy (a la Banana Republic/Gap/Old Navy). It just seems like an
odd strategy for a small net-only business.

Scott

Here's why:

I have a customer that in the same store sells Paintball supplies and Computer supplies. He has an online store with EVERYTHING mixed. If I'm a computer stuff buyer, I don't want to go through hundreds of mixed items of paintball and computer, neither see the specials, featured items, nor new items for that. I just want to buy a computer "thingy".

He does have customers that buy from both sides, and when you go to his store, he has compputers at left, paintball at right; but online is a bit more confusing and specific. The cross cart (1membership/1checkout) thing is great, and less time consuming and more practical to the shop owner, since he only has to go to 1 admin panel to do everything that has to do with his 2 shops.

1 Dec 2007, 3:20 AM
#44
ideasgirl avatar

ideasgirl

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,437
Plugin Contributions:
3

Re: Multi-Site Module...

I'm stuck as how I am supposed to redirect the subdomains. :wacko:

Here's what I've done:

Installed the ZC on a subdomain called store.
Installed all the files from Multi-Site module and Multi-Site Admin Tools
Created the 2 templates
1-paintball
2-computers

Rename the templates files info

Created the dir config_files in store/includes

Added the include_once('includes/config_sites/sites_switch.php'); the the includes/configure.php file

Created the 2 subdomains (.paintball.domain.info & .computers.domain.info)

Now.... WHAT am I supposed to name the config_sites files?
To WHERE am I supposed to redirect the subdomains?
Is the configure.php defines should be pointing to /store/ ? You know, the original file?
WHAT is the correct structure to use for define('DIR_WS_CATALOG' in the config_sites files?

I know, I know.... too many questions, but the instructions (and forums) don't answer any of these. :blink:

1 Dec 2007, 6:40 PM
#45
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: Multi-Site Module...

This is a Fantastic module!!! Kudos for all your hard work Gerome:clap:!

I seem to be missing something though. When I go to your test sites, they all redirect to the same "main" site. Each site you have listed looks exactly alike. Am I missing something here, or is there a little problem with your redirect.

11 Dec 2007, 3:39 PM
#46
tracy88 avatar

tracy88

New Zenner

Join Date:
Dec 2007
Posts:
5
Plugin Contributions:
0

Re: Multi-Site Module...

Hey All. I posted on the other thread but this one seems to be more up to date. My name is Lee and, currently, I have 3 sites up and running on 1 gateway-merchant acct with zen-cart. They are:
Leesgiftshop.com
grammysbag.com
somethingspecialmerchandise.com
They all have their own admin, db, stuff like that, and all are working great. Used different installs for each. My main shop is somethingspecialmerchandise.com. My question is, that when I go to secure pages, I end up with a very long url like this:
https://somethingspecialmerchandise.com/leesgiftshop/blahblah--then a long zenid number, . Is there any way to hide parts of this url from showing up on checkout? If not, is no big deal. Everything else is working beautiful.

12 Dec 2007, 9:20 AM
#47
david_buckley avatar

david_buckley

New Zenner

Join Date:
Mar 2007
Posts:
48
Plugin Contributions:
0

Re: Multi-Site Module...

Tracy this is something to do with sessions and how ZenCart is storing them.

If my head is heading in the right direction through the fog. I cannot remember exactly what the story is, but I think that it has something to do with where you store your session information, either in the database or in files....

something like that anyway, I vaugely remember reading something about it in these forums so I suggest a search on sessions.

Hope that this helps a little bit or that someone else watching this thread remembers what the Goodness Gracious I am talking about, Hello Ajeh!!! feel free to stick your nose in here.

:D

DAVE

:)

19 Dec 2007, 3:37 PM
#48
tracy88 avatar

tracy88

New Zenner

Join Date:
Dec 2007
Posts:
5
Plugin Contributions:
0

Re: Multi-Site Module...

Thanks David for answering. Still haven't fixed the prob but still searching these forums!:frusty:

21 Dec 2007, 1:00 AM
#49
david_buckley avatar

david_buckley

New Zenner

Join Date:
Mar 2007
Posts:
48
Plugin Contributions:
0

Re: Multi-Site Module...

No Probs.

If it comes back to me or I come across the Answer I will let you know.

:)

21 Dec 2007, 1:06 AM
#50
beez avatar

beez

Zen Follower

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

Re: Multi-Site Module...

Isn't that something that can be done with a .htaccess file? I don't know and I haven't tested yet, just thinking out loud here :smile:

21 Dec 2007, 3:09 PM
#51
lenny avatar

lenny

New Zenner

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

Re: Multi-Site Module...

Hi all,

I am having some problems with specials and linked products (i use a different category root on each site). I have set up a main category for each store, with child categories in it, so every site has its own categorytree actually. Then i copy (link) products from a category of store A to a category of store B and that is where i am having troubles.

So for example, i have a t-shirt in store A, and have linked this product also to a category in store B. Have made it a special.
In store A, product shows up in productlist, specialsbox, specials page and frontpage specials module.
In store B only in product listing. When i create a new product in store B, and make it a special, it does show everywhere it is supposed to.

Now i think it has to do with the original zen-carts specials query, as it uses SELECT DISTINCT to make sure a linked product only shows once.

Does any of you have a clue to work around this?

I do need to link the products, otherwise stock info is incorrect and off course it takes more administration.

Thank for your help...!!

21 Dec 2007, 3:40 PM
#52
lenny avatar

lenny

New Zenner

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

Re: Multi-Site Module...

I have found out this is also a problem with showing all products and new products.

Somehow, the cat filter does not filter properly. Showing only the master products, no linked products at all....

Oooh, this is gonne be a big problem for me, I am searching on, but i hope someone has an answer..

Thanks!!

Grtz Lenny

21 Dec 2007, 6:23 PM
#53
beez avatar

beez

Zen Follower

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

Re: Multi-Site Module...

I'm having the same problem when browsning a categoy. I'm not using different root categories

Wow, I'm a Zen Follower!

21 Dec 2007, 6:56 PM
#54
lenny avatar

lenny

New Zenner

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

Re: Multi-Site Module...

Is that also about linked products?

What is your situation then? Maybe it brings up some ideas of where to look.

Grtz Lenny

21 Dec 2007, 8:26 PM
#55
lenny avatar

lenny

New Zenner

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

Re: Multi-Site Module...

FOUND IT!!!!! :clap::clap::clap::clap:

It is an issue in the function cat_filter

The function is located in file catalog/includes/functions/extra_functions/cat_filter.php

around line 91

FIND

				$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);
			

REPLACE WITH

				$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);

Hope it helps you too!

Grtz Lenny

21 Dec 2007, 8:59 PM
#56
lenny avatar

lenny

New Zenner

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

Re: Multi-Site Module...

OK :oops:

a mistake; when browsing categories i got on error on the p2c not beeing unique.

New fix, please forget the fix above (can a moderator delete it please??):

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

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

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);  
				}
21 Dec 2007, 10:11 PM
#57
beez avatar

beez

Zen Follower

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

Re: Multi-Site Module...

Thanx lenny!

One thing: your second code change around line 91, what shall it replace? The lines just replaced and what I should find is the same. Hopefully just a copy-paste error, otherwise I'm lost :dontgetit

22 Dec 2007, 1:39 AM
#58
beez avatar

beez

Zen Follower

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

Re: Multi-Site Module...

Hi lenny and all you other little santas!

I've got it to work!

on 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!==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);
				}

Thanx Lenny (and Vike again)!

22 Dec 2007, 4:51 AM
#59
beez avatar

beez

Zen Follower

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

Re: Multi-Site Module...

A client of mine wanted to seperate EZ-pages as well, so I did this. Hopfully other might like it as well. It pretty much fills my needs.

I added a field in the ezpages table, added a input field in admin and made some changes in the catalog file.

22 Dec 2007, 10:27 AM
#60
lenny avatar

lenny

New Zenner

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

Re: Multi-Site Module...

Hi, YEs, i see that i put the same lines of code for the second replace. How smart....

I am going to check out the ezpages, thanks!

Happy Holidays!!

Grtz Lenny