Product labels - rocketweb-fed/magento2-theme-prime GitHub Wiki
Product labels allow to display informative badges on top product images. By default labels are displayed on category and PDP pages. Currently there are 3 types of labels available:
- New - shown for products with
Set Product as New From
date attribute set - Sale - shown for products with
Special Price
attribute set - X% - shown for products with
Special Price
attribute set and withShow Sale percentage
option enabled
Configuration
Product label values can be set in admin > Configuration > Rocket Web > UI Settings > Product Labels
.
Template files
Template file for product labels can be found in Magento_Catalog/templates/product/labels.phtml
. It utilizes helper methods defined in RocketWeb\UiCore\Helper\Product
.