2

I have customized the checkout_index_index.xml file to display the order summary on the checkout shipping tab as Magento 2 by default doesn't display it.

Here is my customization on the checkout_index_index.xml added after line 387:

<item name="totals" xsi:type="array">
<item name="component" xsi:type="string">Magento_Checkout/js/view/summary/totals</item>
<item name="displayArea" xsi:type="string">totals</item>
<item name="config" xsi:type="array">
    <item name="template" xsi:type="string">Magento_Checkout/summary/totals</item>
</item>
<item name="children" xsi:type="array">
    <!-- sort order for this totals is configured on admin panel-->
    <!-- Stores->Configuration->SALES->Sales->General->Checkout Totals Sort Order -->
    <item name="subtotal" xsi:type="array">
        <item name="component"  xsi:type="string">Magento_Checkout/js/view/summary/subtotal</item>
        <item name="config" xsi:type="array">
            <item name="title" xsi:type="string" translate="true">Cart Subtotal</item>
        </item>
    </item>
    <item name="shipping" xsi:type="array">
        <item name="component"  xsi:type="string">Magento_Checkout/js/view/summary/shipping</item>
        <item name="config" xsi:type="array">
            <item name="title" xsi:type="string" translate="true">Shipping</item>
            <item name="notCalculatedMessage" xsi:type="string" translate="true">Not yet calculated</item>
        </item>
    </item>
    <item name="grand-total" xsi:type="array">
        <item name="component"  xsi:type="string">Magento_Checkout/js/view/summary/grand-total</item>
        <item name="config" xsi:type="array">
            <item name="title" xsi:type="string" translate="true">Order Total</item>
        </item>
    </item>
</item>

This works on Chrome and firefox (refer screenshotenter image description here but not in IE 11.

Is there anything I am missing here?

  • have you got any solutions? – Ajay Patel May 31 '18 at 11:48
  • @AjayPatel No, I didn't find any solution yet. – Gideon Babu Jun 1 '18 at 4:49
  • I fetch this issue in magento 2.2.6 also – himansu Nov 5 '18 at 12:54