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.
- 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
After
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
Author
Co-Founder & Managing Director