3

I successfully remove the shipping estimation in Magento 2 cart page summary using this solution:

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="checkout.cart.shipping">
            <arguments>
                <argument name="jsLayout" xsi:type="array">
                    <item name="components" xsi:type="array">
                        <item name="block-summary" xsi:type="array">
                            <item name="config" xsi:type="array">
                                <item name="componentDisabled" xsi:type="boolean">true</item>
                            </item>
                        </item>
                    </item>
                </argument>
            </arguments>
        </referenceBlock>
    </body>
</page>

when the page first load in cart page summary, the order total will take some time to display, but there is no loader that indicates the order summary is being loaded

enter image description here

1 Answer 1

2
+50

You can add a loader by override/extend:

/vendor/magento/module-checkout/view/frontend/templates/cart/totals.phtml
...<div id="cart-totals" class="cart-totals" data-bind="scope:'block-totals'">...

    <div data-bind="if: isLoading">
        <div class="load indicator"></div>
    </div>

...<!-- ko template: getTemplate() --><!-- /ko -->...

If you don't like the overlay loader, just change load indicator classes with a custom classes.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.