Next Webinar: Maximizing Magento - Get the Most out of Promotions. Register Today!

Magento

Open Source eCommerce Evolved

Magento Forum

   
Page 2 of 2
How to show specific category on home page
 
A Joyful Affair
Jr. Member
 
Avatar
Total Posts:  7
Joined:  2008-03-26
 

Hi,I just wanted toshare that the easiest way I found to figure out the category id numbers for a bunch of categories at once was to go into your database with phpmyadmin and export the catalog_category_entitiy_varchar table. You can pull it out of there as a spreadsheet or csv using phpmyadmin and get all the category ids matched up at once..

 
Magento Community Magento Community
Magento Community
Magento Community
 
cal
Jr. Member
 
Avatar
Total Posts:  8
Joined:  2007-10-03
 
Moshe - 14 December 2007 12:42 PM

You can use

{{block type="catalog/product_list" category_id="123"}}
where 123 is your featured category id

So does this code get pasted directly into the CMS page you select? I’ve tried to put it in the home page but it doesn’t seem to do anything. Do I need to create a block first or something?

My basic issue is I have an empty homepage and am not sure how to start featuring products there.

 
Magento Community Magento Community
Magento Community
Magento Community
 
TechBundle
Member
 
Avatar
Total Posts:  51
Joined:  2008-03-26
 

In one of the recent releases before 1.0, the needed syntax changed. Try the following:

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

Where “123” is the ID of your desired category.

EDIT: This just shows the category using the default category listing template. You will have to make your own if you want it formatted differently. It is not hard to do so by just editing list.phtml and saving it under a different name and calling that instead of list.phtml.

 
Magento Community Magento Community
Magento Community
Magento Community
 
cal
Jr. Member
 
Avatar
Total Posts:  8
Joined:  2007-10-03
 

That worked, thanks for the fast response.

 
Magento Community Magento Community
Magento Community
Magento Community
 
jullio
Jr. Member
 
Total Posts:  2
Joined:  2008-03-22
 

I would like to create a block that integrates with a flash slideshow.  I basically need a php file that out puts the xml for the slideshow.  What functions do I need to call to loop through a list of products in a specific category to get the product image path, product name and product price?

The slide show I want to use is the carousel by airtight.

 
Magento Community Magento Community
Magento Community
Magento Community
 
tonyhhisc
Jr. Member
 
Total Posts:  7
Joined:  2008-02-04
 

For those looking to hide the category from navigation. If I’m not mistaken, you should be able to select “No” from the “Is Active” menu on the category manager page to accomplish this. This seemed to work for me.

 
Magento Community Magento Community
Magento Community
Magento Community
 
buffalokill
Jr. Member
 
Avatar
Total Posts:  15
Joined:  2007-12-12
Coeur d'Alene, Idaho
 
A Joyful Affair - 30 March 2008 07:58 PM

Hi,I just wanted toshare that the easiest way I found to figure out the category id numbers for a bunch of categories at once was to go into your database with phpmyadmin and export the catalog_category_entitiy_varchar table. You can pull it out of there as a spreadsheet or csv using phpmyadmin and get all the category ids matched up at once..

A much easier way would be to just edit that category in the admin center, and read the ID in the address bar.

yourdomain.com/index.php/admin/catalog_category/edit/store/2/id/14/

wink

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 2 of 2
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
41222 users|363 users currently online|87963 forum posts