Shopping cart - Tax calculation incorrect rounding error

Cuong Nguyen asked on February 24, 2015 10:09

Hi, Im working in shopping cart back end. I make new manual order, i have a problem with tax,plz look image error:

Image Text

It has automatic rounding incorrect.

Plz give me something to fix it.


Recent Answers

Petar Kozjak answered on February 24, 2015 13:14


not sure what you want to do. But rounding can be setup in E-commerce > Store configuration > Currency. Check Currency formatting string and Decimal places. Try using {0:F} for format and 3 decimal places.

Here is more info about formatting:

0 votesVote for this answer Mark as a Correct answer

Cuong Nguyen answered on February 25, 2015 04:09

Hi Petar Kozjak,

The first say thanks.

I tried your solution ,but it not working, and my requirement is the Decimal places must be fixed as 2.

Please help me.

Thank you.

0 votesVote for this answer Mark as a Correct answer

Josef Dvorak answered on March 23, 2015 17:28

Hi Coung,

What is the value that you are expecting after the rounding? What tax is being applied?

Kentico rounds the values during cart evaluation so that the value shown on the output, like Unit price or Item tax, match the cart total when added up. If you would like to avoid this, and make the output rounding of these values independent of the cart total, set the Decimal places to 3 or more. This does not influence formatting of the prices on the output the customer sees, it only signifies how many places should the price be rounded to internally.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.