Magento Add tax withholding tax by tax and total

I use Magento and I have a problem displaying totals.

At the moment I have this:

Subtotal: £10.00 Shipping & Handling: £5.00 Tax (at the moment just using 20% of Subtotal) (20%):£2.00 Grand Total: £17.00 

So it should look like this:

 Subtotal: £10.00 Shipping & Handling: £5.00 Tax (need it to be 20% of subtotal AND 20% of shipping & Handling) (20%):£3.00 Grand Total: £18.00 

As you can see, the tax went from £ 2.00 to £ 3.00, because I need it to accept 20% of the shipping and handling fees, as well as 20% of the amount of the interim installment?

+6
source share
4 answers

Go to System → Configuration → Sales → Tax → Tax classes and change Tax Class for Shipping to Shipping and check the totals again.

+8
source

A quick and dirty way to do this is to override the cart / totals.phtml template and use $this->getTotals() from the totals block and manually display the totals you want.

If you need a cleaner and more correct way to do this, then the templates under the "tax" folder will control how these things are displayed. The tax specifically has two units that use a template, one for the trolley and one for inspection. I can’t remember their exact names. If you want to add this functionality to a block, redefine both blocks. If you prefer to do this in a template, remember that you have access to all the blocks that will display the page during the template. You can say Mage::app()->getLayout()->getBlock('block.name'); . I'm not sure if the entire delivery block will have the information you are looking for at the moment, since it can be dynamically created by the basket totals block. If so, you will first have to get the resulting block Mage::app()->getLayout()->getBlock('cart.totals.block.name') and call getTotals () on it. Then you can get 20% of the total shipping amount.

+1
source

Just set the Tax Class for Shipping parameter to Taxable Goods . Then, until all of your products are installed in the taxable class Taxable Goods , the tax will include tax on shipping costs.

+1
source

In addition to going to System -> Configuration -> Sales -> Tax -> Tax Classes and changing Tax Class for Shipping to Shipping as suggested by seanbreeden, you should also make sure that Tax Rule is not applied to Shipping Tax Class .

To do this, go to Sales -> Tax -> Manage Tax Rules and filter the correct Customer Tax Class and Product Tax Class = Shipping .

If the rules are found, click them one at a time and you will see what rate applies to Shipping . If you want to disable shipping tax, you must remove Shipping from all Tax Rules found.

0
source

Source: https://habr.com/ru/post/914904/


All Articles