monsieurbiz / mbiz_optionsystemcode
Magento 1 module which adds a system code to every product option.
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Language:HTML
Type:magento-module
Suggests
- magento-hackathon/magento-composer-installer: Allows to manage this package as a dependency.
This package is auto-updated.
Last update: 2024-09-29 04:20:13 UTC
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; }