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


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

  • thank you for answer This code answers But that's what I do not want This code is in the frame When I enter the category, it is very tidy. I want to be like that Aug 26 '17 at 12:09
  • I want the home page to look like a category page Aug 26 '17 at 12:18
  • please update your question. Exactly, what do you want? Aug 28 '17 at 4:17

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

  • I want the home page to look like a category page Aug 26 '17 at 12:19


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

Call the above code.


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.