scotch / module-product-labels
Redbox product labels
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Type:magento2-module
pkg:composer/scotch/module-product-labels
Requires
- php: >=5.5.0
 - magento/framework: *
 
This package is not auto-updated.
Last update: 2025-03-19 17:07:00 UTC
README
This README would normally document whatever steps are necessary to get your application up and running.
composer.json
#!php
"redbox/module-product-labels": "0.7.1"
How to use in templates
1) Create helper instance
#!php
<?php
/**
 * @var $_helperLabel \Redbox\ProductLabels\Helper\Label
 */
$_helperLabel = $this->helper('Redbox\ProductLabels\Helper\Label');
?>
2) Render label for product
#!php
<?= $_helperLabel->renderLabel($_product); ?>
Label html
- 'New' label: New
 - 'Sale' label: New
 - 'Custom' text label: Custom text
 - 'Custom' image label: