Sharing is helping.

We offer you this space to share your knowledge about Magento and learn from our experienced customers.


    Home Forums "How do I" questions Price Rounding Bug in 1.6

    This topic contains 1 reply, has 2 voices, and was last updated by  Anonymous 4 years, 7 months ago.

    Viewing 2 posts - 1 through 2 (of 2 total)
    • Author
      Posts
    • #5610

      Anonymous

      Hi,

      Some of you might have a price rounding issue with your display price (as below) but this is not a theme issue it is a tax related bug in Magento 1.6 due to ’rounding’.

      All our products prices end in .95 and all product prices show correctly in the homepage slider but on the product grid page and product detail page some products are displaying as .94? The products in question only have one number after the currency symbol and before the decimal but when we change the price to two numbers before the decimal (£7.95 to £14.95) the price displays with the correct pence. Below is how we fixed the issue.

      Around line: ~805 in /app/code/core/Mage/Core/Model/Store.php

      BUG –

      return round($price, 2);

      FIX -

      return round($price, 4);

      Hope this helps!

      #5611

      Anonymous

      Thanks very much Darren, this will help others.

      Cheers!

    Viewing 2 posts - 1 through 2 (of 2 total)
    Reply To: Price Rounding Bug in 1.6
    Your information:





    <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">