Magento 2 New Product Badge: Automatic Marking of New Products
SKU: NEWPRODUCTBADGE1
- Automatic New badge based on the creation date
- Period in days freely configurable
- In listings and on the product page, position and color selectable
- Expires automatically, even with full-page cache enabled
Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.
Magento 2 new product badge: showing novelties without maintaining every product
New products sell better when visitors recognise them as new. If you set the “New” label by hand, you forget it when creating the product and never remove it again. The Magento 2 new product badge in this module is created automatically from the creation date or the new period and disappears once the configured period is over.
The extension is deliberately lean: one badge, one job. It appears in categories, search and on the product page, uses Tailwind classes in the Hyvä theme and needs no additional JavaScript. The Magento 2 new product badge thus differs from general label builders through its expiry handling for the full-page cache.
Magento 2 new product badge: marking new products without manual work
The badge is derived from data Magento already holds and disappears on its own once the product is no longer new.
Automatic from data
The creation date or the Magento new-from/to period decides whether the badge appears.
Period in days
For example 30 days from creation, configurable per store view.
Listing and detail page
The same badge in categories, search and on the product page.
Position and color
One of four corners, text and color matching your Hyvä theme.
Exclude categories
For example accessories or spare parts without a New badge.
Manual control
A product attribute forces or suppresses the badge in individual cases.
Detecting a Magento 2 new product badge automatically: creation date and new period
In the admin you choose how the module recognises “new”: by the creation date of the product or by the new-from/to period Magento already knows. You also set the number of days. Every product created within that period receives the badge. If you create products ahead of launch, use the new period to control the start.
- Source selectable: creation date or new-from/to period
- Period in days per store view
- Imported legacy products can be excluded via the attribute
Display of the New badge in listing, search and product page
The badge is placed with Tailwind classes on the product tile and in the gallery area of the product page. You set text and color per store view. No additional JavaScript is created, and the badge does not cover other elements because the position in the chosen corner works with an offset.
- Four corners to choose from
- Text and color per store view
- Identical display in listing, search and product page
New badge and full-page cache: expiry without flushing everything
A New badge has to disappear even when the category page sits in the full-page cache. That is why a cron job works out daily which products lose their new status and invalidates the related cache tags specifically. The cache stays fast and the display matches the expiry day. A product attribute additionally lets you force or suppress the badge in individual cases.
- Cron job invalidates only the affected product cache tags
- No need to flush the entire cache
- Attribute “Badge: force / suppress / automatic”
Use cases for the Magento 2 new product badge
Wherever novelties are a selling point.
Fashion and range changes
New collections carry the badge automatically until the period ends. The team does not have to touch every article.
Technology and accessories
New models stand out in listings, accessories or spare parts can be excluded by category.
Catalogue import
After an import all new articles appear with a badge, legacy products can be suppressed via the attribute.
Scheduled launches
With the new-from/to period you control when the badge of a pre-created product starts.
Manual New label versus automatic Magento 2 new product badge
The difference lies in the ongoing maintenance effort.
| Aspect | By hand | With module |
|---|---|---|
| Setting | Added per product | Automatic from data |
| Removing | Often forgotten | Expires after the configured period |
| Cache | Page keeps showing the badge | Targeted cache tag invalidation by cron |
| Multilingual | Maintain per store view | Badge text stored per store view |
| Exceptions | Laborious | Category exclusion and product attribute |
Setting up the Magento 2 new product badge
-
1
Define rules
Together we clarify whether creation date or new period counts and how many days a product stays new.
-
2
Adapt the design
Position, text and color are matched to your Hyvä theme.
-
3
Define exceptions
Categories and legacy stock that should not receive a badge are stored.
-
4
Check the cache
We test the expiry with the full-page cache enabled, after that the cron job runs in production.
Distinction from other Mironsoft modules
The Magento 2 new product badge does exactly one job. If you need arbitrary labels with their own rules and designs, such as “Sale”, “Bestseller” or “Last items”, use the general product label module. Both can be combined: the New badge handles the time-based expiry and the label module the rest.
Merchants who use the Magento 2 new product badge keep their product data unchanged. The module only reads the creation date and attribute.
No download, but personal setup
New Product Badge is not listed here as a ready-made download for self-installation. The purchase is a service order: after buying we contact you, set up the module and agree period, position and color with you to match your theme.
Frequently asked questions
Answers to typical questions about the Magento 2 new product badge.
How does the module know whether a product is new?
Does the badge disappear automatically?
Can I exclude single products or categories?
Can I add other labels like “Sale”?
How can I show a New badge automatically in Magento 2?
How can I remove the New badge after 30 days in Magento 2?
Does the Magento 2 new product badge work with Hyvä?
What happens with imported legacy products?
Can I download and install the module myself?
Magento 2 new product badge – Mironsoft