Related products on product page in Magento
Move related products from default sidebar location into main product page in Magento.
1. Open catalog.xml, found in
app/design/frontend/default/YOURTEMPLATEFOLDER/layout/
2. In catalog.xml find the catalog_product_view section, around line 205. In the
<block type="catalog/product_list_related" name="catalog.product.related" before="-" template="catalog/product/list/related.phtml"/>
and replace with:
<reference name="content">
<block type="catalog/product_view" name="product.info" template="catalog/product/view.phtml">
<block type="catalog/product_list_related" name="catalog.product.related" as="related" template="catalog/product/list/related.phtml"/>
</block>
</reference>
3. Now in your catalog/product/view.phtml you can print out the related products using
<?php echo $this->getChildHtml('related'); ?>
To edit the look of that list, edit catalog/product/list/related.phtml
DEMO
This demo shows a 1 column design with the related products down the right handside in a Horizontal Carousel. View Demo
Related Articles
- 23.06.11: Add logo to print popup in Joomla (0)
- 08.04.11: Rename SMTP Banner Exim (1)
- 14.02.11: Perl files download instead of executing / processing (fixed) (0)
- 26.07.11: Backup Incoming and Outgoing mail for your domain EXIM (0)
- 24.02.11: Add site name to title Joomla (0)









Comments RSS Feed





it doesnot work for me.I did same opertions as told by you.Can you figure out why
Go to Top of the page
Which version of Magento are you using? This was tried and tested on 1.4x
Are you receiving any Magento errors messages?
Also, take a look through your server logs and let me know.
If you still can’t get it to work then send me a mail, using the contact form, and I’ll get it working for you.
Go to Top of the page
It is not working for me also, not outputting anything, from where to upload realted products? i uploade from catlog->manage products->edit->related product
Go to Top of the page
ok guys, will do some checks… are you using 1.4x?
Go to Top of the page
Are you definitely using the 1 column layout for this?
Go to Top of the page
I’ve sent you an email, I would like to try and get to the bottom of this, as it works fine for me. Can you supply me with access so that I can check for you?
Go to Top of the page
I got solution for my problem, its working now…thank u
Go to Top of the page
@mahesh, when you get a moment, could you let everyone know what the problem was?… was there anything missing from the explanation above?
Go to Top of the page
Hi - The file name related.phtml was changed to view-related.phtml by my coligue. When i follow the instructions above properly, it starts working….
thanks for the help.
Go to Top of the page
Hi
This worked for me thanks.
Please check you are declaring the block at right place in xml file.
Go to Top of the page
Hi,
Great article on moving the related products block to the middle column thanks - how would I get this to work with the hellowired theme and show as a tab? I have upsell on a tab in catalgoue.xml like this…
upsell_productsAlternativescatalog/product_list_upsellcatalog/product/list/upsell.phtml
Go to Top of the page
upsell_products Alternatives catalog/product_list_upsellcatalog/product/list/upsell.phtml
Go to Top of the page
Thank you very much!
Go to Top of the page