Shopping Cart and leading zeros issue |
Showing prices brings internationalization aspect to be solved. But if you are sure that you would work with dollars only, some quick helper functions could be applied.
File: price_helper.php Code: <?php defined('BASEPATH') OR exit('No direct script access allowed'); Testing: Code: echo price_format('5').' USD'; |
Messages In This Thread |
Shopping Cart and leading zeros issue - by castle - 03-10-2017, 12:08 AM
RE: Shopping Cart and leading zeros issue - by InsiteFX - 03-10-2017, 04:37 AM
RE: Shopping Cart and leading zeros issue - by PaulD - 03-10-2017, 01:33 PM
RE: Shopping Cart and leading zeros issue - by ivantcholakov - 03-10-2017, 07:34 PM
RE: Shopping Cart and leading zeros issue - by castle - 03-11-2017, 02:20 AM
|