Another quick add-on is to display
savings in amount and percentage value. You could use the MSRP contribution or if you want a quick way out you could just play a bit with listing code and do it
without adding another query and burdening your server!!!
You just have to update the specials table...run a query or add individual specials for various items. I actually made a 5% reduction on all my products_price. So
now we have two prices for all products....the regular price and specials price. The specials is also listed by default in almost all oscommerce pages which display prices. So only thing you need to do is add another line to display the SAVINGS
EXAMPLE
QUOTE
<span class="productSpecialPrice">You Save: </span></td><td class="smalltext"><span class="productSpecialPrice">' . $currencies->display_price(($listing['products_price'] - $listing['specials_new_products_price']), tep_get_tax_rate($listing['products_tax_class_id'])) . ' (' . ceil((($listing['products_price'] - $listing['specials_new_products_price']) / $listing['products_price']) * 100) . '%)
I am posting just a example. This is from product_listing in includes/modules.....please do remember different files have different queries so you have to make sure you match these.
QUOTE
case 'PRODUCT_LIST_PRICE':
$lc_align = 'right';
if (tep_not_null($listing['specials_new_products_price'])) {
$lc_text = ' <s>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span> ';
} else {
$lc_text = ' ' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' ';
}
break;
see and compare:
QUOTE
case 'PRODUCT_LIST_PRICE':
$lc_align = 'right';
if (tep_not_null($listing['specials_new_products_price'])) {
/* $lc_text = ' <s>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span> '; */
$lc_text = '<table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td class="smalltext">Wholesale Price:</td><td class="smalltext"><s>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s></td></tr><tr><td class="smalltext">Our Special Price:</td><td class="smalltext">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</td></tr><tr><td class="smalltext"><span class="productSpecialPrice">You Save: </span></td><td class="smalltext"><span class="productSpecialPrice">' . $currencies->display_price(($listing['products_price'] - $listing['specials_new_products_price']), tep_get_tax_rate($listing['products_tax_class_id'])) . ' (' . ceil((($listing['products_price'] - $listing['specials_new_products_price']) / $listing['products_price']) * 100) . '%)</span></td></tr></table>';
} else {
$lc_text = ' ' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' ';
}
break;
Just use a bit of commonsense and this should be easy to implement wherever it can be and wherever you want it to be:)