Related products block to right sidebar in Product page In magento 1.9
-
12-12-2019 - |
Question
I want to transfer the related products block from product detail page to right sidebar but when I try to rearrange it on the catalog.xml file, view all product catalog page is missing. is there a right way for me to do it?
I'm using RWD theme
Appreciate your response.
Solution
you need to change product page layout 1coumn to 2column right Using
<reference name="root">
<action method="setTemplate"><template>page/1column.phtml</template></action>
</reference>
to
<reference name="root">
<action method="setTemplate"><template>page/page/2columns-right.phtml</template></action>
</reference>
and add this
<reference name="right">
<block type="catalog/product_list_related_right" name="catalog.product.related" as="related_products" template="catalog/product/list/related.phtml" />
</reference>
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange