2

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.

  • I've probably found file which is responsibility for view price brutto and netto in Magento_Tax/templates/checkout/grandtotal.phtml but i can't override in my theme :( – Pepe44 Jul 17 '19 at 8:22
1

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.

|improve this answer|||||
  • But i can't swap this two rows because they as 1 total order or something like that. I was trying trust me :( – Pepe44 Jul 17 '19 at 8:50
  • Are you using a custom theme? – Greg Jul 17 '19 at 9:10
  • I'm using Msg claue theme. I've created Magento_Tax/templates/checkout/grandtotal.phtml and i've made few changes but nothing happened – Pepe44 Jul 17 '19 at 9:19
  • Try this file: vendor/magento/module-checkout/view/frontend/templates/cart/totals.phtml – Greg Jul 17 '19 at 9:24
  • I saw too this file but only contains div with script to connect between knockout.js unfortunately. – Pepe44 Jul 17 '19 at 9:33
0

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

|improve this answer|||||
  • I am glad you found a solution. – Greg Jul 22 '19 at 16:02
0

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>
|improve this answer|||||

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.