Support » Plugins and Hacks » Cart66 Lite – Product page not displaying 2 decimals

  • Our product pages were displaying the price as $28.5 instead of $28.50. Settings all checked and selected to display two decimal points.

    This fix overrides the admin settings, but I always want to show 2 decimals in the price, so I don’t care.

    Here’s the fix:

    Change line 6 – change
    $priceString = $data['price'];
    $priceString = number_format($data['price'], 2, '.', '');

  • The topic ‘Cart66 Lite – Product page not displaying 2 decimals’ is closed to new replies.