Zen Cart Logo
Forums / Basic Configuration / Description showing on each product listing page...

Description showing on each product listing page...

Locked

Views: 895

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
24 Jul 2010, 8:26 AM
#1
moelicious200 avatar

moelicious200

New Zenner

Join Date:
May 2008
Posts:
19
Plugin Contributions:
0

Description showing on each product listing page...

Hello,

On my product listing page i have the description on top.
http://mitchellbrands.com/index.php?main_page=index&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

24 Jul 2010, 1:42 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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:

        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>' : '') ;
        }