New Zenner
- Join Date:
- Mar 2005
- Location:
- UK
- Posts:
- 38
- Plugin Contributions:
- 0
Mod to Grid Layout product display page
I'm trying to mod the product_listing.php so that all products with priced attributes will have "from" before the price within the grid listing product display. I think I can do it using a conditional If statement and I thought I would use the zen_has_product_attributes_values($products_id) variable that seems to be set to true if the case is met. Can't seem to get it to work as I'm not sure how to compare the value. Not a programmer so may be getting a little confused. Need something along the lines of:
if (zen_has_product_attributes_values($products_id) =="true") {
$lc_price = 'from ' . zen_get_products_display_price($listing->fields['products_id']) . '';
} else {
$lc_price = zen_get_products_display_price($listing->fields['products_id']) . '';
}
(zen_has_product_attributes_values($products_id) = true) is obviously wrong so if someone can steer me in the right direction it would be much appreciated.