I have a custom PHTML file
custom_theme/default/template/catalog/product/colors.phtml
I have edited
custom_theme/default/layout/catalog.xml
I have added
<block type="catalog/product_colors" name="colors" template="catalog/product/colors.phtml"/>
Right under list.phtml as follows
<reference name="content">
<block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
<block type="catalog/product_colors" name="colors" template="catalog/product/colors.phtml"/>
I have added
<?php echo $this->getChildHtml('colors') ?>
to
custom_theme/default/template/catalog/product/list.phtml
Nothing is showing on the category page.
What am I doing wrong?
Best Answer
Replace your code
with
and try after clearing cache.