monsieurbiz/mbiz_optionsystemcode
Composer 安装命令:
composer require monsieurbiz/mbiz_optionsystemcode
包简介
Magento 1 module which adds a system code to every product option.
README 文档
README
This module allows you to add a "system code" to every option.
It is really useful if you want to display an option a different way.
Example:
<?php if ($_option->getSystemCode() === 'my-code'): ?> <p>This option is special.</p> <?php endif; ?>
These "system codes" SHOULD be defined with your team.
It also can be used to identify an option with ease, to perform some operations by example:
switch ($option->getSystemCode()) { case 'my-code': // TODO break; case 'my-other-code': // TODO break; }
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-05-22