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 61 to 80 of 2,247
15 May 2007, 11:13 PM
#61
crazy_software avatar

crazy_software

New Zenner

Join Date:
May 2007
Posts:
6
Plugin Contributions:
0

MultiSite Module Support Thread

OK call me a noob, but I am totally confused....

I currently have the cart installed at my test domain http://www.frenchsdesigns.com This is my test site, as I will be creating a new setup at a new domain...

Do I need to create a new directory folder for a new subdomain and then upload the shopping cart again with all the files included with the mutlisite MOD? or do I just need to upload these files into the main site, and then create a new template?

Could someone please help me understand this?
I know it is simple, but I am just not getting it, please, please, please help me...

Thanks

15 May 2007, 11:28 PM
#62
crazy_software avatar

crazy_software

New Zenner

Join Date:
May 2007
Posts:
6
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I should note that I have 1and1.com hosting package so it is easy for me to direct subdomains wherever I want, but I am still confused as to what to do with this, to make it work...

16 May 2007, 8:50 AM
#63
gerome avatar

gerome

Zen Follower

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

Re: MultiSite Module Support Thread

there is a function cat_filter($sql) that changes any query that is related to categories/products and apply the filter to it. If you use this function for the sql query of url_generator, it should "hopefully" work. If it doesn't, I can fix it, but,I don't think I've ever used this module, so I don't really know what it is all about.

Try to add cat_filter() in the code of this module in the first time.

You might have that somewhere:
.... = $db->Execute('SELECT .... FROM ... CATEGORIES ....');
replace it by
.... = $db->Execute(cat_filter('SELECT .... FROM ... CATEGORIES ....'));

And your categories should be filtered.

If it doesn't work, I'll give it a try.

As for the banners, I never done anything with it at the moment, just because I don't really use banners. You can add sideboxes specifically to a template (and so, to only one site...). I guess it should be simple to use the constent SITE_NAME in the banner's name and then to modify the query that would only show the banner for the site...

When I have to do any kind of banner for a site, I dont use this module but I make my own sideboxe for a banner and then I put it whereever I want.

16 May 2007, 8:56 AM
#64
gerome avatar

gerome

Zen Follower

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

Re: MultiSite Module Support Thread

Crazy-Software:

OK call me a noob, but I am totally confused....

I currently have the cart installed at my test domain http://www.frenchsdesigns.com This is my test site, as I will be creating a new setup at a new domain...

Do I need to create a new directory folder for a new subdomain and then upload the shopping cart again with all the files included with the mutlisite MOD? or do I just need to upload these files into the main site, and then create a new template?

Could someone please help me understand this?
I know it is simple, but I am just not getting it, please, please, please help me...

Thanks
make different domains with the SAME folder on your server; This folder should contain the zen-cart shop.

Example:
These two index.php files should be the SAME file
https://www.site1.com/index.php
https://www.site2.com/index.php

So you can make it work with only one file system.

Follow the instructions and good luck.

Can these that manage to install this module properly point me out what needs to be added in the instructions ?

Thanks.

16 May 2007, 10:26 AM
#65
xzc avatar

xzc

New Zenner

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

Re: MultiSite Module Support Thread

Gerome:

Yes, I see where you ar going. The module has been for a same admin to manage more than one shop (as it is what we do). If you want an admin to only manage one shop, it means that you won't have common categories in between shop anymore ? The admin configuration is set as "default for all site" when you override the configuration of one site in a config file; if you want to make it for more than one admin, this would have to change too. I never really take time to considerate this improvement, and I think we should get more opinions about the needs of users before starting to do anything like that.

Also, I mainly started to make this module because it was something that my company needed, however, we don't need to have a specific admin for each shop, this is why I didn't bother doing it...

Customer table is common for all sites, it might have to change and be specific to one site (adding a collomn site_name to the customer's table...)

Well, this won't be ready tomorrow...

Got more background of this module :)
Yes, agree with you that should be more careful before taking any action for such change.
And now I just suddenly have another idea: I think based on your current module, it is easy to create many super administrator accounts that can manage all the shops, right?
If so, then if I hava 3 shops, then I create 3 super administrators (such as admin1, admin2, admin3. all can manage every shop), and then, is it possible that in the code we implement some constraint logic which can only manage one shop? (admin1 can only have the auth to manage shop1 ...)
Also, regarding the customer's table, I don't think it is necessary to add a column site_name, since "customer is common for all shops" is acceptable under most situation. (Less modification to the table structure, much more better, I think :) )

16 May 2007, 4:00 PM
#66
onlyblue avatar

onlyblue

New Zenner

Join Date:
May 2007
Posts:
11
Plugin Contributions:
0

Re: MultiSite Module Support Thread

First of all, thanks for Gerome doing such a beautiful work. And I find that this is really a warm community.

I'm new to website establishment and Zen Cart. I browsered all the posts before. However, I'm somewhat unclear.

I have installed the Zen Cart 1.3.7 with the domain name **shop.mysite.com **on Dreamhost.
I have also created a subdomain shop1.shop.mysite.com.
What is the more reasonable way to use MultiSite Module creating a new store **www.shop1.shop.mysite.com**?
Thanks in advance!:smile:

16 May 2007, 4:29 PM
#67
alfher avatar

alfher

New Zenner

Join Date:
May 2007
Posts:
2
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Hello, i need help in spanish, about installation of multisite, thanks.

16 May 2007, 7:15 PM
#68
crazy_software avatar

crazy_software

New Zenner

Join Date:
May 2007
Posts:
6
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Allright I must be really stupid here...

Gerome I had sent you an email, as I still do not get it LOLOL

I am usually pretty handy and can stumble through most things when it comes to this sort of thing. I just cannot seem to understand how this works or is installed.

I would be more than willing to pay for your services and help with getting this installed...

Thanks!

16 May 2007, 8:20 PM
#69
crazy_software avatar

crazy_software

New Zenner

Join Date:
May 2007
Posts:
6
Plugin Contributions:
0

Re: MultiSite Module Support Thread

ok well I think I know am getting somewhere...

I just cannot get any boxes to show up on the site...
I have selected under "Tools" "Template Selection" Store1 then slected update

When I go under "Tools" "Layout Boxes Controller" I select which Boxes to tourn on, BUT they are NOT appearing on my shop page...

Am I missing a step here?

My test domain is http://www.frenchsdesigns.com

17 May 2007, 3:00 AM
#70
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've been trying to configure for some time now, but i think i got it...

If you want to add more domains to your zencart multisite using cPanel, you install the mod on the main store (e.g. https://www.aliencore.com) and configure as Gerome says in the installation instructions.

Then, in cPanel, you have a button named "Parked Domains". Click here and then add the domain names that you want to use and that you configured in 'includes/config_sites". (e.g. www.lojadejogos.com; https://www.mundodosbrinquedos.com, etc.)

By now, if you followed Gerome's instructions correctly, you should see that e.g. https://www.lojadejogos.com is working but is not showing the sideboxes.

This has been said before by Gerome, but i will copy-paste it here once more:

Gerome:

You need to go in:

  • Tools -> Template Selector
  • click on Edit
  • Choose the template that you what to change the Layout Boxes for
  • Click on Update.
  • Then go in Tools -> Layout Boxes Controller and you can now change the layout boxes for the template that you have selected.

Repeat this process for every template that you what to change the layout for.

Note: With the MultiSite Module, the Template Selector doesn't select the template anymore because the template is chosen depending of the site.

The template Selector is only used in order to chose the template for which you want to change the layout.

17 May 2007, 8:09 AM
#71
gerome avatar

gerome

Zen Follower

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

Re: MultiSite Module Support Thread

alfher:

Hello, i need help in spanish, about installation of multisite, thanks.

http://translate.google.com/translate?u=http%3A%2F%2Fwww.medea.co.uk%2Fdev%2Fmultisite_instructions.html&langpair=en%7Ces&hl=en&ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools

don't use the translated code ! instead, take the code from the English version

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

17 May 2007, 12:54 PM
#72
onlyblue avatar

onlyblue

New Zenner

Join Date:
May 2007
Posts:
11
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I have just installed the MultiSite Module to a fresh installation of Zen Cart 1.3.7, all works but I have also two questions.

1. Before installing the MultiSite Module, the Documents sidebox displayed "Documents (2)". It's right. When I installed the MultiSite Module, both original site and sub site displayed the displayed "-> (145)" in their Documents sideboxes. I think it's not right.

2. If I create two sub stores(e.g. store1 and store2)with the MultiSite Module, is it possible for customer to pay money to corresponding storekeeper (e.g. storekeeper1 or storekeeper2) according to the goods in different stores?

Thanks!:smile:

17 May 2007, 1:07 PM
#73
onlyblue avatar

onlyblue

New Zenner

Join Date:
May 2007
Posts:
11
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Sorry for exceeding 7 minutes. I want to post it more clearly again.

I have just installed the MultiSite Module to a fresh installation of Zen Cart 1.3.7, all works but I have also two questions.

1. Before installing the MultiSite Module, the Documents sidebox displayed "Documents (2)". It's right. When I installed the MultiSite Module, both original site and sub site displayed the displayed "-> (145)" in their Documents sideboxes. I think it's not right.
When I click the link "Documents" the Documents sidebox (without MultiSite Module), the URL is:

http://localhost/index.php?main_page=index&cPath=63
When I click the link "->" the Documents sidebox (with MultiSite Module), the URL is:
http://www.mysite.com/index.php?main_page=index&cPath=
http://www.mysite.com/shop1/index.php?main_page=index&cPath=

2. If I create two sub stores(e.g. store1 and store2)with the MultiSite Module, is it possible for customer to pay money to corresponding storekeeper (e.g. storekeeper1 or storekeeper2) according to the goods in different stores?

Thanks!:smile:

17 May 2007, 2:13 PM
#74
gerome avatar

gerome

Zen Follower

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

Re: MultiSite Module Support Thread

OnlyBlue:

I have just installed the MultiSite Module to a fresh installation of Zen Cart 1.3.7, all works but I have also two questions.

1. Before installing the MultiSite Module, the Documents sidebox displayed "Documents (2)". It's right. When I installed the MultiSite Module, both original site and sub site displayed the displayed "-> (145)" in their Documents sideboxes. I think it's not right.
When I click the link "Documents" the Documents sidebox (without MultiSite Module), the URL is:
Thanks for spotting this bug, I made a fix for the document sidebox bug:

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

Let me know if it works to your shop too, then I'll put it in a new release.

OnlyBlue:

2. If I create two sub stores(e.g. store1 and store2)with the MultiSite Module, is it possible for customer to pay money to corresponding storekeeper (e.g. storekeeper1 or storekeeper2) according to the goods in different stores?

You can modify the payment information from the store1.._config.php by overriding the correct constants. Check in your configuration table what is the name of the storekeeper ID (This can be different in function of which payment module you are using).

18 May 2007, 8:04 AM
#76
onlyblue avatar

onlyblue

New Zenner

Join Date:
May 2007
Posts:
11
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Gerome:

Thanks for spotting this bug, I made a fix for the document sidebox bug:

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

Let me know if it works to your shop too, then I'll put it in a new release.

Thanks, Gerome!

It seems that the sites work well after applying the patch, but the Documents sidebox disappeared. Is it right?:huh:

I have also another suggestion:

In the step 4 of the MultiSite Module Instructions, we'd better create not only the www.site1.com_config.php but also the site1.com_config.php. Otherwise, if we use site1.com to browser the site, we would meet a error :

the domain site1.com_config.php does not exist.

:smile:

18 May 2007, 8:47 AM
#77
gerome avatar

gerome

Zen Follower

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

Re: MultiSite Module Support Thread

OnlyBlue:

Thanks, Gerome!

It seems that the sites work well after applying the patch, but the Documents sidebox disappeared. Is it right?:huh:

The sidebox disappears because there is no document to display for the site. This is the normal behavior of this sidebox.

OnlyBlue:

I have also another suggestion:

In the step 4 of the MultiSite Module Instructions, we'd better create not only the www.site1.com_config.php but also the site1.com_config.php. Otherwise, if we use site1.com to browser the site, we would meet a error :

As for multi domains issues, I use .htaccess in order to resolve this problem because I think it makes things cleaner.

Add the the beginning of your htacess:

#Redirect all *site2.com and site2.net to https://www.site2.com
RewriteCond %{HTTP_HOST} site2.com$ [OR]
RewriteCond %{HTTP_HOST} site2.net$
RewriteCond %{HTTP_HOST} !^www.site2.com$
RewriteRule ^(.
)$ http://www.site2.com/$1 [L,R=301]

This is what is used for bigdepot.co.uk:
http://ww.bigdepot.co.uk/scratchless-cd-c-3377.html
http://bigdepot.co.uk/scratchless-cd-c-3377.html
http://anything.bigdepot.co.uk/scratchless-cd-c-3377.html
http://www.bigdepot.com/scratchless-cd-c-3377.html
All are redirected to that link, with a similar .htaccess code.
http://www.bigdepot.co.uk/scratchless-cd-c-3377.html

For these who don't want to bother with it, there is other this way:
into the site1.com_config.php:

includes('includes/config_sites/www.site1.com_config.php');

Another way to do it would be to put that in the site1.com_config.php:

header('HTTP/1.1 301 Moved Permanently');
header('Location: http://www.site1.com'.$_SERVER['REQUEST_URI']);

Note: I never tried this one, but it should have a similar effect that the .htaccess code. Warning: I think that, for some servers, $_SERVER['REQUEST_URI'] has a different name...

Soon, I'll go though this thread and I'll make a FAQ with all the helps that has been given ...

Hope it helps!

18 May 2007, 11:16 AM
#78
streetglow avatar

streetglow

New Zenner

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

Re: MultiSite Module Support Thread

Hello,

first of all, my compliments for developing this module.

I've got a question: How do I make it work with different domains? not similar to the questions before, explanation will follow

Explanation:

I've got 2 different webshops (both zen-cart of course), they are separated, by that word I mean the following:

  • Different domain;
  • Different FTP;
  • Different Files;

How can I do this?

What do I want?:

  • Keep different files, which results in different FTP's, different domains.
  • Connect the 2 sites 1 database.

How can I:

Make sure that the orders will come in 1 database?

I hope I made my point,

Thanks in advance.

~Streetglow.

18 May 2007, 12:29 PM
#79
streetglow avatar

streetglow

New Zenner

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

Re: MultiSite Module Support Thread

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...

20 May 2007, 6:27 PM
#80
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

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.