Results 1 to 2 of 2
  1. #1
    Join Date
    May 2008
    Posts
    19
    Plugin Contributions
    0

    Default Description showing on each product listing page...

    Hello,

    On my product listing page i have the description on top.
    http://mitchellbrands.com/index.php?...ex&cPath=31_36

    when you click page 2, the description still shows.

    How can i set it up so that the description only shows on the first page of product listing????

    Thank you

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Description showing on each product listing page...

    You could customize the product_listing.php module with your templates and overrides and change under the code to:
    Code:
            if (isset($_GET['manufacturers_id'])) {
              $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>' . ($_GET['page'] <=1 ? '<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>' : '') ;
            } else {
              $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>' . ($_GET['page'] <=1 ? '<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>' : '') ;
            }
    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!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Attributes in description when showing product listing
    By vojtechjan in forum General Questions
    Replies: 4
    Last Post: 7 Feb 2014, 02:28 PM
  2. v139h Have Category description and product listing next to each other
    By bravo14 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Mar 2012, 03:55 PM
  3. Product listing page - spacing within each box
    By cupcake in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 2 Mar 2011, 11:21 PM
  4. Add custom images to each category on the product listing page?
    By immersive in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 8 Jul 2009, 03:29 PM
  5. Replies: 3
    Last Post: 30 Jun 2008, 04:57 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