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

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
Chris Gee

Co-Founder & Managing Director

Chris is the embodiment of curiosity, innovation, and passion. Since establishing the company in 2012, he has been at the forefront of driving its vision and growth. Chris’s journey is marked by resilience and adaptability. His early years in sales and the experience of reviving a family-owned chain of music shops and an eCommerce store shaped his entrepreneurial spirit.

Today, Chris actively leads Rixxo, blending determination with cautious innovation, always keeping budgets and planning in mind. His expertise in eCommerce strategy plays a crucial role in driving our clients’ growth and online success. Chris also leads the UK chapter of the B2B eCommerce Association.

Away from the office, whether he’s cycling the open roads, cooking up a storm on the BBQ, or disassembling things to see how they work, his enthusiasm for understanding and exploring the world mirrors the ethos of the team he leads. More than just a leader; Chris is an integral part of the creative and inquisitive spirit that defines Rixxo.

Related blog posts

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