Results 1 to 10 of 67

Threaded View

  1. #39
    Join Date
    Apr 2005
    Location
    Louny, Czech Republic
    Posts
    51
    Plugin Contributions
    1

    Default Re: Multi-Site Module...

    Hi Breeze,

    I have question about linked products. Your code from post http://www.zen-cart.com/forum/showpo...4&postcount=58 not working.
    You have
    Code:
    if ($str_pos_p2c!==false) {
    but from post by Lenny is

    Code:
    if ($str_pos_p2c!=true) {
    and without error.

    Is good this in file catalog/includes/functions/extra_functions/cat_filter.php?

    around line 15 replace
    Code:
    $str_pos_products = strpos($sql_lower,TABLE_PRODUCTS . ' p');
    with
    Code:
    $str_pos_products = strpos($sql_lower,TABLE_PRODUCTS . ' p');
    $str_pos_p2c = strpos($sql_lower,TABLE_PRODUCTS_TO_CATEGORIES . ' p2c');
    around line 91 replace
    Code:
    $sql = substr($sql,0,$add_pos).
    				" INNER JOIN ".TABLE_CATEGORIES_DESCRIPTION." cd
    	  			ON (p.master_categories_id = cd.categories_id
    	  			AND cd.language_id=".$_SESSION['languages_id']."
    	  			AND cd.categories_description LIKE '%-".SITE_NAME."-%') ".
    				substr($sql,$add_pos);
    with:
    Code:
    if ($str_pos_p2c!=true) {
    
             $sql = substr($sql,0,$add_pos).
                                   " INNER JOIN ".TABLE_PRODUCTS_TO_CATEGORIES." p2c ON (p2c.products_id=p.products_id)
                                   INNER JOIN ".TABLE_CATEGORIES_DESCRIPTION." cd
                                   ON (p2c.categories_id = cd.categories_id
                                   AND cd.language_id=".$_SESSION['languages_id']."
                                   AND cd.categories_description LIKE '%-".SITE_NAME."-%') ".
                                   substr($sql,$add_pos);
             } else {
             $sql = substr($sql,0,$add_pos).
                                   " INNER JOIN ".TABLE_CATEGORIES_DESCRIPTION." cd
                                   ON (p.master_categories_id = cd.categories_id
                                   AND cd.language_id=".$_SESSION['languages_id']."
                                   AND cd.categories_description LIKE '%-".SITE_NAME."-%') ".
                                   substr($sql,$add_pos);  
             }
    !!!!! or with !!!!!
    Code:
    if ($str_pos_p2c!==false) {
    	        		$sql = substr($sql,0,$add_pos). 
    				" INNER JOIN ".TABLE_CATEGORIES_DESCRIPTION." cd
    				ON (p2c.categories_id = cd.categories_id
    				AND cd.language_id=".$_SESSION['languages_id']."
    				AND cd.categories_description LIKE '%-".SITE_NAME."-%') ".
    				substr($sql,$add_pos);
    	 } else { 
    				$sql = substr($sql,0,$add_pos).
    				" INNER JOIN ".TABLE_CATEGORIES_DESCRIPTION." cd
    				ON (p.master_categories_id = cd.categories_id
    				AND cd.language_id=".$_SESSION['languages_id']."
    				AND cd.categories_description LIKE '%-".SITE_NAME."-%') ".
    				substr($sql,$add_pos);
    	 }
    Work this patch?
    Last edited by ryska; 14 Jul 2008 at 08:54 PM.
    JardaR

 

 

Similar Threads

  1. Best Place For Multi-Site module Support?
    By bcannon007 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 24 May 2012, 08:02 PM
  2. No domain found - using multi-site module
    By maperr55 in forum All Other Contributions/Addons
    Replies: 15
    Last Post: 13 Jun 2011, 04:31 PM
  3. Multi-Site Module
    By VASTMAN in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 3 Apr 2009, 05:27 AM
  4. Multi Site Module
    By eaxpdt in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 1 Aug 2008, 10:56 PM
  5. Multi-Site Module Beta Release !
    By Gerome in forum All Other Contributions/Addons
    Replies: 26
    Last Post: 25 Apr 2007, 09:37 AM

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