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 121 to 140 of 2,247
10 Jul 2007, 10:32 AM
#121
gerome avatar

gerome

Zen Follower

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

MultiSite Module Support Thread

jvoce:

I know this has been briefly touched on earlier, not to the muddied extent with which I will confuse everyone.

Right now both stores share a common customer database, however, is it possible to add something in the database to share only certain customers, and not others?

What I'm looking for is one site with a complete category listing, and one with a restricted number. But I do not want all customers able to view the complete site.
This is definitly possible, however, I never really had time to do it.

constants define tables; you can override these constants (TABLE_CUSTOMERS, ...) from the confg files of your sites, and then have different tables for different sites, but it is a bit dangerious as it might be confusing in the admin section.

A cleaner why would be to filter the customers like I filter the categories. This might be a of more work and create a function that would rewrite the SQL query that contains customers tables... I could be able to do that, but at the moment, I really don't have time. If you really need that to be done, we can still arrange a contract for wich I will implement that for you. In this case, this will be done much quicker.

11 Jul 2007, 3:44 PM
#122
stav avatar

stav

New Zenner

Join Date:
Oct 2004
Posts:
39
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I have instaled clean latest version of zencart and latest multisite module.

The templates changing and filterign for the categories block , New Products For This month, Special for this month all sem to working fine except when I'm goin to New Products ..."index.php?main_page=products_new" and All Products ... "index.php?main_page=products_all" in this pages the filtering is not working for me.
In this two pages present are all products from both multisite categories that i have created.

maybe someone can help me to resolve this problem on that two pages products_new & products_all with the filtering on the products.

11 Jul 2007, 5:08 PM
#123
jvoce avatar

jvoce

New Zenner

Join Date:
Jul 2006
Location:
Toronto, ON
Posts:
87
Plugin Contributions:
0

Re: MultiSite Module Support Thread

For those using the Apple Zen Template or the CSS dropdown menu here's how to make it compatable:

File: includes/classes/categories_ul_generator.php
Line: 57
Change From: $categories = $db->Execute($categories_query);
Change To: $categories = $db->Execute(cat_filter/COLOR[COLOR="red"]);

Anyways, hope this helps someone.
:clap:

11 Jul 2007, 9:59 PM
#124
stav avatar

stav

New Zenner

Join Date:
Oct 2004
Posts:
39
Plugin Contributions:
0

Re: MultiSite Module Support Thread

The specials box for some reason was not included in the multisite module so
this is filter for the specials box
File: includes/modules/sideboxes/specials.php

Line:34
Change from: $random_specials_sidebox_product = zen_random_select($random_specials_sidebox_product_query);

Change to: $random_specials_sidebox_product = zen_random_select(cat_filter($random_specials_sidebox_product_query));

11 Jul 2007, 10:18 PM
#125
stewar67 avatar

stewar67

New Zenner

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

Re: MultiSite Module Support Thread

Hi..

Great module, thanks Gerome - glad i found it and even more convinced that dumping osc for zc was the right thing to do ;-)

BUT i have one problem that i can't figure out - when i go to my admin login page for store2 or store3 i keep getting redireced to store1.

i'm running my own apache / apache-ssl and have set up all the correct virtual hosts; and though it's early days i'm pretty sure the correct configurations are being called for all three actual shop sites.

it's just this admin page redirecting that's bugging me. it means i can't get in and set store2 and store3's templates.

or, it's just occurred to me (could be in for a big d'oh moment here) with multi-stores does one just ignore the template setting in the admin page and let the multi-config do the template selection for you - and therefore admin for all stores is done at https://store1 ? hmm. got me even more mystified now. :)

cheers!

12 Jul 2007, 8:26 AM
#126
gerome avatar

gerome

Zen Follower

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

Re: MultiSite Module Support Thread

Hi Stav,

Sorry to not replying quick enough, in fact, somebody noticed this error before you, and I have to say that I have been really busy the past few weeks and I didn't have time to release a new version.

I have been improving this module during the past few weeks, for the needs of our own online shops. However, since I had deadline to stick on, I didn't have time to pack a new version of Multisite module.

The new version will have definitly less bugs and integrate better the categories filter.

I also have to write a FAQ for this module has most of questions quite are redondant.

12 Jul 2007, 9:29 AM
#127
stav avatar

stav

New Zenner

Join Date:
Oct 2004
Posts:
39
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Ok Gerome thanks for your great module, I anderstand that you are busy, so when you have some free time I'm waiting for the new version :).

12 Jul 2007, 1:29 PM
#128
jvoce avatar

jvoce

New Zenner

Join Date:
Jul 2006
Location:
Toronto, ON
Posts:
87
Plugin Contributions:
0

Re: MultiSite Module Support Thread

stewar67:

Hi..
it's just this admin page redirecting that's bugging me. it means i can't get in and set store2 and store3's templates.

With multisite you only need to log into one admin. To change the other templates follow these steps.

1)go to Tool>Template Selection
2)click "edit"
3)select which template (store) you wish to edit
4)click "update"

Then you're ready to go and make changes.

14 Jul 2007, 3:49 AM
#129
stewar67 avatar

stewar67

New Zenner

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

Re: MultiSite Module Support Thread

jvoce:

With multisite you only need to log into one admin. To change the other templates follow these steps.

1)go to Tool>Template Selection
2)click "edit"
3)select which template (store) you wish to edit
4)click "update"

Then you're ready to go and make changes.

Aha! now i get it. I thought i might have been missing something obvious there. :)

Thanks for the tip, jvoce...

Now, if there was a way of knowing which template was selected so you know which store you're editing, such as a store logo on the admin page.. I might look into that as my own little contribution....

16 Jul 2007, 3:55 PM
#130
jvoce avatar

jvoce

New Zenner

Join Date:
Jul 2006
Location:
Toronto, ON
Posts:
87
Plugin Contributions:
0

Re: MultiSite Module Support Thread

I'm having problems trying to achive the following. Hopefully someone can help.

For site 2 I need the customers required to signup/in before they can view any product. site 1 they can view everything.

The only problem is I can't find the right file or constant for applying this change. Can anyone point me in the right direction please?

16 Jul 2007, 4:01 PM
#131
gerome avatar

gerome

Zen Follower

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

Re: MultiSite Module Support Thread

jvoce:

I'm having problems trying to achive the following. Hopefully someone can help.

For site 2 I need the customers required to signup/in before they can view any product. site 1 they can view everything.

The only problem is I can't find the right file or constant for applying this change. Can anyone point me in the right direction please?
I never heard of that, is that a zen-cart feature that you find in the admin configuration ?

16 Jul 2007, 4:33 PM
#132
jvoce avatar

jvoce

New Zenner

Join Date:
Jul 2006
Location:
Toronto, ON
Posts:
87
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Gerome:

I never heard of that, is that a zen-cart feature that you find in the admin configuration ?

Yes, it's a feature called "Customer Shop Status" in the admin under Configuration > Customer Details.

17 Jul 2007, 8:44 AM
#133
gerome avatar

gerome

Zen Follower

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

Re: MultiSite Module Support Thread

If you execute this SQL query, you will see the constant name in the description of any settings from the admin config:

UPDATE configuration
SET configuration_description = CONCAT(configuration_description,"<br /> ",configuration_key)
WHERE configuration_description NOT LIKE CONCAT("%<br /> ",configuration_key);

as for your customer shop status, it is this constant:

define('CUSTOMERS_APPROVAL','1'); //Must login to browse

define('CUSTOMERS_APPROVAL','0'); //customer login not required
17 Jul 2007, 12:02 PM
#134
jvoce avatar

jvoce

New Zenner

Join Date:
Jul 2006
Location:
Toronto, ON
Posts:
87
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Gerome,

Thanks a lot for your help. You're a genius!:smartalec:

19 Jul 2007, 11:00 PM
#136
marknew avatar

marknew

Zen Follower

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

Re: MultiSite Module Support Thread

I have set up one of my multistores in a subdirctory
http://www.crochetta.com.au/retailer/

Multisite is working but it's not finding the template images, it's looking for
http://www.crochetta.com.au/includes/templates/template_default/images/logo.gif
when it should be
http://www.crochetta.com.auretailer/includes/templates/template_default/images/logo.gif
does anyone know where i fix this and will i have the same problem with product images? I guess it's in the config or conig_sites ?
Thanks
M

20 Jul 2007, 6:57 AM
#137
loop4ever avatar

loop4ever

New Zenner

Join Date:
Apr 2006
Posts:
18
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Hi,

Thanks to Gerome! This sounded like the one I was looking for! I had tried to install it on my test site and was out of luck.

I am trying to have

  1. keep only ONE copy of zencart
  2. many subdomains say sub1.domain.com (at public_html/sub1), sub2.domain.com (at public_html/sub2)...
  3. customer can access from http://sub1.domain.com or from http://www.domain.com/sub1 too
  4. different payto accounts and shipping sources when customer orders (based on the site name)
  5. SSL need to work for every subdomains when checkout and login.
  6. the copy of zencart is under public_html/store (this can be move up to public_html)

I know nothing about Apache. My host plan is very basic (share server) with one dedicated IP. I have the SSL which is https://www.domain.com. I cannot access to httpd.conf file. The support team of my web host co has added three subdomains to CName for me. But I still don't know how to make it to work. I have Apache 1.3.37, php 4.4.4., and mySQL 4.0.27-standard.

Can anyone help? Many many many thanks.

loop4ever

**loop4ever

360square.com**
Display & Sell Your Artwork for Free
Buy Directly from Artists

20 Jul 2007, 8:13 AM
#138
gerome avatar

gerome

Zen Follower

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

Re: MultiSite Module Support Thread

streetglow,

thank you a lot for participating to the development of this module. I planed to make a new release, I will try to go though your code and see if I can integrate it within the new version of multisite.

marknew,

you have to add that somewhere in your config:

define('DIR_WS_CATALOG','/retailer/');
define('DIR_WS_HTTPS_CATALOG','/retailer/');

loop4ever,

  1. keeping one copy of zen-cart will make your life easier, however, this module also work with a duplicate zen-carts. The problem will be that any modification will have to be done twice and images uploading too.

  2. As for the subdomain, sometimes, if you activate the "wildcard" and if you have a dedicatede server, you can make the subdomain and the main domain going to the same folder. If you don't know how to do that, ask your hosts.

  3. Well, make sure they don't; you can redirect it with htaccess.

  4. you can ovewrite the constant for the account in your config file, or, if you want to make it cleaner, you can duplicate your payment module and overwrite the ENABLE constant for each module. It can sound complicate but it is not.

  5. you can have different SSL on the same server, only if your server have more than one IP address (one IP for each SSL).
    You can also get a common SSL but it can have issues with the cookies... Google checkout can work for multiple shops with only one SSL (use only SSL for the callback).

When this module allow you to have manage different sites with the same zen-cart, you still have to configurate it yourself... I had to write more int the help file, but I really don't have time right now, since I almost have enough time to try to release the new version this week-end...

Hope it helps,

Gerome.

20 Jul 2007, 10:10 AM
#139
streetglow avatar

streetglow

New Zenner

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

Re: MultiSite Module Support Thread

According to the issue configurating every site, with this tiny code you can configurate it.

How does it work?

  1. Fill in the details of your account.
  2. Load the page, you will see all configurations.
  3. Open "domain.ext_config.php" which can be found under "shop/includes/config_sites/"
  4. Copy everything you see in the textarea and paste it in the file you openend in step 3. (yes, you can literally paste it)
  5. Modify the details, easiest way is trying to search what you want to change, and then change it in what you want.
<textarea cols=100 rows=100>
<?php

$host = 'localhost';
$user = '';
$pass = '';
$db = '';
mysql_connect($host,$user,$pass);
mysql_select_db($db);

$query = mysql_query("SELECT configuration_key, configuration_value, configuration_title FROM configuration");
while ($zen_conf_sel    =       mysql_fetch_assoc($query)) {
        echo 'define(\''.$zen_conf_sel['configuration_key'].'\',\''.$zen_conf_sel['configuration_value'].'\');
';
        }

?>
</textarea>

Can't be done easier, right?

20 Jul 2007, 3:51 PM
#140
gerome avatar

gerome

Zen Follower

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

Re: MultiSite Module Support Thread

I love it, that's really cleaver streetglow.
I adapted it to go in the admin section.

See the zip file...

It should also be included in the next release Hopefully :)

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

Thanks again !

Gerome.