1) Yes, the customers' table is the same for all the shops, it means that any account is the smae between the two. However, the basket is also shared, it means that you can actually buy products from the two shops in the same order. It can be quite handy for some shops but maybe not for others.
2) Here again, it is technically possible, but it would make some problems with the common cart. Somebody could add to cart on one shop and then pay on a different shop. I guess that this could be solved by changing the table of the session to a different one so the cart of customers won't be common between shops, but this is something I have never tried yet, so it is not guarantee to work. Appart from that, it is technically possible to have different payment module for the different shop.
A good solution of this problem would be to have different shipping in function of the categories of the products. In this way, the shipping would be equitable no matter on which shop it has been payed.
3) sams for that, it could be done by checking that alll the products of a cart are from the "free shipping categories". Then you can facturate free shipping for the cart... The problem would come when you say that the same products would be either free shipping and charged for shipping on two different sites. I is possible but look a bit strange to me...
Hi, this looks like a great mod, just what i need. I have set the multi sites up on two subdomains and the tamplate side of things works but only one site is filtering the categories. The other shows all active catogories. any ideas anyone?
I have added <!--agents.newmediastudio-retail.newmediastudio--> to Action category description only.
This one works OK
http://www.agents.newmediastudio.com.au/
This one should only show "action' catogory, but it shows both available categories.
http://www.retail.newmediastudio.com.au/
First I want to congratulate you on a job well done!! "Job" because you put A LOT of work into this, "Well" because the code looks clean and doesn't require tons of core changes and "Done" because you actually made it to a finished mod!
I have my test sites up and running, but the only problem seems to be that the template isn't being chosen based on which site you're at. I can still choose the template from within the admin and that is the actual template that appears at BOTH sites. Catorization is working but I just can't get the templates to "stick."
Here are my sites: http://testsite.onlinecatholicstore.com and http://testsite2.onlinecatholicstore.com
Here's the content of my testsite.onlinecatholicstore.com_config.php
And the content of testsite2.onlinecatholicstore.com_config.phpCode:<?php define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); $template_dir = "testsite"; define('SITE_NAME','testsite.onlinecatholicstore.com'); ?>
And, of course, I've included site_switch.php at the top of my configure.php file.Code:<?php define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); $template_dir = "testsite2"; define('SITE_NAME','testsite2.onlinecatholicstore.com'); ?>
Any idea what's going on? I appreciate anything you can do...I've hit a brick wall
Thanks,
Patti
You have to make sure that you have this file:
includes/init_includes/overrides/init_templates.php
The only change of this file is to comment the part where the $template_dir is defined from the database. in this way, template_dir of the config file will be the one used.
Code:/* * Determine the active template name */ /* $template_dir = ""; $sql = "select template_dir from " . TABLE_TEMPLATE_SELECT . " where template_language = 0"; $template_query = $db->Execute($sql); $template_dir = $template_query->fields['template_dir']; $sql = "select template_dir from " . TABLE_TEMPLATE_SELECT . " where template_language = '" . $_SESSION['languages_id'] . "'"; $template_query = $db->Execute($sql); if ($template_query->RecordCount() > 0) { $template_dir = $template_query->fields['template_dir']; } */
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
Gerome- Thank you so much for your help. Yep, for some reason that file was missing.
We currently have both sites running in test and everything is testing out well. We did have a little question about the favicon: Where does the favicon file need to be located for each of the sites?
P.S. We plan on implementing this with our 10 current sites and probably more in the future. We'll let you know how it goes...
Thanks,
Patti
Last edited by pfabrick; 21 Jun 2007 at 01:44 AM. Reason: signature
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
Bookmarks