Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Magento - Custom Category Listing Block

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
11,401
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 31, 2010

Grab a copy of the code in this video:
http://www.devinrolsen.com/magento-custom-category-listing-block/


Here I wanted to show you how to build a custom magento category listing block that you can use on your own magento store. We will go over each step at getting a category listing of your magneto categories and even a sub category listing.

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (devinrayolsen1)

  • smurkas, you are correct, if you would like to change line 12 to : $subCats = $category->getChildren(); that is perfectly fine.

see all

All Comments (13)

Sign In or Sign Up now to post a comment!
  • My god, you really have to write all of this code just to display categories on your page!? I started to write my own ecommerce solution in PHP and went to Magento because I didn't have the time to finish it all, but if I have to write code for everything, I might as well just finish my software, insanity!!

  • thank's man ur great!!! i'm new in magento and i spend 2 day trying it!!!

  • Thanks for the tutorial.May How to set the Magento category sort in alphabetical order.

  • Can we not use recursive function to load subcategories?

  • @crapshaw figured this out. Just changed the list item structure to include:

    echo $category->getURL();

    and

    echo $subCategory->getUrl();

    thanks again :)

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more