Thanks Linda!! Sorry for not thinking about doing a search myself.
However, I have a further question.
In the thread linked above, I saw a modification for includes/modules/product_listing.php, to do the "As low as:" thing. Worked great. However, it did this to all products, not just the ones with qty discounts.
So, I tried to modify the code a little - so that if the product doesn't have discount, the "As low as:" text won't show.
Thing is, it doesn't work - I ALWAYS get the "As low as" text no matter what....
Could you please take a look at the code below and tell me what went wrong??
(I know this is not very optimized... just want to know the principle)
Thanks!
PHP Code:
case 'PRODUCT_LIST_PRICE': //MODIFIED BY ME
$lc_baseprice = zen_get_products_display_price($listing->fields['products_id']);
$lc_baseprice = number_format($lc_baseprice, 2);
$lc_discprice = zen_get_products_discount_price_qty((int)$listing->fields['products_id'],20000);
$lc_discprice = number_format($lc_discprice, 2);
if ($lc_baseprice != $lc_discprice) {
$lc_price = $lc_discprice;
$lc_text='As low as: <b>$' . $lc_price . '</b><br/>';
} else {
$lc_price = $lc_baseprice;
$lc_text='<b>$' . $lc_price . '</b><br/>';
}
Bookmarks