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

1 min read

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

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

After

How to remove Qty and Add to Cart from product page 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
Chris Gee

Co-Founder & Managing Director

Related blog posts

Want help choosing the best B2B eCommerce platform for your business?