How can I move Product description out of Tab, above the add to cart button in magento 2 in luma theme
Why there is no view.phtml file as in magento 1.x
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityHow can I move Product description out of Tab, above the add to cart button in magento 2 in luma theme
Why there is no view.phtml file as in magento 1.x
In Magento 2 many of the .phtml files have been replaced by xml files, if you look in catalog_product_view.xml you will see that this controls the structure of the product page. You can move the description by adding the below to catalog_product_view.xml
<move element="product.info.description" destination="product.info.main" before="product.info.addto"/>
I have found the most useful resource is http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/layouts/xml-manage.html#layout_markup_rearrange
after
to before
).
Jun 22, 2018 at 15:17
The accepted answer didn't work for me, as the description was still below the "Add to Cart" button. I managed to solve my problem with the following:
<move element="product.info.description" destination="product.info.main" after="product.info.price" />