Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Tennessee
    Posts
    1,128
    Plugin Contributions
    0

    Default Missing category description

    When there is only one product in a category, its category description is not shown. How can I force it to show?

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Missing category description

    Do you have your site set to go directly to the product info page if there is only one product in a category?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Jan 2005
    Location
    Tennessee
    Posts
    1,128
    Plugin Contributions
    0

    Default Re: Missing category description

    Kim, I will try and answer your question in the morning. In the mean time this is what I did to fix this issue.

    Code:
    <?php
    /**
     * Module Template
     *
     * @package templateSystem
     * @copyright Copyright 2003-2007 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: tpl_modules_category_icon_display.php 6216 2007-04-17 06:09:57Z ajeh $
     * modifyed to include the $current_categories_description 2009-05-17 (stagebrace)
     */
    require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_CATEGORY_ICON_DISPLAY));
    $current_categories_description = "";
    // categories_description
    $sql = "SELECT categories_description
            FROM " . TABLE_CATEGORIES_DESCRIPTION . "
            WHERE categories_id= :categoriesID
            AND language_id = :languagesID";
    
    $sql = $db->bindVars($sql, ':categoriesID', $current_category_id, 'integer');
    $sql = $db->bindVars($sql, ':languagesID', $_SESSION['languages_id'], 'integer');
    $categories_description_lookup = $db->Execute($sql);
    if ($categories_description_lookup->RecordCount() > 0) {
      $current_categories_description = $categories_description_lookup->fields['categories_description'];
    }
    
    ?>
    
    <div align="<?php echo $align; ?>" id="categoryIcon" class="categoryIcon"><?php echo '<a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . $_GET['cPath'], 'NONSSL') . '">' . $category_icon_display_image .  '</a>';echo $current_categories_description ?></div><br>

  4. #4
    Join Date
    Jan 2005
    Location
    Tennessee
    Posts
    1,128
    Plugin Contributions
    0

    Default Re: Missing category description

    Do you have your site set to go directly to the product info page if there is only one product in a category?
    Where in admin is this set?

 

 

Similar Threads

  1. v151 Top Category Description Missing
    By Solartist in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 3 Oct 2014, 04:22 PM
  2. Category Description Missing in Firefox
    By p3rryman in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 28 Sep 2011, 11:45 AM
  3. Changing Sub Category Font Size found under Category Description
    By Market with a G in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 3 May 2011, 10:44 PM
  4. Category description missing when products are added
    By inestine in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 26 Oct 2010, 08:43 PM
  5. Add a product description deletes category description
    By dartmoorcf in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 15 Feb 2010, 08:36 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