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/

Advertisements

2. In catalog.xml find the catalog_product_view section, around line 205. In the section, add the following where applicable:

<block type="catalog/product_list_related" name="catalog.product.related" as="related" template="catalog/product/list/related.phtml"/>

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

Tags:

Comments are closed

Latest Comments

No comments to show.