First Question is there any one that I can pay to set this up for me? Second - if not. When I set up the second shop it needs to connect to the data base of the first shop Right? Then I load the multi site mod in to the first site and the second.
First Question is there any one that I can pay to set this up for me? Second - if not. When I set up the second shop it needs to connect to the data base of the first shop Right? Then I load the multi site mod in to the first site and the second.
Here is how it works....
It uses the override directories for the templates. Create a new theme or duplicate the themes you want to use. You need a config file for each site. The main sites config will use all the data from the normal Zen Cart config files and database. The second sites config will only contain the things you want different on the second site. From then on the individual theme override directory will be used for each site. You can make changes in the overrides and they will be reflected in just that site.
I am going to be out this evening but if you need help you can call or Skype me tomorrow.
Steve
1054 Unknown column 'CATEGORIES_ROOT' in 'where clause'
in:
[select cd.categories_name from categories c, categories_description cd where cd.categories_description LIKE '%-SITE_NAME-%' AND cd.language_id=1 AND c.parent_id = CATEGORIES_ROOT and c.categories_id = cd.categories_id and cd.language_id='1' and c.categories_status=1]
Having trouble with this and understanding the directions about www.site1.com_config.php file name it won't save to my computer and I actually want to set it up for on my local system first and there is no www. there even if the file did save.
Hope this is making some sense.
C.
I would be interested if anyone could help me set this up also.
You need to save two files (Or more if you have more multi sites) in the includes/config_sites folder. The files name should be the actual site address not including the http:// and with _config.php after it. For example http://store.example.com would be named store.example.com_config.php
In that file you will set up whatever is different from the default site.
In the admin under multisite tools you can select "display configuration for a new site" and it will give you the default values for the config file. Just cut and paste the entire thing into your new config and uncomment out the lines you need to change.
The categories root problem is that you have to define what category you want the second (third, etc.) cart to start in. Go into your categories and look at the id# and use that in the config file.
Last edited by fotofx; 31 Oct 2008 at 01:29 AM.
I would like to know if there is a possibility to use the great addon using domain.com/customername and then reroute it to the main shopping cart domain.com/shopsystem?
I do not want to use the domain method as i will have to register domain names and also ssl certificates for each customer which uses my cart....
Any ideas?? Thank you
![]()
This may sound kinda dumb but I could not find in here and I read over the install on the Multi site.
So if I want to have 2 sites like store1.example.com and store2.example.com then I need to load zencart to both sites right? Then they both need to link to the same data base right? then I load up the files that came in the multi site download - now do I load them up to both sites or just the one that I want to be the control site? and if I want to add more sites to this later one how do I do it?
NO.....
OK, Both domains must point to the same site. When you request a site from the server, host headers are included in the request. This is how the server would normally decide what site to serve up. Similar to a shared hosting setup, one IP address but the host header tells the server what site to send.
Both domains will point to the same site. When the site begins to load, the config file for that site is loaded (store1.example.com_config.php and store2.example.com_config.php). If there is a line in there that overrides the database config then the override is loaded, otherwise the database configuration is used. At the least you would need the following in each file.
You will notice in the above example I have https turned off (commented out)PHP Code:
$template_dir = "store1";
define('SITE_NAME','store1');
define('HTTP_SERVER', 'http://store1.example.com);
//define('HTTPS_SERVER', 'https://store1.example.com);
define('CATEGORIES_ROOT','0'); //root categories is 0 for this site
define('ENABLE_SSL', 'false');
Also the root category of 0 is the default but it could be any category.
You can override anything in the config database this way. Just create two different templates and don't forget to also create separate language files where applicable..
Steve
Just to add one more thing in case you are confused. If you own two domain names (abc.com & zyx.com) you could use "store" just like you would "www" by setting the DNS A Record for each domain to the same IP address. Then store.abc.com & store.zyx.com would actually be the same site.
Steve
So I load zen cart up to one site then point the other site to that one right? I will give it a go and see how it all works out. Then if I want to add another site to this then I just make another template and then add more to the config file? Also is this store1.example.com_config.php and store2.example.com_config.php all under one config.php or is there 2 different config files? if so where do the 2 go in the same area?
Bookmarks