0

How to move related product block before product review block on product details page. i will try some code but no luck with this. i want to move related product block in to tab panel or review block at the last of the content in magento 2.

  • product reviews ? where these are occurring in page now ? – Learner Dec 22 '17 at 8:11
  • try this <move element="reviews.tab" destination="main.content" after="-"/> in after name of block after which you want to place them. currently they are at the end of page. – Learner Dec 22 '17 at 8:13
  • can I post as answer ? – Learner Dec 22 '17 at 11:14
2

Go To you theme Directory

app/design/frontend///Magento_Catalog/layout/catalog_product_view.xml

<?xml version="1.0"?>
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>

<move element="catalog.product.related" destination="product-info-main" before="product.info.review"/>


    </body>    
</page>

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.