4

I've scoured the interwebs and have found some information on how to do this but it looks like files and method to accomplish this have changed from 2.0->2.02.

I'm using the standard Luma theme.

all/any help appreciated.

1

2 Answers 2

3

For this requirement,you need to go checkout_cart_index.xml file and remove this code:

...

<block class="Magento\Checkout\Block\Cart\Shipping" name="checkout.cart.shipping" as="shipping" template="cart/shipping.phtml">
....
  </argument>
                        </arguments>
                    </block>

Or use :

You can use this section using tag.

<referenceBlock name="checkout.cart.shipping" remove="true" /> <!-- use this code --> 

for remove this section .

See how to use http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/layouts/xml-instructions.html#fedg_layout_xml-instruc_ex_rmv

Update answer at

https://magento.stackexchange.com/a/283648/4564

5
0

Create Your theme

add below file checkout_cart_index.xml at /app/design/frontend/[VendorName]/[ThemeName]/Magento_Checkout/layout/checkout_cart_index.xml

<?xml version="1.0"?>
<!--
/**
 * Copyright © 2013-2017 Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <update handle="checkout_cart_item_renderers"/>
    <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>

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.