Product Label Hyva

v1.2.0 Updated Aug 25, 2026

Product Label Hyva

Hyva Theme compatibility layer for `wimakeit/module-product-label`.
Hyvä Compatible Magento 2.4.4 Magento 2.4.5 Magento 2.4.6 Magento 2.4.7 Mage-OS 2.0 Mage-OS 2.1
€49.00
Try the live demo
  • Updates and support included for 12 months
  • License key delivered immediately by email
  • 30-day money-back guarantee
  • Full documentation included
  • Compatible with Hyvä themes
  • Composer-ready installation

Product Labels — Hyvä Compatibility

Wimakeit Product Label renders its badges through Magento's own product image block, which means most of a Hyvä storefront already works without any extra module: category listings, search results, product widgets, related and cross-sell blocks, the comparison list, the wishlist and the cart page all display labels out of the box.

Two surfaces are built differently in Hyvä, and that is what this compatibility layer exists for. It adds them without forking a single Hyvä template, so a Hyvä upgrade never turns into a merge conflict.

Who it's for

  • Merchants running a Hyvä storefront who want labels on the product page gallery and in
  • the mini-cart, not only in the listing

  • Integrators who want to restyle the badges with Tailwind utilities in their own theme
  • Teams that upgrade Hyvä regularly and refuse to carry forked core templates

Key benefits

  • Product page gallery covered — Hyvä renders its gallery images as plain markup that
  • never reaches Magento's image block. This module anchors the label overlay into Hyvä's own gallery.additional container instead, which sits inside the gallery's positioned wrapper exactly where a badge belongs.

  • No template override — because that container is a documented Hyvä extension point,
  • nothing is forked. A Hyvä minor release cannot break the integration, and there is no copied template to re-sync.

  • Mini-cart drawer support — Hyvä's Alpine drawer reads its product image from
  • customer section data rather than from a rendered block, so the labels travel with that payload and reinforce the discount at the moment the shopper is closest to buying.

  • Optional badge on every gallery image and thumbnail — off by default, because the
  • product page label already floats over whichever image is showing and thumbnails are small enough that a badge is easily more clutter than signal. Turning either on copies the label already rendered above, so nothing is computed twice.

  • Tailwind sources registered automatically — running hyva:config:generate adds both
  • this module and the base module to the theme's Tailwind scan, so the wm-* classes are never purged and can be restyled with utilities.

  • Graceful degradation — the base module ships a complete, framework-free stylesheet,
  • so removing this layer leaves the labels rendering correctly everywhere else rather than breaking the storefront.

  • No business logic — everything about matching, indexing and rendering stays in the
  • base module. This package holds a layout instruction, an observer and a stylesheet.

  • Same server-side rendering — no JavaScript is added, no layout shift is introduced,
  • and the Full Page Cache behaviour is unchanged.

  • Zero configuration — install, enable, regenerate the Hyvä config, rebuild the CSS.
  • Every setting stays in the base module.

Compatibility

  • Magento 2.4.x / Mage-OS 2.x and 3.x equivalents
  • PHP 8.1, 8.2, 8.3, 8.4, 8.5
  • Requires wimakeit/module-product-label 1.0 or later
  • Requires hyva-themes/magento2-theme-module 1.0 or later
  • Tested against the Hyvä default theme 1.5 with Tailwind 4

Install this module via Composer. Make sure your auth.json is configured with your Wimakeit credentials.

Terminal
$ composer require wimakeit/module-product-label-hyva:^1.2.0
$ bin/magento setup:upgrade
$ bin/magento setup:di:compile

Installation notes

The standard composer require + setup:upgrade + setup:di:compile flow applies. The points below cover what's specific to this module.

Required dependencies

This module requires wimakeit/module-product-label 1.0 or later and hyva-themes/magento2-theme-module 1.0 or later. Install and configure the base module first: every setting, every label and every condition lives there.

Two extra steps after setup:upgrade

Unlike most modules, this one is not finished once setup:upgrade has run. Hyvä compiles its CSS ahead of time, so the module has to be registered with that build and the build has to be re-run:

bin/magento hyva:config:generate
cd app/design/frontend/<Vendor>/<theme>/web/tailwind
npm run build

The first command appends both Wimakeit_ProductLabelHyva and Wimakeit_ProductLabel to app/etc/hyva-themes.json. The second recompiles the theme stylesheet with the wm-* classes included. Skipping either leaves the labels rendered but unstyled.

What it changes on the storefront

SurfaceHandled byDefault
Category listing, search, widgets, related, cross-sell, comparison, wishlist, cart pagethe base module, no Hyvä-specific code neededon
Product page, main imagethis module, via Hyvä's gallery.additional containeron
Alpine mini-cart drawerthis module, reading the labels from customer section dataon
Every image of the product gallerythis module, copying the label already rendered aboveoff
Product gallery thumbnailsthis module, copying the label already rendered aboveoff

Configuration

Three settings are added to the base module's section, under Stores → Configuration → WiMakeIT → Product Labels → Hyvä Storefront:

SettingDefault
Show labels in the mini-cartYes
Repeat the label on every gallery imageNo — the product page label already floats over whichever image is showing, so this mainly changes whether the badge scrolls away with each image or stays put
Show labels on the gallery thumbnailsNo — thumbnails run around 60px, where a badge is easily more clutter than signal

There is no ACL resource and no cron job. Every other setting lives in the base module.

A note on how the two extras work

Hyvä renders the gallery slides in a plain PHP loop and the mini-cart rows in the browser, and neither offers a per-item extension point. Rather than fork those templates, this module attaches to the nearest documented container and moves or copies markup the base module already rendered.

That means the label text, shapes and colours are still produced once, on the server, by the same renderer as every other surface — nothing is recomputed in the browser. It also means these two surfaces degrade quietly: if a future Hyvä release restructures the drawer or the gallery, the badges stop appearing there instead of breaking the page, and every other surface is unaffected.

Upgrading Hyvä

This module deliberately overrides no Hyvä template. It attaches to gallery.additional, a container Hyvä declares in its own catalog_product_view.xml, so a Hyvä minor or patch release cannot leave a stale forked template behind. After a Hyvä upgrade, re-run hyva:config:generate and the Tailwind build as you would for any other module.

Removing it

Disabling this module leaves labels working everywhere the base module covers on its own. Only the product page gallery and the mini-cart lose their badges, and the wm-* Tailwind classes drop out of the next theme build. Nothing breaks.

Version
v1.2.0
Support
12 months
Last updated
Aug 25, 2026
Magento
Magento 2.4.4 Magento 2.4.5 Magento 2.4.6 Magento 2.4.7 Mage-OS 2.0 Mage-OS 2.1
PHP
PHP 8.1 PHP 8.2 PHP 8.3
Hyvä
Compatible
Package
wimakeit/module-product-label-hyva

Compatibility checker

Pick your stack to see if this module fits.

Changelog

Categories: Security, Feature, Fix, Perf, Admin, Deps.

[1.2.0] - 2026-08-18

Fix

  • Une étiquette posée sur une vignette de listing pouvait faire disparaître la photo du produit.
  • Les tailles xs à xl ne se distinguaient presque pas sur les formes pilule et texte seul.
  • Les étiquettes ne collaient plus au bord de l'image, sauf les rubans de coin pour lesquels c'est voulu.

Deps

  • Réclame désormais le module de base en version 1.2 ou supérieure.

[1.1.0] - 2026-08-17

Feature

  • Labels now appear in the Hyvä mini-cart drawer, reinforcing the discount at the moment the shopper is closest to buying. On by default.
  • Optional labels on every image of the product gallery, and on the gallery thumbnails. Both are off by default, because the product page badge already floats over whichever image is showing and thumbnails are small enough that a badge is easily more clutter than signal.
  • Three new settings under Stores, Configuration, WiMakeIT, Product Labels, Hyvä Storefront.

Fix

  • Links inside a repeated label are turned into plain text. Gallery thumbnails and mini-cart thumbnails are themselves links, and a link inside a link is invalid and traps keyboard users.
  • The mini-cart badge now sits inside its thumbnail instead of overflowing beside it.

[1.0.0] - 2026-08-17

Feature

  • Product page gallery labels on Hyvä, anchored into Hyvä's own gallery.additional container rather than through a forked template, so a Hyvä upgrade cannot break the integration.
  • Mini-cart drawer labels, delivered through customer section data because Hyvä's Alpine drawer never renders a product image block.
  • Both this module and the base module are registered with Hyvä's Tailwind compilation, so the wm-* classes survive the purge and integrators can restyle badges with utilities in their own theme.

Deps

  • Requires wimakeit/module-product-label 1.0 or later and hyva-themes/magento2-theme-module 1.0 or later. Tested against the Hyvä default theme 1.5 with Tailwind 4.

Found a bug? Tell us about it.

A short form opens in a new tab — the module name and your language are already filled in. Share what you tried, what went wrong, and we will get back to you within one business day.

Report a bug for Product Label Hyva
Module SKU: wimakeit-module-product-label-hyva · Language: en_US

Need help?

Our team is available to assist with integration.

Contact us
Planifier un appel