1

I have installed Webshop matrix rate extension and its working fine.

Whenever i add product to the cart, Automatically it takes the first shipping method and applies the shipping price for the cart total.

So is it possible to remove shipping method section from the cart page ?

closed as off-topic by Aasim Goriya, Manashvi Birla, Priyank, Dhiren Vasoya, Teja Bhagavan Kollepara Mar 18 at 9:47

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about third-party modules are generally off-topic because the scope of functionality and code are not available. For more information, see this meta post/answer." – Aasim Goriya, Manashvi Birla, Priyank, Dhiren Vasoya, Teja Bhagavan Kollepara
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Is multiple shipping methods are shown on cart page or only single shipping method is there? – Ramkishan Suthar Mar 18 at 9:40
1

You can do it using <item name="componentDisabled" xsi:type="boolean">true</item>

app/code/Vendor/Checkout/view/frontend/layout/checkout_cart_index.xml

Create reference blok <referenceBlock name="checkout.cart.totals"> and use componentDisabled to disable component.

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

And i think you can also use remove block methode to remove block like <referenceBlock name="checkout.cart.shipping" remove="true" /> add this code in checkout_cart_index file.

I hope it helps!

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