Question

I am using magento 1.9.3.6 version, RWD theme. I want to move related product block before displaying upsell products. How can I achieve this? enter image description here

Was it helpful?

Solution

Try adding below code in local.xml or Catalog.xml of your theme layout files (app/design/frontend/{{your_package}}/{{Your_Theme}}/layout).

<catalog_product_view>
        <reference name="right">
            <action method="unsetChild"><name>catalog.product.related</name></action>
        </reference>
        <reference name="content">
            <block type="catalog/product_list_related" name="catalog.product.related" before="product.info.upsell" template="catalog/product/list/related.phtml"/>
        </reference>
</catalog_product_view>

In case its not showing after layout updates, add below code to

app/design/frontend/{{your_package}}/{{Your_Theme}}/template/catalog/product/view.phtml

<?php echo $this->getChildHtml('catalog.product.related'); ?>
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top