0

I'm using Magento 1.9.2.3 and I want to add a list of products from specific category using this block code:

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

Also, I add a permission into the blocks permission but is not working.

What can I do?

2
  • You got any error ??? – Magento 2 Mar 13 '16 at 19:23
  • No. But it seems that I find a solution. I add the code into a static block and then add the block into the homepage. But I want to show the products as a vertical list and they're displayed horizontal. This is my url store.hbros.co.uk – Ricardo DeLa Rosa Nieto Mar 13 '16 at 21:08
0

It is possible to change the view mode with the following layout update:

<reference name="product_list_toolbar">     <action method="setData"><key>_current_grid_mode</key><value>list</value></action> </reference>

This only works if the setting catalog/frontend/list_mode is set to list(default)/grid or grid(default)/list

3
  • If you don't want to use a layout update than you just can create a custom template. – Mr. Lewis Mar 13 '16 at 22:29
  • Thanks. I change a little bit the template of the product list. – Ricardo DeLa Rosa Nieto Mar 13 '16 at 23:38
  • Did the answer help you with the issue? – Mr. Lewis Mar 14 '16 at 11:55
0

I tested the code and it works like a charm. Please check permissions of the block (System > Permissions > Blocks). Check if the name is correct and the status has to be Allowed.

2

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.