Community Add-Ons
| Maintainers: | spooks |
Display Selected Decimal Places
for osCommerce Online Merchant v2.2
Sometimes you don`t want to display the price with the set number of decimal places.
This modification allows you to select how many places to display.
I`ve also included a function to check if a value would be incorreect if displayed as such so it can be displayed correctly.
IE with places set to 0, 70.00 will display as £70, but 50.49 will display as £50.49
I`ve made this backward compatible, so if you don't make changes to a call it will be un-effected.
For Oscommerce 2.2rc1
Created new function so now where-ever you want the price option you only need to replace: $currencies->display_price( with: $currencies->display_short_price(
and I`ve created an SQL so you can set the displayed places in Admin (Product Listing)
Full Package
