Question

I've got issue because I can't figure out to swap order total brutto with netto. enter image description here

Look up and check the image. Magento2 maybe by default set Price brutto on the top but I need move price brutto to down. I looked for in module-checkout and magento2 admin panel but I can't find any file to swap this field in the table.

Was it helpful?

Solution 2

I've found solution. If someone will have similar issue i write here a solution. If you want change order Excluding tax price and Including tax price you must override file grand-total.html in your theme or module. File path is: vendor/magento-tax/view/frontend/web/template/checkout/cart/totals/grand-total.html

OTHER TIPS

You can change the order of your totals in the configuration section of the store.

Navigate to: Admin -> Stores -> Settings -> Configuration -> Sales -> Sales -> Checkout Totals Sort Order

In this section you can reorganise the order of your totals.

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>
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top