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

MultiSite Module Support Thread

Views: 580,151

Results 981 to 1,000 of 2,247
26 Dec 2009, 19:52
#981
theguest avatar

theguest

Zen Follower

Join Date:
Jul 2009
Posts:
117
Plugin Contributions:
0

MultiSite Module Support Thread

This module makes navigation to my site - via http://mysitename.com not working because of this code

if(file_exists("includes/config_sites/$config_file")) {
	include("includes/config_sites/$config_file");
} else {
	echo "the domain $default_server_name does not exist.";
	exit;
}

in sites_switch.php method

so only http://www.mysitename.com works

how do you solve this problem?

TheGuest:

Got this part finally working. I did not modify configure.php - that was the problem

Thanks,
TheGuest

26 Dec 2009, 20:07
#982
theguest avatar

theguest

Zen Follower

Join Date:
Jul 2009
Posts:
117
Plugin Contributions:
0

Re: MultiSite Module Support Thread

So i got main site working but add on domain asdfasdflkh.mysitename.com does not work.
Any ideas?

TheGuest:

This module makes navigation to my site - via http://mysitename.com not working because of this code

if(file_exists("includes/config_sites/$config_file")) {
include("includes/config_sites/$config_file");
} else {
echo "the domain $default_server_name does not exist.";
exit;
}

in sites_switch.php method

so only http://www.mysitename.com works

how do you solve this problem?

26 Dec 2009, 22:57
#983
theguest avatar

theguest

Zen Follower

Join Date:
Jul 2009
Posts:
117
Plugin Contributions:
0

Re: MultiSite Module Support Thread

OK I got second shop more or less working as well - UI part.

TheGuest:

So i got main site working but add on domain asdfasdflkh.mysitename.com does not work.
Any ideas?

26 Dec 2009, 23:03
#984
theguest avatar

theguest

Zen Follower

Join Date:
Jul 2009
Posts:
117
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Is it possible to have separate easy pages for each site and if so how?

TheGuest:

So i got main site working but add on domain asdfasdflkh.mysitename.com does not work.
Any ideas?

28 Dec 2009, 20:56
#985
riky avatar

riky

New Zenner

Join Date:
Dec 2009
Posts:
59
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Hi guys,

I ve tried several times but without success to install this module.
Reading all the posts , most of us have the same problem with taking control of the template and the layout sideboxes after the installations.

My website is : megatradecenter.com
subdomains are :
-shop1.megatradecenter.com
-shop2.megatradecenter.com

I was following all the instructions and complete the installations hoping at the end I would get my template back.

the main website and the subdomains have them templates.
The add files and modify files have been changed following the instructions . The subdomains are pointing the main domain.

When in the admin I chande the template i don't see any results , just the layout boxes configuration change ( BUT just in the admin).

I can't see any changes in the website !!! The template is still the yellow one of the multisite installation.

My zencart is totally a fresh installation. I Can't understand .
If someone has the folder with just the basic zencart installation and the multisite module added , it could be wonderful .

I appreaciate as well for any help. Help please I'm stuck in!!!

Thanks in advance!!

Saludos

28 Dec 2009, 21:24
#986
balihr avatar

balihr

Totally Zenned

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

Re: MultiSite Module Support Thread

Are you redirecting your subdomains to your top domain? I don't think you can do a redirect on subdomains and still use this module. If I'm not mistaking, you ibstalled zc in your top level domain and now you're simply redirecting your subdomains to your top level domain, right?

Try this:
setup your subdomain shop1 to have zencart installed. After that, create subdomain site2 from your hosting cpanel and point it to shop1. (Or you can use your top level domain instead of shop1, just change settings accordingly). In my case, it says "document root" in cpanel.
After you've done this, setup your config_sites as written in the instructions. It should work.

29 Dec 2009, 01:37
#987
riky avatar

riky

New Zenner

Join Date:
Dec 2009
Posts:
59
Plugin Contributions:
0

Re: MultiSite Module Support Thread

[QUOTE=balihr;822482]Are you redirecting your subdomains to your top domain? I don't think you can do a redirect on subdomains and still use this module. If I'm not mistaking, you ibstalled zc in your top level domain and now you're simply redirecting your subdomains to your top level domain, right?

Thanks for your quick answer!

You are right! My target is to do that!
Anyway I'm trying in this oher way just to understand what I'm doing wrong.

I tell you when I've tried.

Cheers!

29 Dec 2009, 01:38
#988
riky avatar

riky

New Zenner

Join Date:
Dec 2009
Posts:
59
Plugin Contributions:
0

Re: MultiSite Module Support Thread

[QUOTE=riky;822535][QUOTE=balihr;822482]

29 Dec 2009, 11:40
#989
riky avatar

riky

New Zenner

Join Date:
Dec 2009
Posts:
59
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I got confused again on templates and domains.

I install zencart on shop1.megatradecenter.com then i add the multisite module.

Created shop2.megatradecenter.com and directed to shop1.megatradecenter.com,
which files should i load on shop.2?

I shouldn't install zencart and multisite module on shop2, isn't it?

Where does shop1 is directing?

I DON'T GET IT! :frusty:

Thanks !

29 Dec 2009, 12:01
#990
balihr avatar

balihr

Totally Zenned

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

Re: MultiSite Module Support Thread

You don't need ANY files in your site2 subdomain! Are you using linux hosting? Do you have a cpanel? If so, when you create a new subdomain, it asks you for a directory root. Just write shop1 name instead of shop2 and that's it. No redirections!
You can see my cpanel screenshot in the attached pics. Pic1 is creating a regular subdomain and pic2 is what you need to do so that shop2 "pulls" data from shop1.

Then, go to your includes/config_sites folder and create shop1.megatradecenter.com_config.php and shop2.megatradecenter.com_config.php

Under shop1_config, put your first template name, something like this:

<?php
$template_dir = "your_template_1";
define('SITE_NAME','site1');
define('HTTP_SERVER', 'http://shop1.megatradecenter.com');
define('STORE_NAME','Shop1_name'); //Store Name
?>

Change your_template_1 to the one you're using.

Do the same for shop2_config, something like this:

<?php
$template_dir = "your_template_2";
define('SITE_NAME','site2');
define('HTTP_SERVER', 'http://shop2.megatradecenter.com');
define('STORE_NAME','Shop2_name'); //Store Name
?>

When finished, it should work.

29 Dec 2009, 13:18
#991
riky avatar

riky

New Zenner

Join Date:
Dec 2009
Posts:
59
Plugin Contributions:
0

Re: MultiSite Module Support Thread

You are very helpful Thanks.

I ve followed your instructions and everything seems much rational .
But I still have the same problem with the admin , I have still this template change .

First I ve override the "MODIFY FILES" of group1 and gorup2 how Gerome said. I have probably miss something.

In the admin in the template section i see my templates in combination with de deafault language but I don't see them on the website.
As well I ve tried to add a new language but no results.

Where is coming from this template?

Many Thanks

29 Dec 2009, 16:11
#992
balihr avatar

balihr

Totally Zenned

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

Re: MultiSite Module Support Thread

You've missed something, I can't tell what from here.
At the moment, your zencart IS NOT using the multisite module.
If you want, you can **PM **me with your zencart admin password as well as your ftp account login and pass and we'll work something out. And, if you're happy with my help and decide it's worth it, feel free to visit this page :smile:

29 Dec 2009, 19:44
#993
theguest avatar

theguest

Zen Follower

Join Date:
Jul 2009
Posts:
117
Plugin Contributions:
0

Re: MultiSite Module Support Thread

There is one interesting glitch that I cam across just now.

  1. I have successfully set up couple of stores
  2. created a user in one shop with email [email protected]
  3. tried to create a user in second shop with same email address but got a message that a user already exists

It is understandable that you can't create two entries in DB with same email address. However, if there are two or more completely different shops with different products and a single user tries to buy from both stores he/she will be surprised that an account has already been created with specified email address. Is there a work around for this?

Thanks,
TheGuest

30 Dec 2009, 16:45
#994
louis avatar

louis

Zen Follower

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

Re: MultiSite Module Support Thread

The whole purpose of this mod is to manage multiple stores from ONE backoffice. This is especially handy if you share products across more than one shop.

if there are two or more completely different shops with different products
Then rather use two ZENCART installs.

  1. tried to create a user in second shop with same email address but got a message that a user already exists

This allows the very usefull function of cross-shop purchasing in one shoping cart. Great future if you run your multiple sites as departments and allow customers to buy from the various departments in a single shopping basket.

I see this mod as something to be used when you sell, lets say computers, and you want to offer themed departments for your various main brands whilst sharing your common products like cables, ink and other accessories.

30 Dec 2009, 17:26
#995
balihr avatar

balihr

Totally Zenned

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

Re: MultiSite Module Support Thread

Louis:

I see this mod as something to be used when you sell, lets say computers, and you want to offer themed departments for your various main brands whilst sharing your common products like cables, ink and other accessories.

:clap::clap::clap:

I second that. I believe this module is best suitable for departments of some store. If used for different stores and you don't let your customers know it's actually the same company and the site already "knows" them, you're actually **deceiving **your customers.
I use this modules for different departments of my store and my customers are delighted to be able to use same account in different sites (as far as they can tell, i have two absolutely different sites) and manage their account in one place.

03 Jan 2010, 16:22
#996
buildingblocks avatar

buildingblocks

Totally Zenned

Join Date:
Jun 2008
Posts:
629
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I've been reading the directions over and over to wrap my brain around this one. I have a few questions before I start working with this mod.

Are the directions at this site

http://www.medea.co.uk/dev/

still valid, step-by-step, for the most recent updated version 0.4.2 of multi-sites mod?

I didn't find an sql file in the latest multisite mod download so I assume the sql command to run is the one found at step 2 at http://www.medea.co.uk/dev/

and

Am I correct that only ONE installation of zencart is involved in running the multi-sites mod?

03 Jan 2010, 16:52
#997
fotofx avatar

fotofx

Zen Follower

Join Date:
Apr 2008
Location:
South Florida
Posts:
195
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Those are about the best available right now. You will still need to read thru this thread to get everything figured out.

Yes, only 1 cart install..

I am working on new step by step but not yet completed.

03 Jan 2010, 17:26
#998
buildingblocks avatar

buildingblocks

Totally Zenned

Join Date:
Jun 2008
Posts:
629
Plugin Contributions:
0

Re: MultiSite Module Support Thread

fotofx:

Those are about the best available right now. You will still need to read thru this thread to get everything figured out.

Yes, only 1 cart install..

I am working on new step by step but not yet completed.

Thanks fotofx :smile:

05 Jan 2010, 23:17
#999
buildingblocks avatar

buildingblocks

Totally Zenned

Join Date:
Jun 2008
Posts:
629
Plugin Contributions:
0

Re: MultiSite Module Support Thread

For testing and learning to set up this mod I've set up two subdomains. Site 1 subdomain has the zencart installed. I've got the mod installed. I've got products showing up on site 1.

I have the link for site 2 subdomain in the partners box. When I click on the link the site won't open. I get the page

"Forbidden

You don't have permission to access / on this server."

What am I missing to get site 2 to open with template 2?

Any pointers appreciated.

06 Jan 2010, 08:43
#1000
balihr avatar

balihr

Totally Zenned

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

Re: MultiSite Module Support Thread

Can you access subdomain2 by typing the address in the address bar or do you get this error only when clicking the link in your partner box?