简体   繁体   English

Magento类别和类别图片

[英]Magento Category with Category Images

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. 我有同样的方法有parent2,parent3等,它们包含的子类别与我在这里提到的方法相同。

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. 提前致谢。

You can get the image link using 您可以使用获取图像链接

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

Follow this wiki from detailed walk-through. 从详细的演练中遵循 Wiki。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM