Magento 2 Experts — Hyvä Theme, Tailwind CSS & SEO from a Single Source ›

Magento 2 New Product Badge: Automatic Marking of New Products

Magento 2 Extension Hyvä Ready Magento 2.4.x

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
Auf Lager
€79.00

Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.

No download, but personal setup

No download, but personal setup. This product is not a downloadable software package for self-installation. With your order, you commission Mironsoft to individually set up this module in your shop. We will get in touch with you within 2 business days — we'll sort out the details and payment together then.

This offer is aimed at business owners and companies running a Magento 2 shop.

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.

6 Features

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.

01Automatic detection

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
Stores › Configuration › New Product Badge
Source
Creation date (created_at)
Period
30 days
Position
Top left
Text DE / EN
Neu / New
Category page · Product tile
Tile with badge
Alpine Hiking BootNEW · 3 days
Classic Hiking Bootno badge
Trekking SockNEW · 12 days
02Display

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
03Cache and expiry

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”
Cron · New badge expiry
Run
daily 00:10
Expired
14 products
Invalidated
Cache tags of the 14 products
Full cache
unchanged

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.

AspectBy handWith 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. 1

    Define rules

    Together we clarify whether creation date or new period counts and how many days a product stays new.

  2. 2

    Adapt the design

    Position, text and color are matched to your Hyvä theme.

  3. 3

    Define exceptions

    Categories and legacy stock that should not receive a badge are stored.

  4. 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.

04How the purchase works

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.

Important to know

Your purchase does not include a download link. We will get in touch with you within 2 business days — we'll sort out the details and payment together then. This offer is aimed at business owners and companies running a Magento 2 shop.

FAQ

Frequently asked questions

Answers to typical questions about the Magento 2 new product badge.

How does the module know whether a product is new?
Either by the creation date or by the new-from/to period Magento holds on the product. You also set the number of days.
Does the badge disappear automatically?
Yes. A cron job tracks the expiry and invalidates only the affected cache tags, so flushing the entire cache is not necessary.
Can I exclude single products or categories?
Yes. Categories can be excluded, single products can be forced or suppressed via an attribute.
Can I add other labels like “Sale”?
This module shows only the New badge. For arbitrary further labels there is a separate label module, and both can be combined.
How can I show a New badge automatically in Magento 2?
With the Magento 2 new product badge: you choose the source, set the days, and all products within the period receive the badge in listings and on the detail page.
How can I remove the New badge after 30 days in Magento 2?
Set the period to 30 days. After that the Magento 2 new product badge removes itself and the affected cache entries are refreshed by cron.
Does the Magento 2 new product badge work with Hyvä?
Yes. The badge uses Tailwind classes in the Hyvä theme and needs no additional JavaScript.
What happens with imported legacy products?
With the product attribute you suppress the badge for existing stock that received a new creation date during import.
Can I download and install the module myself?
No. This offer is not a download product. After purchase we install and configure the module personally in your shop.
Write Your Own Review
You're reviewing: Magento 2 new product badge – Mironsoft
loader
Loading...

You submitted your review for moderation.

This form is protected by reCAPTCHA - the Google Privacy Policy and Terms of Service apply.

Magento 2 new product badge – Mironsoft

Magento 2 new product badge – Mironsoft

€79.00