1

I have added the design code as like this in homepage.

<reference name="content">
<block type="catalog/product_list" category_id="548"  template="catalog/product/list.phtml">
</block>
</reference>

but the particular category-id related products are not displaying... but displaying all the category products..

how to make it to display the particular category id related products.

1 Answer 1

0

try this code..

 <reference name="content">
              <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
              <action method="setCategoryId"><category_id>548</category_id></action>
                            </block>
    </reference>
7
  • Its working.. but Recommended Products are showing different..
    – D.M. Vamsi
    Commented Oct 20, 2015 at 12:57
  • what is the problem? Commented Oct 20, 2015 at 12:57
  • Its working.. but Recommended Products are showing different. Please check this link www.77hydro.com
    – D.M. Vamsi
    Commented Oct 20, 2015 at 12:58
  • it may be include the subcategories products Commented Oct 20, 2015 at 13:01
  • this is the actual 548 category id page 77hydro.com/nutrients-supplements.html .. here its displaying properly...
    – D.M. Vamsi
    Commented Oct 20, 2015 at 13:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.