How can I change the position of the order totals (incl. tax / excl. tax) in the tax calculation? As it should show the total including tax below the total excluding tax but at the moment it does not.
Magento – Order totals showing wrong way around
cartcheckoutmagento2totals
Best Answer
Other than the single totals (subtotal, tax, shipping, discount) which you can reorder in Stores > Configuration > Sales > Sales > Checkout Totals Sort Order, the grand totals are hard coded in the template
Magento/Tax/view/frontend/web/template/checkout/cart/totals/grand-total.html
Override this template in your theme and change the order of these two
<tr>
table rows.This template is for the cart. For the checkout summary, do the same in
Magento/Tax/view/frontend/web/template/checkout/summary/grand-total.html