Reputation: 437
I am showing products from a category on a CMS page by using following code but it not showing anything on front end please have a look and let me know what wrong i am doing
I have used this code:
{{block type="catalog/product_list" category_id="3"template="catalog/product/listhp.phtml"}}
Upvotes: 0
Views: 433
Reputation: 181
I had the same issue Xabby described.
Option #2 by Shivani worked like a charm. Did not know these permissions were necessary. In case someone is wondering, these are the steps:
Upvotes: 0
Reputation: 526
Option #1
If the below is your code:
{{block type="catalog/product_list" category_id="3"template="catalog/product/listhp.phtml"}}
Give a SPACE between category_id="3" and template="..."
Updated code must be:
{{block type="catalog/product_list" category_id="3" template="catalog/product/listhp.phtml"}}
Let me know if that works.
[Editing the answer as it can be more than 1 options]
Option #2
- Navigate to System > Permissions > Blocks
- Add the block - Enter "catalog/product_list" in the field
- Set Allowed to Yes
Clear cache and check.
Hope this helps someone. Happy to Help!
Happy Coding...
Upvotes: 2