1

I have setup a shopping cart price rule of 10%. If I add a product value 33.95 in the cart and apply that rule, it shows discount of 3.40 which is suppose to be 3.39. I am assuming its rounding up to 2 digit and may be needs changing to 3 digit (I'm assuming this) but don't know where to make this change.

Hum
  • 531
  • 2
  • 12
  • 30

1 Answers1

2

Welcome to the world of rounding errors in Magento.

Usually, it is not a cause for major concern, as the cart total is correct; but the row level items are calculated wrong. This also effects the admin order display and invoice PDFs.

Different versions have different rounding bugs, there isn't a fix in the strictest sense, we just patch them as we go along.

Ben Lessani
  • 2,141
  • 14
  • 16
  • Fair enough. I'm using version 1.5. I have fixed the grand total. In my case its showing subtotal: 33.95, discount: -3.40, Grand Total: 30.56. But can't get around to fix discount calculation (which should be 3.39). – Hum Mar 17 '12 at 16:57