4

I'm trying to do the following, moving product.info.review after product.info.overview (short description)
screenshot

I've used the following code, but it is not working:

<move element="product.info.review" destination="content" after="product.info.overview"/>

I've checked if I have the right element by removing it:

<referenceBlock name="product.info.review" remove="true"/>

Above code worked...

Edit for Rakesh:

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="content">
            <block class="Magento\Catalog\Block\Product\View" name="productpage.image" template="xxx_xxx::productpage.phtml" after="product.info.main"/>
        </referenceContainer>
        <move element="product.info" destination="content" after="productpage.image"/>
        <move element="product.info.review" destination="product.info.main" after="product.info.overview"/>
        <referenceBlock name="product.info.stock.sku" remove="true"/>
    </body>
</page>
0

You have to just keep below line in default.xml file or catalog_product_view.xml file,

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <move element="product.info.review" destination="product.info.main" after="product.info.overview"/>
        <referenceBlock name="product.info.stock.sku" remove="true"/>
    </body>
</page>

Clear cache and check.

  • Thank you for your answer. Removed all files in pub/static, reindexed and cleared cache, but it doesn't work... – Frank Groot Nov 28 '16 at 9:34
  • Have you add above line in default.xml file? – Rakesh Jesadiya Nov 28 '16 at 10:13
  • No, in my own module i've overwritten the catalog_product_view.xml file. The other changes i've made in that file are shown on the frontend. – Frank Groot Nov 28 '16 at 10:30
  • please share your xml code – Rakesh Jesadiya Nov 28 '16 at 10:31
  • See updated question – Frank Groot Nov 28 '16 at 10:34

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.