I want to move the tax in between the order total incl tax and order total excl tax in the cartpage.

enter image description here

The Tax section is in the vendor/magento-tax/view/frontend/web/template/checkout/cart/totals/tax.html

And the order totals in vendor/magento-tax/view/frontend/web/template/checkout/cart/totals/grand-total.html

How can I do it?

3 Answers 3


You can do this in the admin: Stores->Configuration->SALES->Sales->General->Checkout Totals Sort Order


Did you ever find a solution for this? The answer of Jason is not working. You are not able to move the tax between the grand total ex VAT and grand total incl VAT, because there's only one grand total field.


You Can do this just Configuration. not require any custom code. please go to the below

Stores->Configuration->SALES->Sales->General->Checkout Totals Sort Order

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.