Skip to content

GARAN Guarantee Label

Module: Magenx_GaranGraphQl

From 27 September 2026, EU law (Directive (EU) 2024/825 and Implementing Regulation (EU) 2025/1960) requires two things from shops selling goods to EU consumers:

  1. The harmonised legal-guarantee notice: every shop must show it.
  2. The GARAN durability label: required wherever a producer offers a free commercial guarantee of durability over the whole product for more than two years.

This module serves both to the storefront: the official notice in the store’s language, and a label per product rendered onto the official artwork. The order-confirmation email can include them too.

The GARAN durability label on a product page
GARAN label on a product page.

Install adds an EU GARAN Guarantee attribute group to every product:

AttributeRule
BrandMust fit the label’s brand field.
Model identifierMust fit on one line with the brand.
Guarantee duration (years)Whole or half years, more than 2 and at most 99. 4,5 is accepted.
Guarantee terms URLAn absolute http(s) URL.

A label appears only when all four have valid values, from the product itself, its configurable parent, or the fallbacks in configuration. Values that don’t fit are refused when the product is saved, and checked again when read, because imports and mass updates skip the save checks.

  1. Go to Stores > Configuration > Magenx > EU Guarantee Notice & GARAN Label. Everything is off by default.
  2. Turn on the module and choose the notice language (24 official versions; empty uses the store locale, then English).
  3. Exclude product types that aren’t goods, such as gift cards and downloads.
  4. To show GARAN labels, turn them on and set the brand, model and terms URL fallbacks.
  5. Fill the GARAN attributes on products with a durability guarantee.
  6. Choose how the order email carries the notice and labels: not at all, inline, or as PNG attachments. You can also attach the producer’s terms PDF.
  • PHP gd with FreeType. It checks that brand and model fit the label and renders the label images. Without it no label is served.
Terminal window
composer require magenxcommerce/module-garan-graph-ql
bin/magento module:enable Magenx_GaranGraphQl
bin/magento setup:upgrade
bin/magento setup:di:compile # production mode only
bin/magento cache:flush

Stores > Configuration > Magenx > EU Guarantee Notice & GARAN Label

Legal Guarantee Notice

EU harmonised notice on the legal guarantee of conformity and EU GARAN label (Implementing Regulation (EU) 2025/1960, applicable from 27 September 2026). Where they appear is decided by the storefront. This module does not constitute legal advice.

SettingDefaultScopeNotes
Enable
magenx_garan/general/enabled
NoStore viewYes/No. Kill switch: "No" makes the garanNotice query and every GARAN field return null and removes the email additions for this scope.
Notice Language
magenx_garan/general/language
emptyStore viewDropdown. Shown when Enable = Yes. Selects which of the 24 official notice versions and which Your Europe link are served. Empty follows the store locale, then English.
Product Types Without Legal Guarantee
magenx_garan/general/excluded_product_types
virtual,downloadable,giftcardStore viewMultiple select. Shown when Enable = Yes. Non-goods such as gift cards or downloads: they never get a GARAN label, and Cart.garan_notice_required and the email notice ignore them.

EU GARAN Label

Only for products whose producer offers a commercial guarantee of durability free of charge, for the entire good and for more than two years. Maintain the duration on the product (group "EU GARAN Guarantee"); brand, model identifier and terms URL can come from the settings below. A variant without its own values inherits them from its configurable parent.

SettingDefaultScopeNotes
Enable GARAN Label
magenx_garan/garan/enabled
NoStore viewYes/No. Needs the notice to be enabled too. "No" makes garan_label / garan_labels return null and stops the order item snapshot.
Brand Comes From
magenx_garan/garan/brand_source
garan_attributeStore viewDropdown. Shown when Enable GARAN Label = Yes. A brand maintained on the product always wins. Brand and model identifier share one line on the label: a value that is too long is rejected, not shrunk, and the product then shows no label at all.
Brand Product Attribute
magenx_garan/garan/brand_attribute
emptyStore viewDropdown. Shown when Enable GARAN Label = Yes, Brand Comes From = product_attribute. Read for products without their own GARAN brand; select attributes resolve to their option label.
Brand
magenx_garan/garan/brand_value
emptyStore viewText. Shown when Enable GARAN Label = Yes, Brand Comes From = config_value. Printed on the label of every product without its own GARAN brand.
Model Identifier Comes From
magenx_garan/garan/model_source
garan_attributeStore viewDropdown. Shown when Enable GARAN Label = Yes. A model identifier maintained on the product always wins. Careful with "Product name": most names are too long for the label line shared with the brand, and a value that does not fit means no label at all.
Guarantee Terms URL
magenx_garan/garan/terms_url
emptyStore viewText. Shown when Enable GARAN Label = Yes. Used for every product without its own URL. Full http:// or https:// address in the store view language; without any URL no label is served.

Order Confirmation Email

Magento still sends the order confirmation in a headless setup, so the notice, the labels and the guarantee terms travel with it.

SettingDefaultScopeNotes
Legal Guarantee Notice
magenx_garan/email/notice
noStore viewDropdown. "Inline" puts the notice graphic below the items; "As a file attachment" sends it as a PNG instead, readable in clients that block remote images.
GARAN Labels
magenx_garan/email/garan
noStore viewDropdown. Labels come from the snapshot taken at order placement. "As a file attachment" sends one PNG per labelled item, named after its SKU.
Attach Guarantee Terms
magenx_garan/email/attach_terms
NoStore viewYes/No. The guarantee statement must reach the consumer on a durable medium at the latest at delivery (Art. 17(2) Directive (EU) 2019/771); a link to a website is not sufficient (CJEU C-49/11). Attached only to orders with at least one GARAN-labelled item.
Guarantee Terms File (PDF)
magenx_garan/email/terms_file
emptyStore viewFile. Shown when Attach Guarantee Terms = Yes. One document per store view. It must name the goods it covers, e.g. "applies to all products of brand X carrying the GARAN label".
Attachment File Name
magenx_garan/email/terms_filename
guarantee-terms.pdfStore viewText. Shown when Attach Guarantee Terms = Yes. Name the customer sees in the email. Leave empty for the uploaded file name.

Grant these under System > Permissions > User Roles > Role Resources:

ResourceUnderID
EU Guarantee Notice & GARAN LabelStores > Settings > ConfigurationMagenx_GaranGraphQl::config

ProductInterface.garan_label and CartItemInterface.garan_labels are resolved for a whole list at once. Order items read a copy saved with the order, so the label an order was sold with never changes.

Label image URLs point at PNGs rendered on first request. When an image URL is null, show alt_text. Any error returns null and is logged; it never breaks a product or cart query.

Queries

garanNotice: GaranNotice

The official EU harmonised notice on the legal guarantee of conformity (Implementing Regulation (EU) 2025/1960, Annex I) in the store's notice language. Null when the notice is disabled for the store.

Fields added to Magento types

FieldTypeDescription
ProductInterface.garan_labelGaranLabelThe EU GARAN label of this product. A variant without own values inherits its configurable parent's. Null when the product has no qualifying producer guarantee or the label is disabled.
CartItemInterface.garan_labels[GaranLabel!]GARAN labels of the simple products behind this line: the item itself, the selected variant, or every bundle child. Empty when none qualifies; null when the label is disabled.
OrderItemInterface.garan_labels[GaranLabel!]GARAN labels frozen on this item when the order was placed. Empty when none applied; null when the module is disabled.
Cart.garan_notice_requiredBooleanTrue when the legal guarantee notice belongs next to this cart: the notice is enabled and at least one line is not an excluded product type.

Types

type GaranNotice - The harmonised legal guarantee notice. The artwork must be shown unmodified; only its size and language may change.
FieldTypeDescription
languageString!ISO 639-1 code of the official language version served, e.g. `de`.
svg_urlString!Absolute URL of the official notice SVG. Render it at least 420 CSS px wide so its QR code stays at least 2 x 2 cm.
png_urlString!Absolute URL of the official notice PNG (1654 x 2339 px), for contexts that cannot show SVG.
link_urlString!Your Europe link target, identical to the QR code destination. Show it as a clickable link next to the notice.
link_labelString!Link text as printed on the notice, e.g. `europa.eu/youreurope/garantien`.
alt_textString!Alternative text of the notice image, translated to the store locale.
excluded_product_types[String!]!Product type ids that carry no legal guarantee notice (gift cards, downloads).
type GaranLabel - The EU GARAN label of a producer's free commercial guarantee of durability over more than two years (Implementing Regulation (EU) 2025/1960, Annex II).
FieldTypeDescription
skuString!SKU of the simple product the label belongs to.
product_nameString!Name of the simple product the label belongs to; differs from the line name for bundle children and variants.
brandString!Brand printed on the label.
model_identifierString!Model identifier printed on the label.
duration_yearsFloat!Guarantee duration in years: whole or half years, more than 2.
formatted_durationString!Duration as printed on the label, e.g. `5` or `4,5`.
terms_urlString!The producer's guarantee terms. Link it next to the label.
image_urlStringAbsolute URL of the full label PNG (539 x 567 px), rendered onto the official artwork and cached. Null when it cannot be rendered; show alt_text then.
nested_image_urlStringAbsolute URL of the compact nested-display label PNG (737 x 113 px), meant as the trigger that opens the full label. Null when it cannot be rendered.
alt_textString!Accessible text carrying all label information, translated to the store locale.
info_urlString!The Commission's information page on the GARAN label. Link it next to the label.