Question

I need show product of categry in home page

I test this code

{{block type="catalog/product_list" name="home.catalog.product.list" category_id="55" template="catalog/product/list.phtml"}}

but not showing the product of category in home page thanks

Was it helpful?

Solution

In Magento admin panel go to CMS> Pages>Home page.

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

In case you want to control the number of columns in product listing, please use the following code:

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

Where the column_count value is the number of columns.

Navigate to System->Permissions->Blocks.

Click on the Add new block button.

Specify your Block Name, which is: catalog/product_list.

And allow the Block using the YES/No Dropdown list

OTHER TIPS

it may happen with you in system.log Security problem: catalog/product_list has not been whitelisted.

You need to give the permission for your block

Go to System->Permissions->Blocks.

Click add new block where block name catalog/product_list and isAllowed -> Yes

Now save. Clear cache. Hope this will solve your problem

And hope this will work for you

Go to CMS->PAGES->HOME:

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

Call the above code.

Thanks

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top