Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need help next to adding /lb next to price


Guest

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...