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–G), class range min/max, EPREL model ID, label image (gallery upload or URL), product information sheet URL (http(s); may point at a hosted PDF) and an optional gallery image of the sheet. Magento's product gallery does not accept PDF files.
- Global enable switch under Stores → Configuration → AlpenFX → Energy Label
- 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
- 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)
References to legal requirements describe what the extension does. Whether a shop meets a requirement depends on its configuration and use and is down to its operator. This is not legal advice.