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.

dev-master 2022-02-22 04:01 UTC

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: