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 21 to 40 of 2,247
28 Apr 2007, 3:41 PM
#21
shopyoungway avatar

shopyoungway

New Zenner

Join Date:
Jul 2005
Posts:
53
Plugin Contributions:
0

MultiSite Module Support Thread

ok so i have everything up and a test product now i have added a couple other mods, which overrite nothing, and applezen as a template....but can not see the category i have setup (yes i did set it up correctly) can not click on the top tab and go to my account was wondering if someone could help me take a look at this and see what i did wrong.
https://www.shopyouungway.com

28 Apr 2007, 11:34 PM
#22
shopyoungway avatar

shopyoungway

New Zenner

Join Date:
Jul 2005
Posts:
53
Plugin Contributions:
0

Re: MultiSite Module Support Thread

scratch that it was a bug in the template had to redo

29 Apr 2007, 3:18 AM
#23
lebrand2006 avatar

lebrand2006

Zen Follower

Join Date:
Apr 2006
Location:
City Drama in Greece
Posts:
158
Plugin Contributions:
3

Re: MultiSite Module Support Thread

shopyoungway:

one question what would be conflicting between the IH handler and multisite i can install multisite on aclean install of zen and login and signup works, and visa versa on the IH everything works, but combining the two and something happens i can sign up or sign in. anyone else run into this?

I had installed the Image Handler, before try multisite.

Even before multisite, I had problems with java.

Well, I tried multisite; I think this is not the philosophy of Zen Cart.

The main idea should be :

http://www.caravaning.gr/index.php?main_page=product_info&cPath=66_87&products_id=196

The above site is using tabs, a very nice module but with some bugs.

So, as for the main domain, there should be a specific tab to drop down a list of all the other stores that want to sell a specific product.

There should be a new record in configuration, having to do with stores id.

Then another modification in attributes, for any store owner to list all products and decide witch products to shell.

And many many other changes, in templates and conditions procedures.

But...the main idea is that someone who wants to open a brand new store, he could create a special account in the main store; this way he could take a new store id and create his administration area, different from the main store.

There could be a way for zen, when some one creates a special account ( a new store with the same data base ) [new store owner could provide a special number up to 6 charachters] to create new fields in nedeed tables WHERE fields name would be the store owner AND fields value the special number.

I know there should be MANY MANY changes, to many files but this way you make a base store with thousands of products and give someone the chance to make his own store, select products from database, and even add his own products to the same database, without other store owners can use them.

ZEN CART is a chameleon and many things has to be done, but I think it is very important all users should help the community.

Charis Chrisochoou
Drama - Greece

29 Apr 2007, 3:57 AM
#24
lebrand2006 avatar

lebrand2006

Zen Follower

Join Date:
Apr 2006
Location:
City Drama in Greece
Posts:
158
Plugin Contributions:
3

Re: MultiSite Module Support Thread

Gerome:

Can't you change to folder location of the electronics.youngwaypc.com website so it points to the same folder than your first shop ?

If you can, do that. If not, copy the folder of your first shop to your 2nd shop and it will work (but it will be twice more complicated...)

I tried with 2 subdomains but did not work, maybe because I used a redirection script.

The base domain is http://www.caravaning.gr

First subdomain is http://test1.caravaning.gr

Second subdomain is http://test2.caravaning.gr

In the root of the two subdomains I placed and index.html with the following content

In the header :

<head> <script> redirTime="1000"; redirURL="http://www.caravaning.gr"; function redirTimer() {self.setTimeout ("self.location.href=redirURL;",redirTime);} </script> </head>

In the body :

<body onLoad="redirTimer()">

This way, I have redirection but not pointing and the system doew not work.

I will try to copy all the content of the base site to the other (except admin) to see what happens.

I would not like [at least for the specific site] changes to the template.

I would like to appear a drop down list > for example here:http://www.caravaning.gr/index.php?main_page=product_info&cPath=66_87&products_id=196 of other store owners, in a tab, instead of using the site link side box.

Another new idea is that there could be an option in admin where administrator could select the registered users and what they can sell !

Just so simple ! And then my good friend who made the tabbed lite module would have some work to do, to make some modifications !

This way, when admin sets on the special tab for "store owners" , they will be listed in this tab automatically, depending on if or not the administrator choosed them to shell the specific product !

Then a buyer can choose from the list, the store he wants to buy the product, and at the end every "store owner" (always admin included) gets an email for the order. Mails should be splitted, so every "store owner" gets in his email only the products who concern him.

This could be usefull for a wholesaller, to include all customers in the base shop, and ask them what they want to shell !

Good idea !

Not so difficult he ?

Charis Chrisochoou
Drama - Greece

30 Apr 2007, 8:58 AM
#25
gerome avatar

gerome

Zen Follower

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

Re: MultiSite Module Support Thread

Hi Charis,

All you said is interresting, but allowing people to create their shop would be something much difficult to do, mainly for reason of security

Multisite Mudule has be made in the purpose of allowing one group of people to make multiple websites from the same zen-cart install; but teir is only one admin section and you definitly need to access FTP in order to settup correctly your templates and the sites' configuration. It would be much harder to make specifique admin sections for each shop; and the product/categories could be in conflict too ... Of course, it is possible to do. I could do it if someone would pay for it. Since, so far, nobody donated for the Multisite Module, you have to understand that I won't work for free for ever ...

As for your redirections;

You don't have to redirect with html or javascript.
Instead of that, you can either rewrite the urls using the .htaccess or create virtual host that are in the "point" or "target" the same folder where your zen-cart install is. It is easy to do it with apache (as I saw that you are using apache ...)
You can find some information about .htaccess rewriting and virtual server buy googling it (as it is a common thing with apache).

A drop down list should be very easy to do with the site_link sidebox by just changing the template of it and making a drop down template.

Hope this helps,

Gerome.

30 Apr 2007, 1:12 PM
#26
shopyoungway avatar

shopyoungway

New Zenner

Join Date:
Jul 2005
Posts:
53
Plugin Contributions:
0

Re: MultiSite Module Support Thread

one i would like to add to above is also to do redirects just have you sys admin turn on wildcard dns this will allow you to create sub domains, etc. and it will work better.

1 May 2007, 12:36 AM
#27
lebrand2006 avatar

lebrand2006

Zen Follower

Join Date:
Apr 2006
Location:
City Drama in Greece
Posts:
158
Plugin Contributions:
3

Re: MultiSite Module Support Thread

My friend Gerome,

thank you for your reply. Also i have to thank my friend Young.

You know, here in Greece ( not all of us !!! ) call eachother "friend", so I hope you do not mind if I call you My friend !!

Well, I think I can manage configure an .htaccess ; I found hundreds of sites with directions and examples.

As I understand, MultiSite is a very very good idea, but it is not complete; or I better say with not completed instructions.

I understand your hard work, but in my oppinion I would prefer that Zen Cart developers ( or even those who have some ideas but can not actual code , like me [new in PHP but understand how it works] ) would act as a team, as a community.

A team is allways stronger, everybody knows that. I know there are hundreds that just visit the site, take the code and bye-bye. In my first opportunity, when my economics are better, I would like to donate at least 150 euros, to zen cart team. Even to you, when you belong to that team.

We should not forget to thank all those who participate in this community, because without them, this would just be a common web site.

All those Zen Cart users, who hard test everything they find here, even they do not ( or they do not think to ) donate. Because even this way, zen cart is working as a team.

With my little English, it is very hard to expres what I want to say; forgive me for that.

Well, everybody here is searching to find something he needs for his site or his client's site.

And everybody is searching for someone to help him. It would just be more easier if there where teams to develop and teams to hard test.

It is hard to believe that something like that could happen in Greece (!!!) but it can easily happen on internet, especialy here in this community.

So, I wanted to say that I found this module here and I tried to test it. I wrote some ideas without asking from someone to help me or make my ideas code for zen cart.

I managed to make a site with the feature of subscription, asking help in this forum, but understanding that here it is not a site that some others work for you to make money. Somebody helped me a lot, giving me the basic instructions.

In the end ( knowing just a little PHP ) I managed to make some good modifications, understanding better how zen cart works, and taking advantage of some of it's features, so I made a site working with subscriptions without creating a module, or how you want to call it. And when I write full instructions I will post it here(in downloads).

Maybe, some developers, find some good ideas, or they write a new module.

For now, I do not have the time to study so much, to write more complicated code to "produce" a module.

So, this way I give a specific idea, and somebody else who can produce a module maybe write it and post it or keep it for himself.

Anyway, what I did works well, even it is based on modifications and I want to share it with all the community.


I just have one question for multisites.

Lets say that I use site links. What I see is that all links keep the same SiD. As for session id there are some configurations in admin->configuration->sessions, that one of them has to do with session recreation; should this be set to false ?

Hope to hear from all of you soon

Best Regards

Charis Chrisochoou
Drama - Greece

1 May 2007, 1:24 AM
#28
qsg28 avatar

qsg28

New Zenner

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

Re: MultiSite Module Support Thread

Hi,

I haven't installed this module yet, but I would like to know whether we can have 2 different shipping locations? site 1 for US location and site 2 for Canada.

By having 2 shipping location, I can have Canada Post module for Canada and USPS module for USA.

Currently,I have 1 site with 2 ZenCart installation with 2 separate database.

Thank you,

Felix

1 May 2007, 1:36 AM
#29
lebrand2006 avatar

lebrand2006

Zen Follower

Join Date:
Apr 2006
Location:
City Drama in Greece
Posts:
158
Plugin Contributions:
3

Re: MultiSite Module Support Thread

shopyoungway:

one i would like to add to above is also to do redirects just have you sys admin turn on wildcard dns this will allow you to create sub domains, etc. and it will work better.

I can create subdomains. But what did you do ? Did you copied any files in the subdomain or configured an .htaccess file ?

Thanks

Charis Chrisochoou
Drama - Greece

1 May 2007, 6:05 AM
#30
lebrand2006 avatar

lebrand2006

Zen Follower

Join Date:
Apr 2006
Location:
City Drama in Greece
Posts:
158
Plugin Contributions:
3

Re: MultiSite Module Support Thread

[QUOTE=Gerome;363685]
Otherwise, it can be a problem; David didn't manage to have the two domain pointing to the same folder, so he had to duplicate the files.
QUOTE]

Well, knowing that I can not manage my subdomains, what files should I duplicate to make multisite work ?

Thanks

Charis Chrisochoou
Drama - Greece

1 May 2007, 8:19 AM
#31
gerome avatar

gerome

Zen Follower

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

Re: MultiSite Module Support Thread

I just have one question for multisites.

Lets say that I use site links. What I see is that all links keep the same SiD. As for session id there are some configurations in admin->configuration->sessions, that one of them has to do with session recreation; should this be set to false ?
Nice speech Felix. I understand your point of view...

Never try to change it. Why do you ask this question ? is that because the site links don't work ?

The file:
includes\init_includes\overrides\init_sessions.php
gives the priority to the SiD parameter instead of the cookie for the session creation... This is how the site_links works, by keeping the same session through this link. I did it because the cookies are made for one domain, therefore, the 2nd site can't read a cookie of the first site.

Hi,
I haven't installed this module yet, but I would like to know whether we can have 2 different shipping locations? site 1 for US location and site 2 for Canada.
By having 2 shipping location, I can have Canada Post module for Canada and USPS module for USA.
Currently,I have 1 site with 2 ZenCart installation with 2 separate database.

Thank you,

Felix

Yes, you can override the shipping configuration from the config file of a site (folder "config_sites")

However, I think that you can also specify a shipping in Zencart that is relevent of the country of the customers. In this way, the shipping to US and to Canada will work to both of your sites.

Well, knowing that I can not manage my subdomains, what files should I duplicate to make multisite work ?
You have to duplicate the whole folder of your shop.
Also, you have to think of changing the site location from the config file of each shop ...
define('DIR_FS_CATALOG', '.....

2 May 2007, 11:33 AM
#32
lebrand2006 avatar

lebrand2006

Zen Follower

Join Date:
Apr 2006
Location:
City Drama in Greece
Posts:
158
Plugin Contributions:
3

Re: MultiSite Module Support Thread

You have to duplicate the whole folder of your shop.
Also, you have to think of changing the site location from the config file of each shop ...
define('DIR_FS_CATALOG', '.....

Thank you for your information.

But what about DIR_WS_CATALOG ?

Don't I have to configure this define also ?

As about "admin" folder, is there any need to duplicate it too ?

Is there any way to use the same "images" folder ?
Because if there are some hundreds of images this would be very usefull.

Thanks

Charis Chrisochoou
Drama - Greece

2 May 2007, 12:42 PM
#33
gerome avatar

gerome

Zen Follower

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

Re: MultiSite Module Support Thread

you can find DIR_WS_CATALOG in your includes/configure.php. you will have to change it if you shop is located in a different folder (as it represents th location of your shop on the server)

I am afraid that I don't know anyway of using the images from another server. The problem is that Zen-Cart need to access the images from the serverside (to check the size and the presence of the images) and also from internet via URL.

you could maybe make a script that will update one folder image with another ...
Or you could change of server and get one that allows you to have 2 domains targeting the same folder.

You only need one admin folder in one of your shops.

4 May 2007, 7:34 PM
#34
reza avatar

reza

Zen Follower

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

Re: MultiSite Module Support Thread

hi

finally my sites work good, the problem (if it's a problem) is that filter function doesn't work on the category css flyout (provided by Dr. byte, or header css flyout in apple zen template), so all categories are shown in the category flyout sidebox of the site that has not been selected by <!--site1--> description site selector,
any idea, how can I resolve this problem? please
2- still I am waiting about the changes in order.php in regard to last patch provided for zen1.3.7 in last week? I didn't upgrade untill you answer gerome.

4 May 2007, 7:43 PM
#35
reza avatar

reza

Zen Follower

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

Re: MultiSite Module Support Thread

i should add this paragraph to the above message too:

3- this problem becomes harder when you are using ajax yahootree category sidebox, so it doesn't show any categoris at all? is there any idea to solve this problem as the ajax contribution for big sites (at least for main shop that may show all categories) is very primordial the normal category box.

5 May 2007, 5:23 PM
#36
reza avatar

reza

Zen Follower

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

Re: MultiSite Module Support Thread

Gerome:

I tested and it worked well.

New version Beta 0.3 compatible with XSS Vulnerability fix now available

Hi Gerome
please, pleeaaaaaaaaaaase, let the old beta versions on the .../dev liks to remain.
why? because otherwise it's very difficult for us to know if there is a new patch etc. I found accidently that a " Now Compatible with XSS Vulnerability fix " has replaced the old one.
I really don't want to miss this contribution just for fotgetting to check above link.
I have a log file and every changes I write to know if some later we have to rechange something again.
automatically everybody will understand that the new version number or new date addes is the last fixed version, just it let us to not do a mistake.
thanks

6 May 2007, 4:52 PM
#37
xtrapsp avatar

xtrapsp

New Zenner

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

Re: MultiSite Module Support Thread

I have just installed the multistore module to a fresh install of zencart, all works but the side bars/boxes have disapeared ... any ideas what I might have done wrong?

I have already tried turning them back on with no effect taking place.

8 May 2007, 8:06 AM
#38
gerome avatar

gerome

Zen Follower

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

Re: MultiSite Module Support Thread

reza:

Hi Gerome
please, pleeaaaaaaaaaaase, let the old beta versions on the .../dev liks to remain.
why? because otherwise it's very difficult for us to know if there is a new patch etc. I found accidently that a " Now Compatible with XSS Vulnerability fix " has replaced the old one.
I really don't want to miss this contribution just for fotgetting to check above link.
I have a log file and every changes I write to know if some later we have to rechange something again.
automatically everybody will understand that the new version number or new date addes is the last fixed version, just it let us to not do a mistake.
thanks

You are right, from now, I'll add the version number to the file released. sorry about that.

a previous version is still available on the zen-cart download section:
http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_47&products_id=563

9 May 2007, 9:12 AM
#39
gerome avatar

gerome

Zen Follower

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

Re: MultiSite Module Support Thread

xtrapsp:

I have just installed the multistore module to a fresh install of zencart, all works but the side bars/boxes have disapeared ... any ideas what I might have done wrong?

I have already tried turning them back on with no effect taking place.

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.

:lamo:

9 May 2007, 4:03 PM
#40
divaboutiques avatar

divaboutiques

Zen Follower

Join Date:
Feb 2007
Location:
Worldwide Web
Posts:
191
Plugin Contributions:
0

Re: MultiSite Module Support Thread

Hello Zenners-

Where do you do in the admin to switch to different sites, i'm trying to find the different file in admin and can't locate them.

Diva Boutiques
www.divaboutiques.com