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

Issue Showing Product Categories On Home Page
 
leetaylordoes
Sr. Member
 
Total Posts:  227
Joined:  2008-02-05
San Diego, CA
 

Hi all,

After reading many posts on how to show products, product categories, etc. on the home page, I’ve tried to do the following - and end up getting the following results:

1) I the the following error (below) with this code:

{{block type="catalog/product_view" category_id="3"}}

“Fatal error: Call to a member function getMetaTitle() on a non-object in /home/awcoffee/public_html/1.0/app/code/core/Mage/Catalog/Block/Product/View.php on line 35”

2) No products show with this code:

{{block type="catalog/product_list" category_id="3"}}

I’m running v1.0 by the way, and products are definitely in product category “3”.

Any ideas? They’d be helpful…

Thanks!

 
Magento Community Magento Community
Magento Community
Magento Community
 
leetaylordoes
Sr. Member
 
Total Posts:  227
Joined:  2008-02-05
San Diego, CA
 

Any news on this, or other references to look at?

Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
James @ Block Two
Jr. Member
 
Total Posts:  2
Joined:  2008-02-06
 

Hi All,
I have the same problem, I’m stumped…

The following code outputs nothing whatsoever on my homepage - I’m putting this code in the content textarea in the CMS tab for the homepage.

{{block type="catalog/product_list" category_id="4"}}

I have a category with id 4 (definitely) which shows up in my navigation and all the products do show within that category page on the front end, however, when I try to list the products from this category on the front page, nothing at all shows, as if the code is ignored. Anyone got any ideas why this might be happening?

Thanks in advance.

 
Magento Community Magento Community
Magento Community
Magento Community
 
pauljg1
Sr. Member
 
Avatar
Total Posts:  179
Joined:  2008-02-22
 

Replace your code with

{{block type="catalog/product_list" category_id="12" template="catalog/product/list.phtml"}}
change the id to the relevant cat id.
 
Magento Community Magento Community
Magento Community
Magento Community
 
leetaylordoes
Sr. Member
 
Total Posts:  227
Joined:  2008-02-05
San Diego, CA
 

Great pauljg1.

Not sure why I hadn’t made sure the template parameter was included.

Thank you for your help! It’s all working fine now.

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