Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Hide price for featured products

Hide price for featured products

Locked

Views: 1,793

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
10 Jan 2007, 11:23 PM
#1
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Hide price for featured products

Hello

My homepage is here, I have re renamed the featured Products to Hot Products!

For the Hot Products! (Featured Products) I would like to hide the price.

I tried to do this in Configuration > Featured Listing > Display product Price and setting to 0, but it didn't work.

Can anyone let me know how i do this via admin, or which file to edit?

Thanks

12 Jan 2007, 3:56 PM
#2
lib99 avatar

lib99

Totally Zenned

Join Date:
Dec 2004
Location:
New York, USA
Posts:
965
Plugin Contributions:
0

Re: Hide price for featured products

I don't believe there is price ON/OFF admin control for the featured products module that appears in the center of the main index page.

However, make a template override copy of file
includes/modules/featured_products.php
to:
includes/modules/YOUR_TEMPLATE_DIR/

Then with a text editor, open the copied file and look for line #54 (v1.3.6). You'll see ```
'text' => (($featured_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $featured_products->fields['products_image'], $featured_products->fields['products_name'], IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH, IMAGE_FEATURED_PRODUCTS_LISTING_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '">' . $featured_products->fields['products_name'] . '</a><br />' . $products_price);


At the end remove EXACTLY this part```
 . $products_price

Price will no longer display.