Skip to content
how-to-remove-qty-and-add-to-cart-from-product-page-in-magento-2

How to remove Qty and Add to Cart from product page in Magento 2

If you want to make a product page so somebody cannot add to the basket and remove the Qty and add to cart buttons this is really easy to do with a simple xml update.

  1. Use this code in the design xml layout update field on the product to remove the price. You can do it on a product by product basis you could use the bulk update attributes feature.
<referenceBlock name="product.info.addtocart" remove="true"/>

The result of using this code to remove the price can be seen here on our Lumarix Magento Store

Before

Before using layout update to remove add to cart and qty in Magento 2

After

After using layout update to remove add to cart and qty in Magento 2

Why remove the price from a product page in Magento 2

  • Get customers to call to place orders
  • Make a brochure only section of your website

Share or save for later:

Posted in