Re: MultiSite Module Support Thread
Quote:
Originally Posted by
Chrome Orange
hi
this looks like a great mod, perfect for my needs but I have one question
how do I 'point' my domains?
What do I do DNS wise?
Lets say I have
site1.domain.com and site2.domain.com
what do I do in my dns to get site2 to work?
I've read this thread and the install stuff but I am not clear at all.
It's my server so I have full dns access but there are several other domains on the server all dong different things
Thanks
Andy
All you have to do is to settup your server in order to have http://site1.domain.com/index.php and http://site2.domain.com/index.php being the same file.
I know that the host configuration can be really different from one host to another, so you should better try to find that in the documentation of your host...
As for DNS, you only have to put the same IP address to the DNS site1.domain.com and site2.domain.com.
Re: MultiSite Module Support Thread
At the end of includes/languages/english/meta_tags.php, you will find this line:
Code:
define('FAVICON','favicon.ico');
You will certainly have to overide this file for your template like that:
In the file includes/languages/english/your_template/meta_tags.php
Code:
define('FAVICON','your_template.ico');
You can do that for every template you have since you are supose to use different template for each site...
Re: MultiSite Module Support Thread
Quote:
Originally Posted by
glemigh
Is there a sane way to deal with the SSL problem where SSL is used and on the primary domain, and not on the additional domains, and checkout must occure within the SSL under the primary domain?
George
SSL can be an issue, especially if you use the same IP for all your domain because SSL need an unique IP for each domains. It means that your server seting has to even more complicated...
Another solution can be to use common DNS for all the SLLs and to use a different subfolder in order to change them.
As for the MultiSite configuration, it requires a bit of extra code.
Just take the case of the use of www.secure-payment.com as DNS ...
includes/config_sites/www.secure-payment.com_config.php has to contain:
Code:
<?php
$location = explode('/',$_SERVER['REQUEST_URI']);
switch($location[1]) {
case 'site1':
include('includes/config_sites/www.site1.com_config.php');
break;
case 'site2':
include('includes/config_sites/www.site2.com_config.php');
break;
case 'site3':
include('includes/config_sites/www.site3.com_config.php');
break;
}
unset($location);
?>
Then in the config files of each site, you have to write:
Code:
define('DIR_WS_HTTPS_CATALOG','/site1/');
define('HTTPS_SERVER', "https://www.secure-payment.com");
Code to add in the beginning of .htaccess:
Code:
RewriteCond %{HTTP_HOST} ^www.secure-payment.com$
RewriteRule ^site1/(.*)$ /zencart_folder/$1 [L]
RewriteCond %{HTTP_HOST} ^www.secure-payment.com$
RewriteRule ^site2/(.*)$ /zencart_folder/$1 [L]
This will make the SLL of all your sites like:
https://www.secure-payment.com/site1/
https://www.secure-payment.com/site2/
Like that, you can get away with only one IP ! :)
Warning, be really careful with the cookies that and not cross-domain !
Hope this helps !
Re: MultiSite Module Support Thread
Quote:
All you have to do is to settup your server in order to have
http://site1.domain.com/index.php and
http://site2.domain.com/index.php being the same file.
I know that the host configuration can be really different from one host to another, so you should better try to find that in the documentation of your host...
As for DNS, you only have to put the same IP address to the DNS site1.domain.com and site2.domain.com.
could you perhaps show your method as an example?
Re: MultiSite Module Support Thread
Any details about your server configuration would help, like are you using a dedicated server, a dedicated server with virtual hosts, is there a control panel like plesk or cpanel? DNS / Hostname issues with Zen can be fixed with either Apache directives like mod_rewrite or just editing the apache configs, like the VirtualHost directives.
Re: MultiSite Module Support Thread
Quote:
Originally Posted by
Chrome Orange
could you perhaps show your method as an example?
Live shops that use Multisite Module:
www.bigdepot.co.uk
navnav.co.uk
by the way, if any of you have live shops that uses this module too, could you please let us know ?
Thanks.
Re: MultiSite Module Support Thread
Quick question Gerome,
When you go into the "Contact us" page, we get the same company name...no matter which site you're in. Is there a way to over ride this?
Thanks ~ this isn't a big enough deal so we're live now. Check it out at www.catholiclifebooks.onlinecatholicstore.com and www.onlinecatholicstore.com
We'll be adding another one of our sites in a few days...will let you know how it goes!
Thanks again for all your work!
Patti
Re: MultiSite Module Support Thread
Quote:
Originally Posted by
pfabrick
Quick question Gerome,
When you go into the "Contact us" page, we get the same company name...no matter which site you're in. Is there a way to over ride this?
Thanks ~ this isn't a big enough deal so we're live now. Check it out at
www.catholiclifebooks.onlinecatholicstore.com and
www.onlinecatholicstore.com
We'll be adding another one of our sites in a few days...will let you know how it goes!
Thanks again for all your work!
Patti
you can set the config of a specific shop by defining the constants in the yourshop_config.php file:
As for the contact page, you have to define these 3 constants:
Code:
define('STORE_NAME_ADDRESS','the address of the store');
define('CONTACT_US_LIST','contact1,contact2,...');
define('STORE_OWNER_EMAIL_ADDRESS','email@address.com');
I remind that if you are wondering what is the constant key of a configuration setting, this query will display the constant key at the end of all the description:
Code:
UPDATE configuration
SET configuration_description = CONCAT(configuration_description,"<br /> ",configuration_key)
WHERE configuration_description NOT LIKE CONCAT("%<br /> ",configuration_key);
Hope it helps !
Gerome.
Re: MultiSite Module Support Thread
Thank you Gerome - You have been most helpful!
I did have one more question regarding the SaleMaker function in ZenCart:
Can you use the Salemaker function and have different sales in different stores. For example, on Site1 I would like to offer a 10% discount on products in a certain category and on Site2 a 15% discount on the same category?
Thank you again for your help!
Patti
Re: MultiSite Module Support Thread
Quote:
Originally Posted by
Gerome
SSL can be an issue, especially if you use the same IP for all your domain because SSL need an unique IP for each domains. It means that your server seting has to even more complicated...
I fear the answer is not simple, and we are using Cpanel, so adding domains via the parking feature is easy, and setting up the multisite module is straight forward, but we have a domain with SSL on one IP, and the other domains are parked on it.
We wanted to process the orders for all the domains on the SSL site.
we have www.domain1.com, www.domain2.com etc, they are not sub domains or subdirectories under one domain, we have many carts, many domains and products related to the domain in which they reside with.
The only option that is starting to surface is to duplicate all the files in all the sites and maintain separate SSL certs and IP's for each site this making the multisite module a wasted effort since all files have to be copied to each site.
Ideas anyone?
Thanks in advance.
George