bennoislost/easy-navigation 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bennoislost/easy-navigation

最新稳定版本:0.0.1

Composer 安装命令:

composer require bennoislost/easy-navigation

包简介

A simple module to customize your navigation menu

README 文档

README

Simple navigation styling and extra category attributes for Magento.

Installation

Composer

php composer.phar require bennoislost/easy-navigation

Then refresh Magento caches.

Usage

Select a catalog/category attribute for use

Add the following snippit to your modules config.xml inside the default node. Replace my_new_catalog_attr with the attribute code you wish to be displayed in your navigation.

<frontend>
    <category>
        <collection>
            <attributes>
                <my_new_catalog_attr/>
            </attributes>
        </collection>
    </category>
</frontend>

Display a selected attribute

Copy the following templates to your design package / theme.

  • app/design/frontend/base/default/template/bennoislost/easy-navigation/single-level.phtml
  • app/design/frontend/base/default/template/bennoislost/easy-navigation/level-with-children.phtml

You can now use the following snippet to return the catalog/category attribute value in your template.

$this->getMenu()->getCategoryData()->getData('my_new_catalog_attr');

Replace my_new_catalog_attr with your attribute code.

With blocks in Magento these can be extended and replaced :)

Support

If you have any issues with this extension, open an issue on GitHub (see URL above)

Contribution

Any contributions are highly appreciated. The best way to contribute code is to open a pull request on GitHub.

Developer

Ben McManus - @bennoislost

Licence

MIT

Copyright

(c) 2015 Ben McManus

统计信息

  • 总下载量: 17
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固