I am trying to theme my product view page but I cannot find the correct file to override in order to pull in all of the data where I want it.

in my /app/design/frontend/theme/Magento_Catalog/templates/product/view I can see a lot of different template files for some of the items being brought in, like Add to cart and details.

What I am looking for is a file where those are being pulled in from, so that If I wanted to I could wrap details.phtml and addtocart.phtml into two divs side by side.

1 Answer 1



The file in which all these different product template files are structured is


So to acheive your result you need to copy the catalog_product_view.xml file at the below location:


And use move XML directive to acheive your output.

Hope this helps you, if yes then please upvote it and accept it as answer.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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