← Alle Erweiterungen
MAGENTO 2v1.0.1

Energy Label

Magento 2 Energy Label (AlpenFX)

Shows a nested energy-class arrow next to the Magento selling price — on the product page, in category and search listings, in the cart and mini-cart, on the checkout review, and over REST and GraphQL. Typical use: appliances and other goods that carry an EU energy class.

Composer: alpenfx/module-energy-label · AlpenFX_EnergyLabel

This module displays class, label image and product information sheet from product attributes. Whether a shop must show an energy label, and how, is the merchant's decision. The module does not assess energy-labelling or privacy law.

Features

  • Product attributes: energy class (A+++ to G), class range min/max, EPREL model ID, label image (gallery image or an http(s) address), an energy label document and a product information sheet. Each document is a PDF file chosen on the product, or an existing http(s) address that stays valid until it is replaced or removed. An optional gallery image of the sheet can still be selected. Magento's product gallery does not accept PDF files.
  • Global enable switch under Stores → Configuration → AlpenFX → Energy Label
  • Arrow size in three groups: website (product page, cart, mini-cart, checkout), category and search, and the invoice. Each is Small, Medium or Large; Medium is the default.
  • Invoice arrow on the customer invoice, the print view, the invoice email, the admin invoice and as a text line in the invoice PDF. The switch (invoice/show) is on by default and can be turned off. The PDF text size follows the invoice size.
  • Storefront: PDP, listing, cart, mini-cart and checkout review (plain HTML, no Bootstrap classes)
  • Click the arrow to open the full label and the product information sheet, or show them expanded on the product page with one setting
  • EPREL model ID with a short hint and a link to the EU product register (EPREL)
  • REST GET /V1/alpenfx/energy-label/product/:productId
  • GraphQL alpenfxEnergyLabel(productId:) with the same fields

When the toggle is off, REST answers 404 and GraphQL returns null. When the product has no class, the storefront stays unchanged.

Installation

composer require alpenfx/module-energy-label
bin/magento module:enable AlpenFX_EnergyLabel
bin/magento setup:upgrade

Then fill the Energy Label attributes on a product. Nothing is shown until the module is enabled and an energy class is set.

Out of scope

  • Live fetch from the EPREL API or the CLASP widget
  • Drawing official label artwork
  • Tyre extra fields (wet grip, noise)

Verweise auf rechtliche Vorgaben beschreiben, was die Erweiterung tut. Ob ein Shop eine Vorgabe erfüllt, hängt von Konfiguration und Einsatz ab und liegt beim Betreiber. Dies ist keine Rechtsberatung.