Remove Cart Tax / Shipping Estimate

No reason to display in the cart the Tax and Shipping Estimate functionality? Do you want simply to remove it? Let's see how you can easily do that!

Like in most of our posts, we will create a custom module called this time Blog22 to achieve that. So first of all we have to create the module.xml file and the registration.php for our module like below

To find the block that we want to remove from the cart, we have to look on the layout of the cart page and more specific to the file


In that file we will see that the block which is responsible for displaying the Tax / Shipping Estimate in the cart page, is called checkout.cart.shipping and the template file that is used is the 


So to make changes to both of the files above, we have to override them by creating them under our custom module. In the checkout_cart_index.xml we will set to the checkout.cart.shipping block our new custom file and we will remove the block-summary component like below

In our new custom template file the only change that we did from the original one is to remove the title of the Tax / Shipping Estimate div. So the new template file will look like the one below

Your cart page now will look like

The full example as extension can be found here.

Feel free to share this post and ask your questions in the comments below.

Till next time!

DigitalOcean Referral Badge