Magento – Magento Show Specific product on cms page

cms-pagesmagento-1.9

I want to show two configurable products on a cms page. The two products are under a sub category (id = 343). I've used below code in my cms page:

{{block type="core/template" name="home.catalog.product.list" 
alias="products_homepage" category_id="343"  product_count="2" 
template="catalog/product/list.phtml"}}

but it gives this error:

Fatal error: Call to a member function count() on a non-object in
/home2/hotelhome/public_html/app/design/frontend/default/sm_sport/template/catalog/product/list.phtml
on line 38

Best Answer

Try to just use this

{{block  type="catalog/product_list" category_id="343"  template="catalog/product/list.phtml"}}

That should do the trick, you donĀ“t need the product_count as it will just show all and if there are only 2 then that's it.

Related Topic