<?php $cats = Mage::getModel('catalog/category')->load(2)->getChildren(); $catIds = explode(',',$cats); ?> <ul> <?php foreach($catIds as $catId): ?> <li> <?php $category = Mage::getModel('catalog/category')->load($catId); echo $category->getName(); $subCats = Mage::getModel('catalog/category')->load($category->getId())->getChildren(); $subCatIds = explode(',',$subCats); ?> <?php if(count($subCatIds) > 1):?> <ul> <?php foreach($subCatIds as $subCat) :? > <li> <?php $subCategory = Mage::getModel('catalog/category')->load($subCat); echo $subCategory->getName(); ?> </li> <?php endforeach;?> </ul> <?php endif; ?> </li> <?php endforeach; ?> </ul>
相关推荐
magento中block应用 magento中block应用 magento中block应用
Ability to place any block in any position by easily changing CMS page layout Unlimited number of blocks inside each position Unlimited number of content items inside each block Block items can ...
NULL 博文链接:https://justcoding.iteye.com/blog/1725217
Magento 2 Beginners Guide by Gabriel Guarino English | 14 Mar. 2017 | ASIN: B01MS81BQX | 442 Pages | AZW3 | 31....He is also a moderator in Magento forums, and he is a frequent speaker at Magento events.
Chapter 1, Installing Magento 2 on Apache and NGINX, is a...new methods introduced in the Magento 2 framework and examples on how to create basic functions. Chapter 8, Creating Magento 2 Extensions – Ad
NULL 博文链接:https://justcoding.iteye.com/blog/2144634
magento custom menu 可以自己定制的导航菜单
TextFade, Square Transition, Play Pause, Numbered banners, Horizontal Slider, Vertical Slider and Many more custom effects) using magento protoype library. To use banner in your CMS pages use: {{...
NULL 博文链接:https://justcoding.iteye.com/blog/1711166
NULL 博文链接:https://justcoding.iteye.com/blog/1886183
自定义的magento菜单 用自己的自定义菜单替换生成的magento菜单。 使用管理页面添加菜单项“自定义模块->自定义菜单” 您可以从以下类型的菜单项中进行选择: 内部链接(示例:about-us.html) 外部链接(示例: ...
new methods introduced in the Magento 2 framework and examples on how to create basic functions. Chapter 8, Creating Magento 2 Extensions – Advanced, explains how to use advanced features in ...
自定义样板模块以扩展Algolia Magento ...导游安装可以通过安装模板模块: $ cd /path/to/your/magento2/directory$ composer require algolia/algoliasearch-custom-algolia-magento-2$ php bin/magento setup:upgrade
magento数据结构分析 magento数据字典
Magento列表页面属性筛选,实现URL静态化展示,eg:http://***.com/shopby/color/1/design/2/...
Get a hands-on introduction to custom shipping and payment methods ☆ 出版信息:☆ [作者信息] Branko Ajzele [出版机构] Packt Publishing [出版日期] 2013年09月25日 [图书页数] 128页 [图书语言] 英语...
Helloworld with Custom System Config 其他与Magento开发相关的文章 简单的EAV数据查询 清除缓存的几种方法 通过命令行来升级Magento MAGENTO数据转移 如何使用和设置Cookie&Session Magento中我的账户访问...
magik shoes magento 模板, magento 1.7 模板
magento的SMTP插件magento的SMTP插件magento的SMTP插件