Product Labels
Rule-driven badges that merchandise themselves.
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
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
composer require abam/module-product-labelphp bin/magento module:enable Abam_ProductLabelsphp bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento indexer:reindex abam_product_labels
php bin/magento cache:flushConfiguration
| Setting | Path | Default | Description |
|---|---|---|---|
| Enabled | general/enabled | Yes | Master on/off switch for the entire module. |
| Rendering Mode | rendering/mode | indexed | indexed — Pre-calculates label assignments during indexing (fastest). dynamic — Evaluates rules on the fly (flexible but slower on large catalogs). |
| AJAX Enabled | rendering/ajax_enabled | No | Load labels via AJAX to preserve full-page cache (FPC) compatibility. |
| AJAX Fallback | rendering/ajax_fallback | Yes | If the indexed label is stale, fall back to an AJAX call for fresh data. |
| Cache TTL | cache/ttl | 3600 | How long (in seconds) cached label data is valid before refresh. |
| Invalidate on Save | cache/invalidate_on_save | Yes | Automatically flush the label cache when a label or rule is saved in admin. |
| Reindex on Save | indexer/reindex_on_save | partial | partial — Only re-indexes affected products. full — Re-indexes the entire catalog. |
| Partial Threshold | indexer/partial_reindex_threshold | 5000 | If the number of affected products exceeds this threshold, a full reindex runs instead of partial. |
Feature Overview
Ready to install?
Get started in under 5 minutes with Composer.
composer require abam/module-product-labelContact Sales
Scale your Magento 2 store with confidence.
Join leading e-commerce brands and merchants boosting performance, conversions, and sales with Abam extensions.
