Magento tax rounding issue

前端 未结 2 480
别跟我提以往
别跟我提以往 2020-11-29 12:07

I got strange rounding issue for VAT in Magento. My product set up is * product price incl 20% VAT is 183.59

I added 30 items into basket and it would cost 30 * 183

2条回答
  •  暖寄归人
    2020-11-29 12:51

    In the end I found the solution. I changed System > VAT > Tax Calculation Method Based On from Unit price to Row Total and it works, more details here

    The issue which I found is in core/store model. I had to rewrite roundPrice method and change rounding precision there.

    public function roundPrice($price)
    {
       return round($price, 4);
    }
    

提交回复
热议问题