Zero(s) padding for price tags
-
Just upgraded to Cart66-lite 1.5.1.2, product price tags seemed to have taken a shorter form, eg $29.9 instead of $29.90 (assuming Decimals set to 2 at Cart66 Settings > Main).
It can be traced to currencyMarkup function in models/Cart66Common.php:
$postDecimal = isset($decimalBreak[1]) ? $decimalBreak[1] : '';
Could it be revised slightly? Eg
$postDecimal = str_pad(isset($decimalBreak[1]) ? $decimalBreak[1] : '', $decimal, '0');
Appreciate the folks working behind the scene. Merry Christmas~
https://www.ads-software.com/extend/plugins/cart66-lite/
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Zero(s) padding for price tags’ is closed to new replies.