php magento 价格含税
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1538770/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
magento prices inclusive of tax
提问by Peter Lindqvist
I have set up my products so that their price is inclusive of Tax.
我已经设置了我的产品,以便它们的价格包含税金。
However when I get to the Checkout page, the tax is being added to the Product Price. Where really it should only be there as a summary.
但是,当我进入结帐页面时,税金已添加到产品价格中。哪里真的应该只作为摘要存在。
Anyone know how to fix this?
有人知道怎么修这个东西吗?
回答by Peter Lindqvist
You need to have the correct settings in your configuration.
您需要在配置中进行正确的设置。
Look under System/Configuration/Sales/Tax/Calculation
在系统/配置/销售/税收/计算下查看
There are two important choices here
这里有两个重要的选择
- Catalog prices include tax
- Shipping prices include tax
- 目录价格含税
- 运费含税
These should both be set to the same value.
这些都应该设置为相同的值。
If you write your product prices including taxes, then these options should be set to yes.
如果你写的产品价格包括税,那么这些选项应该设置为是。
回答by Alan Storm
From a high level the answer is to not setup your prices inclusive of tax. The Magento system expects you to setup prices without tax. All calculations in the system will be based on that.
从高层次来看,答案是不要设置含税价格。Magento 系统希望您设置不含税的价格。系统中的所有计算都将以此为基础。
If you want prices to display with tax, you should override and/or create new Blocksand phtml templates that display price information. You want to change what is shown to the user, and not change what is used in system calculations.
如果您希望价格与税一起显示,您应该覆盖和/或创建Blocks显示价格信息的新模板和 phtml 模板。您希望更改向用户显示的内容,而不是更改系统计算中使用的内容。
回答by B00MER
You'll need to find the appropriate location in the price.phtml that displays the price and use a similar line of code to display JUST the product price without any tax.
您需要在 price.phtml 中找到显示价格的适当位置,并使用类似的代码行来仅显示不含税的产品价格。
/app/design/frontend/(your_store)/(your_template)/template/catalog/product/price.phtml
/app/design/frontend/(your_store)/(your_template)/template/catalog/product/price.phtml
<?php echo Mage::helper('core')->currency($_price,true,false) ?>
回答by Prattski
Go into your tax rules and remove them all. If there are no tax rules, it can't charge any tax.
进入您的税收规则并将它们全部删除。如果没有税收规则,它就不能征收任何税款。
回答by ukbooksandtoys
To set all your prices as a figure that excludes TAX is completely unworkable and I don't understand why it has been suggested.
将所有价格设置为不包括 TAX 的数字是完全行不通的,我不明白为什么有人建议这样做。
If I have a book in my UK store and a customer from the UK buys it, then there is no VAT on it. If someone from Denmark buys it, then the TAX rate is 10%.
如果我在英国的商店里有一本书,而一位来自英国的顾客购买了它,那么它就没有增值税。如果有人来自丹麦购买,则税率为 10%。
You cannot have the product set to the amount excluding the TAX as it just wouldn't work. I would set the price say at £10 and expect the Tax Rules etc. to realise that a UK customers order would show zero tax as part of the £10 but the customers order from Denmark would show a tax of £0.91 but the Grand Total should still be £10 in all cases.
您不能将产品设置为不包括 TAX 的金额,因为它不起作用。我将价格设置为 £10 并期望税收规则等意识到英国客户的订单将显示零税作为 10 英镑的一部分,但来自丹麦的客户订单将显示 £0.91 的税,但总计在所有情况下仍应为 £10。
Or have I missed the point with this?
还是我错过了这一点?

