monsieurbiz/mbiz_optionsystemcode

Magento 1 module which adds a system code to every product option.

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:HTML

Type:magento-module

0.1.3 2017-04-10 10:17 UTC

This package is auto-updated.

Last update: 2022-11-29 02:18:48 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;
}