I never heard of that, is that a zen-cart feature that you find in the admin configuration ?
Printable View
If you execute this SQL query, you will see the constant name in the description of any settings from the admin config:
as for your customer shop status, it is this constant:Code:UPDATE configuration
SET configuration_description = CONCAT(configuration_description,"<br /> ",configuration_key)
WHERE configuration_description NOT LIKE CONCAT("%<br /> ",configuration_key);
PHP Code:
define('CUSTOMERS_APPROVAL','1'); //Must login to browse
define('CUSTOMERS_APPROVAL','0'); //customer login not required
Gerome,
Thanks a lot for your help. You're a genius!:smartalec:
I wrote an extension for your module, which allows you to specify a site for each product.
Any more requests?
Attachment 2319
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...mages/logo.gif
when it should be
http://www.crochetta.com.auretailer/...mages/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
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 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
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:
loop4ever,PHP Code:
define('DIR_WS_CATALOG','/retailer/');
define('DIR_WS_HTTPS_CATALOG','/retailer/');
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.
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.
Can't be done easier, right?PHP Code:
<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>
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.