I am having a requirement that I have to change the order of totals in a shopping cart in Magento. My requirement is shipping charge should display before Tax. Currently it is displaying as Subtotal-Tax-shipping charge-Grand Total and I need as Subtotal-shipping charge-Tax-Grand total. Can anyone help me from where I can edit this.
5
votes
3 Answers
12
votes
0
votes
0
votes
you can change order in admin site Admin -> Stores -> Settings -> Configuration -> Sales -> Sales -> Checkout Totals Sort Order
but can't change Order Total Excl. Tax and Order Total Incl. Tax if you won't change it order to Order Total Incl. Tax and Order Total Excl. Tax please overide Magento_Tax module web/template/checkout/summary/grand-total.html same as
<tr class="grand totals excl">
<th class="mark" scope="row">
<strong data-bind="i18n: exclTaxLabel"></strong>
</th>
<td data-bind="attr: {'data-th': exclTaxLabel}" class="amount">
<strong><span class="price" data-bind="text: getGrandTotalExclTax()"></span></strong>
</td>
</tr>
<tr class="grand totals incl">
<th class="mark" scope="row">
<strong data-bind="i18n: inclTaxLabel"></strong>
</th>
<td data-bind="attr: {'data-th': inclTaxLabel}" class="amount">
<strong><span class="price" data-bind="text: getValue()"></span></strong>
</td>
</tr>