I was having trouble with the config_sites files as stated in the intsall instructions.
I actually made TWO site_config files and that made it work (somehow).
YOURDOMAIN.com_config.php
www.YOURDOMAIN.com_config.php
Printable View
I was having trouble with the config_sites files as stated in the intsall instructions.
I actually made TWO site_config files and that made it work (somehow).
YOURDOMAIN.com_config.php
www.YOURDOMAIN.com_config.php
:flex: I have a question, when I try use multisite links 3 webs with one cart,the shopper have to login for each website,is there any way only login one time?:unsure:
Thanks you for attention and I am waitting for reply!
Ok, I believe that I've solved the issue with linked products showing up more than once. Here is what you need to do:
/includes/classes/split_page_results.php
Find:
Replace:Code:function splitPageResults($query, $max_rows, $count_key = '*', $page_holder = 'page', $debug = false) {
Code:function splitPageResults($query, $max_rows, $count_key = 'p.products_id', $page_holder = 'page', $debug = false) {
/includes/modules/pages/featured_products/header_php.php
(and pages/product_all, and pages/product_new)
Find the first SELECT statement. Add the word DISTINCT right after the SELECT.
This works for me, YMMV. Backup stuff first!
So I needed add support for ssl and wanted to have all of the store domains goto one main domain.
I did search a bit but didn't find too much besides getting a wildcard certificate.
I did found that in sites_switch.php if you update HTTPS_SERVER to your ssl domain like:
it seems to work using just the the one domain.Quote:
//The order for this site will be seen for ORDER_SITE from the admin section
define('ORDER_SITE',SITE_NAME);
define('HTTP_SERVER', "http://$default_server_name");
define('HTTPS_SERVER', "https://ssl.domain.com");
So just seeing if there are any know problems with doing this. Thanks!
Although this sounds exactly like what I want to do, it doesn't work on anything other than the main domain. After going to ssl.domain.com, it just goes to the main domain when it goes back to http://
But if you come up with something which works...
I'm also trying to do this. I want the payment gateway to come from the same sub-domain no matter which store you come from, since my gateway charges me for each sub-domain he supports.
If I solve this, I'll post back...
Have been trying to get multisite working for 2 days now.
After all this time, when I click "online cataloge' I get an error message that says my site doesn't exist.
I am not a programming genius as a matter of fact not really good at all.
Can somebody please tell me what I am doing wrong as I really want to use this mod. I really makes sense for what I am doing.
thanks for any help
Johnny
the site is www.zencart-programming.info if that will help
but....yet....... you........ have a domain that is zencart programming. :rotflmao:
2 words for ya
config files
I thank you for your gracious reply.
It always helps when you know "we're all in this together".
I will go over my config files again, that is where I have had my problems and still don't know what is wrong.
Although I will point out, that after reading 60 plus pages on this forum, I don't feel too bad for trying to get some help, for I am not the only one who has had problems trying to figure out how to make this module work.
The concept is of multi site is very good, just a little hard for some of us to figure out on out own.
Hi again,
OK I managed to get mine the way I wanted. Tell me if it's what you wanted to do, or if anyone else is interested in this.
Motivation: My CC charges me a flat monthly fee (+ percentage of course) for every https:// site I ask him to approve. Since I have several stores, I would have to, pay him extra for each one.
Note: All my domains are sub-domains of the main domain. i.e. www.domain.tld, store1.domain.tld, store2.domain.tld, etc.
Solution: Added some lines of code to checkout process to see if the transaction is originating from the main site. If not, remember which sub-domain it came from -> switch to the main site -> process -> switch back to the sub-domain.
If anyone is interested, it's generic code provided you use the main domain/sub-domain approach. I wouldn't want to do it any other way, since it would be a security risk if it worked for just any domain.
Here's the doctored header_php file for checkout_process. Comments welcome!
<?php
/**
* Checkout Process Page
*
* @package page
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: header_php.php 4276 2006-08-26 03:18:28Z drbyte $
*/
// Added by Dov Zamir on 6/4/2009 - saves the original sub-domain and goes to the main site for procssing
if (isset($_SESSION['been_here'])) {
$server_name=$_SERVER['SERVER_NAME'];
$len=(strlen($server_name));
$domain=substr($server_name,strpos($server_name,'.'),$len);
$origin='www'.$domain;
if ($server_name != $origin) {
zen_redirect('https://www'.$domain.'/index.php?main_page=checkout_process');
$_SESSION['been_here']=1;
}
}
// End of addition
// This should be first line of the script:
$zco_notifier->notify('NOTIFY_HEADER_START_CHECKOUT_PROCESS');
require(DIR_WS_MODULES . zen_get_module_directory('checkout_process.php'));
// load the after_process function from the payment modules
$payment_modules->after_process();
$_SESSION['cart']->reset(true);
// unregister session variables used during checkout
unset($_SESSION['sendto']);
unset($_SESSION['billto']);
unset($_SESSION['shipping']);
unset($_SESSION['payment']);
unset($_SESSION['comments']);
$order_total_modules->clear_posts();//ICW ADDED FOR CREDIT CLASS SYSTEM
// This should be before the zen_redirect:
$zco_notifier->notify('NOTIFY_HEADER_END_CHECKOUT_PROCESS');
// Changed by Dov Zamir - 6/4/2009 - Return to original site after processing.
if (isset($_SESSION['been_here'])) {
unset($_SESSION['been_here']);
zen_redirect('https://'.$server_name.'/index.php?main_page=checkout_success');
}
else {
zen_redirect(zen_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL')); }
require(DIR_WS_INCLUDES . 'application_bottom.php');
?>
This fix worked GREAT on the customer side. It put the subdomain in so the links in the email perfectly.
Problem comes when I try and get into my order section through admin. This is the error I get:
Parse error: syntax error, unexpected T_CASE in /home/actforms/public_html/cart/admin/orders.php on line 176
I suck at php, so any ideas??