@all,
Hello,
running 1.3.8a (12112007)
The multisite module seems to be the one that will meet the needs of this client:
Briefly -
One online store with 3 basic areas:
A) Books which can be discounted to members at 10% and shipping costs calculated based on number of books.
B) Craft items which can be discounted to members at 20% and should be shipped based on price.
C) Food items which are again discounted to members at 15% and are shipped based on weight.
The members get a discount, non-members obviously don't. People should be able to have items from all three stores in the cart at one time.
First of all, do you think that multisite mod will take care of these needs? Next:
Searching for an answer about how to tackle this and came upon this module, and installed it, but is not working. Something in the config files is missing or I have misunderstood something very basic. Am not completely uninitiated at hacking base code, but am not a php whiz by any stretch of the imagination. I can follow directions, if they are clear.
The problem seems to be for me at least that there is very little help, or very difficult to find searching through the posts about the very basic setup of the subdomains/folders, etc.
The config_sites folder contains two example files, one named "2fastshoes.com_config.php" and another "www.example.com_config.php"
I am wondering, do we need 2 files for each domain, in the case we are accepting calls from both http://www.shop.mydomain.com and http://shop.mydomain.com (without www)? And, should both the files contain exactly the same thing?
Next question: exactly what needs to go in there for it to work at all? Unfortunately, I don't know exactly how to formulate my questions, because I don't know what I have done wrong.
I followed the directions as best I could, replaced all the to-replace files, added all the to-add files, put the extra line (include...) in the main config and added 3 new templates (apple_zen_A, apple_zen_B -changing all the folder names of course, so they don't overwrite each other etc.), then made 3 new domains in the control panel of the server called:
books.mydomain.com
food.mydomain.com
crafts.mydomain.com
(Added the order_site column to the db table etc. and did all the other steps, too.)
Then (and this is what is not covered anywhere I can find) put a 301 redirect (using .htaccess - apache mod_rewrite) in the root folder of the above sites, sending the domain calls to the zen app located at:
mydomain.com/folder/zenappfolder/
Now. I am assuming it has to work like this, but the multisite mod is not calling the new templates and there are no products showing in the categories, even though the html comments were added to all 165 cats/subcats descriptions. (maybe will try it with double -- instead of single - in the comment, but not sure why that should make any difference). Obviously, the app is not doing its job, so something has gone awry. What I am getting is the zen app in the base folder with the old standard template, but without any products showing up.
Have spent some hours searching this forum and not sure what to try next. I can't afford to sit and read all 114 pages at this point. If this works (if someone can help), will try to document this in an easy way that beginners might understand and post it here, so that people don't have to wonder, because as it is, the page at medea website does not seem to offer this basic pre-setup info, which is essential to some of us. Magnus Wester made an attempt (in 2007) at making a "this mod for dummies" help file, but even that did not answer these questions for me and have not seen since then if anyone has solved this in a simple way. Please point me straight if I have overlooked the obvious. Searching with keywords has not helped here.
I think I must be missing something basic about the config file. So, here is an example.
Code:
<?php
define('SITE_NAME','BOOKS');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
$template_dir = "apple_zen_B";
define('HTTP_SERVER', 'http://www.mydomain.com');
define('HTTPS_SERVER', 'https://books.mydomain.com');
define('CATEGORIES_ROOT','1'); //root categories is 1 for this site
?>
The above goes in two files, one called "www.books.mydomain.com_config.php" and one called "books.mydomain.com_config.php".
Did the same for 2 more domains (food and crafts). Total of six config files in my sites_config folder. Have not yet tackled how to approach the shipping mods and discounts yet, that has to still be sorted out, once the basic setup works.
Very grateful if anyone has any help for us.
Thanks in advance
Gargi
Bookmarks