Forums / Templates, Stylesheets, Page Layout / Removing price and product name from Featured Products

Removing price and product name from Featured Products

Locked

Started by jackalneo on 3 May 2008, 12:03 AM · Views: 2,411

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
3 May 2008, 12:03 AM
#1
jackalneo avatar

jackalneo

New Zenner

Join Date:
Apr 2008
Posts:
3
Plugin Contributions:
0

Removing price and product name from Featured Products

Hey there,

I found another post about this, but the problem was never resolved. I need a way to remove both the product name and price from Featured Products on my index.

Check out the site here...
http://www.neonsaint.com/catalog

There appears to be an option for this in the Admin panel, but it isn't functional. Maybe I'm doing something wrong? What files should I modify by hand?

Any help is greatly appreciated. Thanks!

5 May 2008, 6:10 AM
#2
jackalneo avatar

jackalneo

New Zenner

Join Date:
Apr 2008
Posts:
3
Plugin Contributions:
0

Re: Removing price and product name from Featured Products

Figured it out.... Here's the answer for anyone else experiencing the same problem.

Modify Line 54 of includes/modules/classic/featured_products.php from

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

to

'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']) . '">' . '</a>');

Cheers.

30 Jun 2008, 2:32 AM
#3
renz avatar

renz

Zen Follower

Join Date:
Jun 2006
Posts:
439
Plugin Contributions:
0

Re: Removing price and product name from Featured Products

I have been trying to find a way of removing the price from the featured products and came across your post remove this part of the code (. $products_price);) from the includes/modules/my_template/featured_products.php however it seems to make no difference to the display of the featured product "price" I then realised that this is for the centre box, is there a similar way of removing the "price" from the side box featured product. Any help would be greatly appreciated.

Many Thanks
Renz

3 Dec 2010, 5:32 AM
#4
sathishbabu80 avatar

sathishbabu80

New Zenner

Join Date:
Nov 2010
Posts:
1
Plugin Contributions:
0

Re: Removing price and product name from Featured Products

This is not working for my website. Anyone please help me.