Magento贝宝四舍五入问题与折扣 [英] Magento paypal rounding issue with Discount

查看:130
本文介绍了Magento贝宝四舍五入问题与折扣的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用magento 1.9.1.0,并且HUF货币没有分. 如果我不使用折扣,则不会出现舍入错误,但是如果我在magento中使用它,则计算效果很好:

I'm using magento 1.9.1.0, and HUF curency that has no cents. If i don't use discount there is no rounding error, but if i do use inside magento it calculates well:

但是当我尝试使用Paypal付款时,会出现以下错误:

But as soon as I try to use paypal to pay it i get the following error:

我检查了贝宝按钮代码,我得到了:

and I check the paypal button code i get this:

<img src="https://fpdbs.paypal.com/dynamicimageweb?cmd=_dynamic-image&amp;buttontype=ecshortcut&amp;locale=en_US&amp;ordertotal=5326.80&amp;pal=XXXXX" alt="Checkout with PayPal" title="Checkout with PayPal">

,订单总数是错误的!在订单中为5327,而在贝宝中为5326.80.其0.20.它应该四舍五入,没有小数位.不管我设定什么,如果使用折扣,四舍五入都是不可能的!

and the ordertotal is wrong! In the Order is 5327 while in the Paypal button is 5326.80. its 0.20 off. It should round up, with no decimals. And no matter what i set, if a discount is used the rounding is all ways off!

语言环境也是错误的,甚至认为匈牙利在magento中被设置为语言环境.

The locale is wrong as well, even thought Hungary is set as a locale in magento.

如何解决此舍入问题?

How can I fix this rounding issues?

推荐答案

很多情况下,某些magento税收配置不能很好地与折扣规则配合使用-特别是在涉及PayPal的情况下.

Very often, some magento tax configurations don't play nicely with discount rules - particularly where PayPal is involved.

在销售"->税收"下的系统">配置检查"配置中,税收"设置为折扣后应用客户税",而不是之前.这为我解决了这个问题.

Within SYSTEM > CONFIGURATION check config under SALES -> TAX is set to 'apply customer tax AFTER discount', and not before. This fixed the issue for me.

Magento在其知识库中有一个漂亮的页面,解释了所有可能导致舍入错误的税收/折扣配置:

Magento have a great page on their knowledge base explaining all the tax/discount configurations which can cause rounding errors: http://www.magentocommerce.com/knowledge-base/entry/magento-ce-18-ee-113-tax-calc

这篇关于Magento贝宝四舍五入问题与折扣的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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