Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2011
    Posts
    224
    Plugin Contributions
    0

    Default Remove product listing product description for certain category

    Hi

    I want to remove the product listing's product description for a specific category. Is there a way to achieve this?

    Thanks for the help
    S

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,696
    Plugin Contributions
    6

    Default Re: Remove product listing product description for certain category

    Using youre templates and overrides you could customize the:
    /includes/modules/product_listing.php

    and change the code, for example to exclude the products_description for master_categories_id 10, use:
    Code:
            case 'PRODUCT_LIST_NAME':
            $lc_align = '';
    //        $lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id'] > 0) ?  zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>';
            $lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id'] > 0) ?  zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3>' . ($listing->fields['master_categories_id'] != 10 ? '<div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>' : '');
            break;
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 

Similar Threads

  1. Remove Product listing Product Description, and replace with stock info
    By SethF in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 30 Jan 2012, 10:27 PM
  2. Category description at top of product listing page
    By Jgall in forum Customization from the Admin
    Replies: 4
    Last Post: 17 Jan 2012, 02:56 PM
  3. Hide product listing description by category
    By simon1066 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 2 Jan 2012, 10:53 AM
  4. Add Category Name to Product Listing above description
    By preacherman in forum Templates, Stylesheets, Page Layout
    Replies: 26
    Last Post: 18 May 2011, 02:07 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
  •