31
How-to questions / Re: Is there any way for tax to be included in product price?
« on: October 11, 2023, 12:13:01 PM »
One thing that must be reconsidered in the include tax in the pricing is how the product page calculates if the quantity is more than one and displays on the checkout page. Currently the algorithm used in core code is simply to multiply the price inc tax by the quantity. But this introduces a rounding error of .01
And if there is more than one item , the difference can even be larger.
A demo product of Skinsheen is 29.50 , tax is 8.5%
Price incl tax is 32.01
Currently - the product page and the checkout page with show 96.03 for a qty or 3
32.01 X 3 = 96.03
But the correct amount is 96.02 for qty
(29.50 x 3) x 1.085 = 96.02
Refer to the screen shot for more information as pricing is displayed to customers at checkout - it is confusing for customers. And somewhat problematic when pushing info to an invoicing processor like Moloni for Portuguese clients, as it introduces the .01 difference , if the core coding wasn’t re-written for the Moloni push (which is what we had to do for our Moloni extension)
Additionally, in Nuno's desire to round to even numbers with the INCL tax pricing - the base price needs to have more than 2 decimals or the rounding can make the difference even larger.
And if there is more than one item , the difference can even be larger.
A demo product of Skinsheen is 29.50 , tax is 8.5%
Price incl tax is 32.01
Currently - the product page and the checkout page with show 96.03 for a qty or 3
32.01 X 3 = 96.03
But the correct amount is 96.02 for qty
(29.50 x 3) x 1.085 = 96.02
Refer to the screen shot for more information as pricing is displayed to customers at checkout - it is confusing for customers. And somewhat problematic when pushing info to an invoicing processor like Moloni for Portuguese clients, as it introduces the .01 difference , if the core coding wasn’t re-written for the Moloni push (which is what we had to do for our Moloni extension)
Additionally, in Nuno's desire to round to even numbers with the INCL tax pricing - the base price needs to have more than 2 decimals or the rounding can make the difference even larger.