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.

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>
  • Its working.. but Recommended Products are showing different.. – D.M. Vamsi Oct 20 '15 at 12:57
  • what is the problem? – Qaisar Satti Oct 20 '15 at 12:57
  • Its working.. but Recommended Products are showing different. Please check this link www.77hydro.com – D.M. Vamsi Oct 20 '15 at 12:58
  • it may be include the subcategories products – Qaisar Satti Oct 20 '15 at 13:01
  • this is the actual 548 category id page 77hydro.com/nutrients-supplements.html .. here its displaying properly... – D.M. Vamsi Oct 20 '15 at 13:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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