Follow below steps to remove “Estimate shipping costs and tax” block in cart page Magento 2.
1. Override “checkout_cart_index.xml” file in your theme or your module and add below code.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<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> |
2. Override template file checkout/cart/shipping.phtml in your theme or module
and comment below code in this file.
1 2 3 4 5 |
<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> |
3. Run cache:flush command then check your cart page.
CONTACT US to get Magento programming solutions by hiring a certified Magento expert.
[crayon-63e096d426456238776231/] Using above fucntion Images can be imported directly from...
Override view block using di.xml and add the below code...
You can check a list of called layout XML for...
Follow the below steps to install and set up PWA...
If you want to remove all leading zero's from order,...
Let our Magento expert connect to discuss your requirement.
We offer Magento
certified developers.
Our Magento clientele
is 500+.
We sign NDA for the
security of your projects.
We’ve performed 100+
Magento migration projects.
Free quotation
on your project.
Three months warranty on
code developed by us.