Forums / Templates, Stylesheets, Page Layout / Removing minimum/maximum text from product listing pages

Removing minimum/maximum text from product listing pages

Locked

Views: 1,868

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
20 Jul 2006, 6:53 AM
#1
lemuria avatar

lemuria

New Zenner

Join Date:
Aug 2005
Posts:
59
Plugin Contributions:
0

Removing minimum/maximum text from product listing pages

Hi, I want my product listing pages to stop showing whether there is a minimum/maximum order under the price. The product info page should have this information, but not the listings.

I see a place in the admin to turn off the price on the listings pages, which also turns off the minimum text. However, I would like to continue showing the price.

20 Jul 2006, 4:10 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Removing minimum/maximum text from product listing pages

If you were to copy the:
/includes/modules/product_listing.php

to your templates and overrides directory:
/includes/modules/your_template_dir/product_listing.php

Then edit that file and find around line 134 or so:

        $the_button = $lc_button;
        $products_link = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';
        $lc_text .= '<br />' . zen_get_buy_now_button($listing->fields['products_id'], $the_button, $products_link) . '<br />' . zen_get_products_quantity_min_units_display($listing->fields['products_id']);
        $lc_text .= '<br />' . (zen_get_show_product_switch($listing->fields['products_id'], 'ALWAYS_FREE_SHIPPING_IMAGE_SWITCH') ? (zen_get_product_is_always_free_shipping($listing->fields['products_id']) ? TEXT_PRODUCT_FREE_SHIPPING_ICON . '<br />' : '') : '');

That builds the final display ...

Alter it to suit your needs ...

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!