Smart Product Badges & Labels for Magento 2
Show product labels using saved rules, product assignments and schedules. Choose which badges take priority, control how many appear and manage automatic sale, new and low-stock labels.
- Free
- Themes listed: Hyvä + Luma
composer require mage2kishan/module-smart-badge
- Package requirementsRead the source documentation
- Developer profileView Upwork profile
- Themes listedHyvä + Luma
- PHP versions listed8.1, 8.2, 8.3, 8.4
- Installation questionsDiscuss your store setup
What it does for your store
The main features, as listed in the module documentation.
-
Choose the right products
Assign labels to selected products or categories, with store-view and customer-group controls.
-
Combine rule conditions
Match products with price, stock, discount, product-age and other supported conditions. Every condition you enable must match.
-
Plan dates and display limits
Set optional start and end dates, order rules by priority and choose a maximum of one to ten badges per product.
-
Style and check your labels
Edit label text, colour and image settings, then check placement and readability with your store theme.
Installation
Example commands from the Magento root. Follow the package instructions and your staging and deployment process.
- 1Check the releaseMatch Magento, PHP, theme and dependency requirements.
- 2Install on stagingReview Composer changes and follow the package instructions.
- 3Configure and verifyUse the documented settings and test the affected features.
$ composer require mage2kishan/module-smart-badge $ bin/magento setup:upgrade $ bin/magento setup:di:compile $ bin/magento setup:static-content:deploy -f $ bin/magento cache:clean
Listed requirements
These are the details supplied in this listing. Confirm the selected release supports your Magento edition, PHP and storefront.
| Magento versions listed | 2.4.6, 2.4.7, 2.4.8 |
|---|---|
| PHP versions listed | 8.1, 8.2, 8.3, 8.4 |
| Themes listed | Hyvä, Luma |
| Composer package | mage2kishan/module-smart-badge |
Documentation
Product details and setup guidance. Check the package repository for release-specific instructions.
Put the right label on the right product
Smart Badge helps shoppers notice useful product details without adding the same message to every product description. Use a sale label for a discount, a new label for a recent arrival or your own text for a promotion. Saved rules decide which products qualify and when the label should appear.
Start with a small set of labels that explain something shoppers need to know. A badge works best when its wording matches the product and the offer. Adding more labels is optional: the module defaults to one badge per product.
Choose products, conditions and dates
Assign a rule to selected products or categories, then narrow it with smart conditions. The evaluator includes checks for price, stock quantity, discount, product age and other product signals. Enabled conditions within a rule must all match. A scheduled rule can have a start date, an end date or both, using the store timezone.
- Use product assignments for a specific promotion, or category assignments for a wider collection.
- Limit rules to selected store views and customer groups where needed.
- Set rule priorities to decide which qualifying rules are considered first.
- Use the admin rule form to edit label text, styling and image settings.
If both product and category assignments are present, the explicit product list takes precedence. Review the chosen scope before enabling a broad rule.
Control how labels work together
The module can collect automatic labels for sale products, new products and low stock. The automatic new-product check uses the product's new-from and new-to dates where supplied, with a recent creation-date fallback. The low-stock check uses an in-stock product's stock quantity; it should be checked against your inventory setup before you use it for customer-facing scarcity messages.
Choose the badge combination mode and priority order, then set a display limit from one to ten. In Collect All mode, separate settings control multiple rule badges and whether automatic labels can appear alongside manual or rule labels. These options let you keep product cards readable when several rules match.
Plan the storefront presentation
Review labels on category grids and product pages with your real product images, long names and promotional text. Check contrast, spacing and overlap at narrow widths. The installed package includes frontend templates and assets, but a custom theme can change image containers and card layouts, so its integration needs a staging check.
Installation and requirements
The Composer package is mage2kishan/module-smart-badge. Version 1.1.10 declares PHP 8.1, 8.2, 8.3 and 8.4 constraints and requires mage2kishan/module-core ^1.0.17, along with its Magento dependencies. Composer must resolve the complete dependency set for your store; a PHP constraint alone does not confirm compatibility with every Magento release.
From the Magento root on staging, install with composer require mage2kishan/module-smart-badge. Check bin/magento module:status Panth_Core Panth_SmartBadge and enable those modules if needed before your normal upgrade, compilation and static-content deployment steps. Use bin/magento cache:clean after the deployment.
In Admin, open Panth Infotech > Smart Badges > Manage Badges to create a rule. Start with a narrow product or category assignment, choose the label text and conditions, and test one matching and one non-matching product. General settings are under Stores > Configuration > Panth Extensions > Smart Product Badges.
Product-level manual labels use the product_badge, badge_custom_text and badge_custom_color attributes. Check the selected combination mode when mixing manual, rule and automatic labels.
For help checking your theme, inventory behaviour or installation requirements, contact Kishan. Any installation or customisation service is separate from the module download and should be agreed before work begins.
Developer integration
The helper Panth\SmartBadge\Helper\BadgeHelper::getProductBadges($product, $limit = true) returns the product's badges with the display limit applied by default. Use the module's existing renderer when integrating a custom product card, and check store, customer-group and theme behavior on staging.
The default product renderer is Panth_SmartBadge::product-badges.phtml, with supporting badge templates in the package. Review your theme overrides before changing image containers or badge placement.
Read the package README and setup and usage guide, matching the instructions to your selected release.
| Module Category | Marketing |
|---|---|
| Best For | All Sizes |
Changelog
-
1.0.0, Initial release
- Alpine.js-powered admin form with live preview panel
- Real-time badge rendering as settings change
- Product view and category view preview modes
- Style presets: Minimal, Bold, Rounded, Pill, Outlined, Shadow
FAQ
Does Smart Badge slow down my category pages?
Badge rules and storefront rendering add work. The effect depends on your catalogue, active rules and theme, so measure your real category pages with the product counts and label configuration you plan to use.
Can I create my own custom badges?
Yes. Create a label in the admin rule form, choose its text or image, and select products, categories and supported conditions. Test one product that should match and one that should not.
Does it work with configurable and bundle products?
The label is based on the product passed to the renderer. With configurable or bundle products, check the parent item on category pages and test selection changes on the product page. Use your actual theme and selected variants for this check before publishing labels based on variant data.
Will badges appear in product sliders and PageBuilder?
Category and product-page integration is included. Sliders and Page Builder blocks can use different product markup or load their contents dynamically, so they need an integration check. Test the exact block on staging before relying on its labels.
Can I schedule a badge for a specific campaign?
Yes. Set optional start and end dates on a rule, then check the campaign boundaries in your store timezone. These controls define a date range; use separate dated rules for repeat campaigns.
Does it work with Hyva themes?
The package includes storefront templates, styles and theme integration. Check it on your installed Hyva theme, including product cards and content that updates dynamically. Custom themes and overrides may need adjustments before the badges display correctly.
Is the source code available?
Yes. The public source repository is mage2sk/module-smart-badge. Compare the relevant release with your installed package version before using source examples.
Does Smart Badge support multi-store and multi-language?
Yes, rules can target store views and customer groups. Write the label text for each language and check the result in each store view. Custom badge text needs your own translations.
What if my theme already loads FontAwesome?
The module's default layout loads its Font Awesome stylesheet. If your theme already supplies it, ask your developer to check for duplicate assets and make a scoped layout adjustment where needed. Verify the icons after the change.
Can I limit how many badges show per product?
Yes. Set the maximum from one to ten; the default is one badge per product. The combination mode and priority order decide which qualifying badges appear. In Collect All mode, separate settings control multiple rule badges and whether automatic labels can appear alongside manual or rule labels.
Questions before you install?
Send me your composer.json and I will check for conflicts first. Free. Installation is +$45, custom work is quoted first.