Tuesday, 27 August 2019

how to remove estimate shipping and tax in magento 2

checkout_cart_index.xml
<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">

<!-- My custom part: -->
<item name="config" xsi:type="array">
<item name="componentDisabled" xsi:type="boolean">true</item>
</item>

</item>
</item>
</argument>
</arguments>
</referenceBlock>



===================================
cart/shipping.phtml

<div class="title" data-role="title">
    <strong id="block-shipping-heading" role="heading" aria-level="2">
        <?php / @escapeNotVerified / echo $block->getQuote()->isVirtual() ? _('Estimate Tax') : _('Estimate Shipping and Tax') ?>
    </strong>
</div>

No comments:

Post a Comment