产品包括税收类别后,Magento价格出现问题 [英] Problems with Magento prices after included tax class to product

查看:81
本文介绍了产品包括税收类别后,Magento价格出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了一个选项,对所有产品加收21%的税,由于某种原因,现在某些价格上涨了±1美分,例如:

I used an option to add 21% tax to all products and for some reason some prices now came up as ± 1 cent, e.g.:

http: //vinylshop.lt/dj-3/patefonai-priedai/dj-patefonu-adatos/ortofon-concorde-pro-s-adata.html

http://vinylshop.lt/dj-3/patefonai-priedai/dj-patefonu-adatos/stanton-trackmaster-v3-mp4-2-adatos.html

在管理员中-显示确定,但在前端-不显示.

In admin - showing OK, but in frontend - NOT.

您是否遇到过这样的问题?如何解决? 我的Magento版本1.6.2

Have you ever encountered an issue like this? How can this be fixed? My Magento version 1.6.2

推荐答案

这是著名的magento舍入错误:

this is the famous magento rounding bug:

转到/app/code/core/Mage/Core/Model/Store.php

更改方法四舍五入至四位数:

change method round to 4 digits:

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

最佳实践当然是不要破解核心文件.至少将文件复制到app/code/local/Mage/Core/Model/Store.php或进行重写.很好,这两个动作都不行,但是可能没有其他办法了....

Best practice would of course be not to hack the core file. At least copy file to app/code/local/Mage/Core/Model/Store.php or do a rewrite. Well good is neither of the actions, but there might be no other way....

玩得开心!

这篇关于产品包括税收类别后,Magento价格出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆