Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2007
    Posts
    23
    Plugin Contributions
    0

    Default Expanded Category List - Products List not showing Linked Products

    Hello,

    This mod is great, but I have one problem. I have linked products all over my store. Linked products won't show under the other categories they are assigned to. They will only show under the category that they are originally assigned to. Can anyone please help me with this?

    http://www.zen-cart.com/index.php?ma...roducts_id=392
    Last edited by reden; 17 Jan 2008 at 08:46 PM.

  2. #2
    Join Date
    Dec 2007
    Posts
    23
    Plugin Contributions
    0

    Default Re: Expanded Category List - Products List not showing Linked Products

    I'm sure it has something to do with the class file "category_ist.php" included with the sidebox mod in this code:

    PHP Code:
    function build_products($category_id$category_link$level){
            global 
    $languages_id$db;
            
    $box_categories_array = & $this->box_category_array;
            
    $icount = & $this->icount;
            
    $products_query "SELECT "TABLE_PRODUCTS .".products_id, products_name 
                FROM "
    TABLE_PRODUCTS.
                INNER JOIN "
    TABLE_PRODUCTS_DESCRIPTION .
                    ON "
    TABLE_PRODUCTS .".products_id = "TABLE_PRODUCTS_DESCRIPTION .".products_id 
                WHERE ((("
    TABLE_PRODUCTS_DESCRIPTION .".language_id)=". (int)$_SESSION['languages_id'] .") 
                    AND (("
    TABLE_PRODUCTS .".master_categories_id)="$category_id ."))
                ORDER BY "
    TABLE_PRODUCTS .".products_sort_order, "TABLE_PRODUCTS_DESCRIPTION .".products_name";
            
    $products $db->Execute($products_query);
            if (!
    $products->EOF){
                while (!
    $products->EOF){        
                    
    $box_categories_array[$icount]['count'] = ;
                    
    $box_categories_array[$icount]['level']=$level;
                    
    $box_categories_array[$icount]['top']='false';
                    
    $box_categories_array[$icount]['is_product']=true;
                    
    $box_categories_array[$icount]['has_sub_cat'] = false;
                    
    $box_categories_array[$icount]['name']=$products->fields['products_name'];
                    
    $box_categories_array[$icount]['path']= 'cPath=' $category_link ."&products_id=".$products->fields['products_id'] ;
                    
    $box_categories_array[$icount]['products_id']=$products->fields['products_id'] ;
                    
    //this doesn't work :(
                    
    if ($products->fields['products_id'] == $products_id){
                        
    $box_categories_array[$icount]['current']=true;
                    }else{
                        
    $box_categories_array[$icount]['current']=false;
                    }
                    
    $products->MoveNext();
                    
    $icount++;
                }  
            }
            return 
    $result;
        }    
        
        function 
    build_list() {
            return 
    $this->build_branch($this->root_category_id);
        } 

 

 

Similar Threads

  1. Expanded Category List - don't show products
    By airtime in forum Addon Sideboxes
    Replies: 10
    Last Post: 3 Mar 2011, 05:49 PM
  2. Expanded Category List is showing Hidden Product
    By khopek in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 18 Apr 2010, 06:43 AM
  3. Expanded Category List - Need to turn off products!
    By magneteye in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 12 Mar 2009, 02:42 AM
  4. Expanded Category List - make it a page and not a sidebox
    By bradymc in forum Addon Sideboxes
    Replies: 11
    Last Post: 16 Feb 2008, 05:23 AM
  5. Expanded Category List not working
    By julieoolie in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 5 Feb 2008, 05:11 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR