Results 1 to 10 of 16

Threaded View

  1. #6
    Join Date
    Oct 2010
    Posts
    84
    Plugin Contributions
    2

    Default Re: Migrated site to Zen 1.5 and having a small issue.

    Still can't get to the bottom of this. Trying to work my way through the code but can't figure it out. When I create a category I get the correct information in the database. Categories & Categories_description are populated with the correct information and nothing is different to anything else. Then I allocate a couple of products and the product exists in the database with no information missing but still if I allocate the product to a new created category the products are not shown.

    What makes me think maybe a template issue or something ?. Does anyone know where to look for code relating to how the product list is being generated ? I've used the developers tools included to search and found this but I can't see how it wouldn't function.

    Code:
    // Construct a category path to the product
    // TABLES: products_to_categories
      function zen_get_product_path($products_id) {
        global $db;
        $cPath = '';
    
        $category_query = "select p.products_id, p.master_categories_id
                           from " . TABLE_PRODUCTS . " p
                           where p.products_id = '" . (int)$products_id . "' limit 1";
    
    
        $category = $db->Execute($category_query);
    
        if ($category->RecordCount() > 0) {
    
          $categories = array();
          zen_get_parent_categories($categories, $category->fields['master_categories_id']);
    
          $categories = array_reverse($categories);
    
          $cPath = implode('_', $categories);
    
          if (zen_not_null($cPath)) $cPath .= '_';
          $cPath .= $category->fields['master_categories_id'];
        }
    
        return $cPath;
      }
    
    ////
    If I search using DTK through the template files I see loads of references so was just wondering if someone knows what files responsible for generating the list of products ? Zen cart is huge nowa days
    Last edited by drgr33n; 22 Sep 2015 at 12:32 PM.

 

 

Similar Threads

  1. Replies: 4
    Last Post: 31 Jul 2013, 07:51 PM
  2. Having small EZpages issue. Please Help.
    By Coffinwear in forum General Questions
    Replies: 4
    Last Post: 28 Jul 2010, 02:41 PM
  3. An issue with Showing Top Categories AND Sub-categories
    By autoace in forum Customization from the Admin
    Replies: 0
    Last Post: 15 Sep 2009, 09:13 PM
  4. Migrated database and files... having trouble
    By hunterw in forum Installing on a Linux/Unix Server
    Replies: 32
    Last Post: 12 Jul 2008, 07:10 PM
  5. New here - Having an issue with header and sidebox
    By shelshell in forum Basic Configuration
    Replies: 0
    Last Post: 2 Jan 2008, 07:20 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