October 16, 2012

Magento Category with Category Images

Question by darshan.dodiya

I am facing one problem, So i am here to get Some solutions form you! I want to display category menu with category images near to each categories with in that menu.

So when i click on menu if that category contain sub-category it show the name of all those sub-categories with images near to it’s name like

example

parent1
  =>sub1 <Image of sub1 category>
  =>sub2 <Image of Sub2 category>
  =>sub3 <Image of sub3 category>

Same way i have parent2, parent3 etc., which contain sub-categories same way as i mention here.

So when i click on any parent category it will listed me sub-categories with it’s images!

If anybody having Idea about this then let me know how to do this.

Waiting for your response.

Thanks in advance.

Answer by Starx

You can get the image link using

$_imageUrl=$this->getCurrentCategory()->getImageUrl()

Follow this wiki from detailed walk-through.

Author: Nabin Nepal (Starx)

Hello, I am Nabin Nepal and you can call me Starx. This is my blog where write about my life and my involvements. I am a Software Developer, A Cyclist and a Realist. I hope you will find my blog interesting. Follow me on Google+

...

Please fill the form - I will response as fast as I can!