My client has a bunch of products that he does not want to sell online, he the customers to CALL FOR PRICING.
Yes,yes...I think this is very cheesey...but what to do? Anyway those products that he wants them to call about have a $0 price.
I found the code in the product_listing.php module that displays the prices:
case 'PRODUCT_LIST_PRICE':
$lc_align = 'right';
if (tep_not_null($listing['specials_new_products_price'])) {
$lc_text = '&nbsp;<s>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s>&nbsp;&nbsp;<span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span>&nbsp;';
} else {
$lc_text = '&nbsp;' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '&nbsp;';
}
break;
I'm not quite sure how to add this logic, but this is what I want to do:
IF PRODUCTS_PRICE = $0
THEN DISPLAY "CALL FOR PRICING'
Is that possible to do here? Is this the right place to add this code?
THANKS!




LinkBack URL
About LinkBacks






Bookmarks