Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Get Category ID to Work for Featured Products
 
theo38
Jr. Member
 
Total Posts:  4
Joined:  2009-11-17
 

Hi there,

I’ve customised the list.phtml file to suit my needs and reference it as follows:

{{block type="catalog/product_list_random" template="catalog/product/list_random.phtml" category_id="81"}}

- it works perfectly APART from the fact that the category_id parameter has no effect. Is there a solution to allow you to successfully define the category?

Many thanks,
Theo.

P.S. I’m so impressed with Magento so far. There are still some niggling little bugs like this one, but overall it’s a solid platform.

 
Magento Community Magento Community
Magento Community
Magento Community
 
CCondra
Magento Team
 
Avatar
Total Posts:  45
Joined:  2009-04-15
Lemon Grove, California (San Diego County)
 

Here’s one way you can do it. Create the “Featured Products” category and take note of the category ID. Then define either a CMS static block or CMS page that includes a statement like this:

{{block type=”catalog/product_list” category_id=”28” template=”catalog/product/whatever.phtml”}}

 
Magento Community Magento Community
Magento Community
Magento Community
 
theo38
Jr. Member
 
Total Posts:  4
Joined:  2009-11-17
 

Thank you for the reply, but as you will see above, I have actually already tired this method… Does anyone else know how this can be done?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top