Guest Posted July 2, 2005 Posted July 2, 2005 I am setting up a oscomerce site for a butcher shop and all their prices are per pound. Can someone help me figure out how to add /lb after each price listing to show users that the price listed means per pound? So product prices show like this: Big Steak 7.29 /lb
Guest Posted July 2, 2005 Posted July 2, 2005 In catalog/includes/modules/product_listing.php change the price display to: ? ? ? ? ?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'])) . '/lb</span> '; ? ? ? ? ? ?} else { ? ? ? ? ? ? ?$lc_text = ' ' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '/lb '; ? ? ? ? ? ?} ? ? ? ? ? ?break; and in product_info.php change it to: ? ? ? ? ? ?<td class="pageHeading" align="right" valign="top"><?php echo $products_price . '/lb'; ?></td> Thats a start - you will need to do similar in the new products module and special box, new_products.php specials.php..... :-P Matti
Recommended Posts
Archived
This topic is now archived and is closed to further replies.