Results 1 to 10 of 2247

Hybrid View

  1. #1
    Join Date
    Mar 2007
    Posts
    10
    Plugin Contributions
    0

    Default MultiSite Module Support Thread - Category Filter Problem

    Hi, apologies for posting but I've searched through virtually every post in this thread but can't seem to find an answer to my particualr problem.

    I'm running a new installation of ZC1.38 and have managed to get 3 sites working from a template and sub-domain point of view. These are:

    http://www.dominicanrepublicexcursions.com
    http://outbacksafari.dominicanrepublicexcursions.com
    http://hitchddr.dominicanrepublicexcursions.com

    But, even though I have set up the categories correctly with the <!--site name--> for each category I can only see the same category on ALL THREE SITES.

    In addtion I've had to disable the categories side box as I can only see the header of each site if this box is turned on.

    I'm sure theres some simple explanation to this, but its driving me mad :-)

    Any advice would be most appreciated....

    Many thanks in advance,

    Pete

  2. #2
    Join Date
    May 2008
    Posts
    13
    Plugin Contributions
    0

    Default Re: MultiSite Module Support Thread

    themes dont working when this sideboxes was on:
    sideboxes/whats_new.php
    sideboxes/featured.php

  3. #3
    Join Date
    Mar 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: MultiSite Module Support Thread - Category Filter Problem

    After another "wonderful" afternoon trying to get my head around this, I've actually found that each site_config file doesn't actually work, even though they are configured as per the instructions. I REALLY need a fresh pair of eyes to look at this guys........so if anyone feels like a challenge (and I'm sure it'll take someone apart 10 secs to resolve!), I'm happy to give someone admin access/ftp access etc and pay them for their time......its actually got to the stage where I simply need a small nudge in the right direction and I'll be fine........
    So if anyone wants to make a few bucks (payable via PayPal) PLEASE LET ME KNOW ASAP :-)
    Many thanks

  4. #4
    Join Date
    Oct 2007
    Location
    North Carolina
    Posts
    98
    Plugin Contributions
    0

    Default Re: MultiSite Module Support Thread - Category Filter Problem

    Quote Originally Posted by Shoreham1 View Post
    After another "wonderful" afternoon trying to get my head around this, I've actually found that each site_config file doesn't actually work, even though they are configured as per the instructions. I REALLY need a fresh pair of eyes to look at this guys........so if anyone feels like a challenge (and I'm sure it'll take someone apart 10 secs to resolve!), I'm happy to give someone admin access/ftp access etc and pay them for their time......its actually got to the stage where I simply need a small nudge in the right direction and I'll be fine........
    So if anyone wants to make a few bucks (payable via PayPal) PLEASE LET ME KNOW ASAP :-)
    Many thanks
    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

  5. #5
    Join Date
    Feb 2009
    Posts
    8
    Plugin Contributions
    0

    Default Re: MultiSite Module Support Thread

    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?
    Thanks you for attention and I am waitting for reply!

  6. #6
    Join Date
    Sep 2007
    Posts
    23
    Plugin Contributions
    0

    Default Re: MultiSite Module Support Thread

    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:

    Code:
    function splitPageResults($query, $max_rows, $count_key = '*', $page_holder = 'page', $debug = false) {
    Replace:

    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!

  7. #7
    Join Date
    Apr 2009
    Posts
    1
    Plugin Contributions
    0

    Default Re: MultiSite Module Support Thread

    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:
    //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");
    it seems to work using just the the one domain.

    So just seeing if there are any know problems with doing this. Thanks!

  8. #8
    Join Date
    Mar 2009
    Location
    Kibbutz Beit Kama, Israel
    Posts
    6
    Plugin Contributions
    0

    Default Re: MultiSite Module Support Thread

    Quote Originally Posted by matt2397 View Post
    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.

    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...

  9. #9
    Join Date
    Mar 2009
    Location
    Kibbutz Beit Kama, Israel
    Posts
    6
    Plugin Contributions
    0

    Default Re: MultiSite Module Support Thread

    Quote Originally Posted by matt2397 View Post
    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.

    So just seeing if there are any know problems with doing this. Thanks!
    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');

    ?>

  10. #10
    Join Date
    Oct 2004
    Location
    Surrey, BC, Canada
    Posts
    1,881
    Plugin Contributions
    2

    Default Re: MultiSite Module Support Thread

    Thank you RWerksman for that fix! It solved my problems!
    May God bless you,
    Iasmin

    Quote Originally Posted by RWerksman View Post
    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:

    Code:
    function splitPageResults($query, $max_rows, $count_key = '*', $page_holder = 'page', $debug = false) {
    Replace:

    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!

 

 

Similar Threads

  1. v154 WorldPay Module version 3.0 - Support thread
    By countrycharm in forum Addon Payment Modules
    Replies: 116
    Last Post: 31 Dec 2025, 11:36 AM
  2. Bambora/Beanstream Payment Module Support Thread
    By swguy in forum Addon Payment Modules
    Replies: 127
    Last Post: 26 Mar 2021, 04:13 PM
  3. WorldPay Module version 2.0 - Support thread
    By philip_clarke in forum Addon Payment Modules
    Replies: 729
    Last Post: 4 Nov 2017, 08:23 AM
  4. PC Configurator Module [Support Thread]
    By lebrand2006 in forum All Other Contributions/Addons
    Replies: 254
    Last Post: 22 Aug 2012, 03:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg