Hello i have following problems. I have an page_layout and inside of it i have an layout called dynamic.xml

I tried to remove the form field where you can click "Add to cart" and the quantity:

First attempt i tried with product.info.addtocart and set it to remov=true didnt work.

I also tried product.info.options.bottom but still there.

Has anybody an idea how to remove the form?

Remove this form here with xml

enter image description here

  • remove add to cart button ? please explain more.
    – Msquare
    Sep 14, 2020 at 5:35
  • @Msquare i have added an image what i want to remove. the form input with the button and the qty input
    – Ilijanovic
    Sep 14, 2020 at 5:37

1 Answer 1


Use this line into your default.xml layout file

<?xml version="1.0"?>

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <referenceBlock name="product.info" remove="true"/>
  • i used it in my dynamic.xml and it worked
    – Ilijanovic
    Sep 14, 2020 at 5:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.