Abam
Magento 2 Extension

Product Labels

Rule-driven badges that merchandise themselves.

Magento 2.4.xPHP 8.1+Headless ReadyHyvä CompatibleLuma Compatible
View Documentation & Install
Storefront Preview
New Arrival
SALE20% Off Spring Collection
Admin Control
ConditionStock Qty < 5
ActionApply "Low Stock" Badge

Why it works

Labels that build themselves

Rules are built in a familiar Magento condition builder with full AND/OR nesting. Target products by category, stock quantity, price, creation date, or any product attribute.

Right label, right shopper

Every rule can be scoped to specific customer groups, specific store views, and a start/end date range. Wholesale buyers see a different badge than retail.

Styled to your brand

Labels render as styled text or as uploaded images, positioned at any corner of the product image. Six ready-made color styles ship out of the box.

Built for traffic

Indexed mode pre-calculates every label assignment during indexing and serves it from a dedicated index table plus a tagged cache layer.

Technical Reliability

Condition Builder

Target products by category, stock quantity, price, creation date, or any product attribute in your catalog. A "New Arrival" badge that appears for 30 days and then disappears on its own.

Global Overrides

Your German storefront reads "Rabatt" while the English one reads "Sale" — the same label definition, with per-store-view overrides for text, name, image, and style.

Headless & API Ready

Built from the ground up for headless architectures. Fully exposes label data and rule configurations via comprehensive GraphQL and SOAP/REST APIs, allowing seamless integration with custom React, Vue, or PWA storefronts.

Everything included

Rule-driven automatic tagging
Condition builder with AND/OR nesting
Target by category, stock, price, date, attributes
Customer group and store view targeting
Priority system for clean display
Indexed and Dynamic performance modes

Requirements

Make sure your environment meets these requirements before installing.

  • Magento 2.4.x (Open Source or Commerce)
  • PHP 8.1 or higher
  • Composer 2.x
  • Magento_Catalog, Magento_Store, Magento_Rule, Magento_Indexer

Installation

Install the module via Composer and run the standard Magento setup commands. The module ships as a single Composer package with no external dependencies beyond Magento core.
1Require the package
composer require abam/module-product-label
2Enable the module
php bin/magento module:enable Abam_ProductLabels
3Run setup & reindex
php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento indexer:reindex abam_product_labels php bin/magento cache:flush

Configuration

All settings live under Stores → Configuration → Abam → Product Labels. The defaults are production-ready — you only need to change them if your catalog has specific performance requirements.
SettingPathDefaultDescription
Enabledgeneral/enabledYesMaster on/off switch for the entire module.
Rendering Moderendering/modeindexedindexed — Pre-calculates label assignments during indexing (fastest). dynamic — Evaluates rules on the fly (flexible but slower on large catalogs).
AJAX Enabledrendering/ajax_enabledNoLoad labels via AJAX to preserve full-page cache (FPC) compatibility.
AJAX Fallbackrendering/ajax_fallbackYesIf the indexed label is stale, fall back to an AJAX call for fresh data.
Cache TTLcache/ttl3600How long (in seconds) cached label data is valid before refresh.
Invalidate on Savecache/invalidate_on_saveYesAutomatically flush the label cache when a label or rule is saved in admin.
Reindex on Saveindexer/reindex_on_savepartialpartial — Only re-indexes affected products. full — Re-indexes the entire catalog.
Partial Thresholdindexer/partial_reindex_threshold5000If the number of affected products exceeds this threshold, a full reindex runs instead of partial.

Feature Overview

Everything that ships out of the box — no additional modules or third-party services required.
Rule-driven automatic product tagging
Condition builder with full AND/OR nesting
Target by category, stock, price, date, or any attribute
Customer group & store view scoping
Priority system for clean multi-label display
Indexed mode for high-traffic catalogs
Dynamic mode for smaller, flexible catalogs
AJAX fallback for FPC compatibility
Text labels with 6 built-in color styles
Image labels with drag-and-drop upload
4-corner positioning (top-left, top-right, etc.)
Per-store-view label overrides (i18n ready)

Ready to install?

Get started in under 5 minutes with Composer.

composer require abam/module-product-label

Contact Sales

Scale your Magento 2 store with confidence.

Join leading e-commerce brands and merchants boosting performance, conversions, and sales with Abam extensions.