Skip to content
New: 3 GARAN labels for free, no sign-up neededCreate now
EU legal guarantee
and GARAN label
GuideUpdated 9 October 20264 min read

Add the legal guarantee notice to WooCommerce

The official EU legal guarantee notice in your WooCommerce shop in a few minutes, with the free widget.

In WooCommerce, you add the legal guarantee notice to the product page template with a “Custom HTML” block, directly below the add-to-cart button. With classic themes, a small hook in the child theme does the job.

The code for WooCommerce

<div data-garantielabel></div>
<script src="https://www.garantielabel.app/widget.js" async></script>

Set further options such as display and language in the code builder.

Step by step in WooCommerce

  1. Open the template
    In WordPress, go to Appearance → Editor → Templates and open “Single Product”. With a classic theme, skip to step 4.
  2. Insert a block
    Below the “Add to Cart with Options” block, insert a “Custom HTML” block.
  3. Paste the code
    Paste the widget code and save the template. It then applies to all product pages.
  4. Classic theme
    Without the block editor, output the code in your child theme via the hook woocommerce_single_product_summary with priority 35, or use a snippet plugin.

Things to know about WooCommerce

Where the notice belongs in WooCommerce

In block themes, you edit the “Single Product” template in the Site Editor. In classic themes, WooCommerce builds the product page from the template content-single-product.php and its hooks:

For the notice in the footer, use the “Footer” template part in block themes. You find it under Appearance → Editor → Patterns, in the template parts. According to WooCommerce, template parts are always synced: a change applies everywhere the footer is used. A “Custom HTML” block with data-darstellung="link" is enough there.

Variations, brand and model identifier

A variable product consists of variations. Each variation has its own fields, including SKU and “GTIN, UPC, EAN, or ISBN”. If they stay empty, the value of the parent product applies. Brands have been part of core since WooCommerce 9.6. You manage them under Products → Brands and select them in the product.

WooCommerce has no dedicated field for the model identifier. The SKU is your own item number and not automatically the producer’s model identifier. The GARAN label names the brand and the model identifier, so there is one label per model identifier. If all variations share one model identifier, one label for the product is enough. The widget shows exactly one GARAN label per placeholder and does not change with the selected variation. If variations have different model identifiers, create these models as separate products, each with its own label.

Typical pitfalls in WooCommerce

Further sources

According to the Commission’s guidelines, the notice should also appear in the confirmation email. You customise WooCommerce emails under WooCommerce → Settings → Emails. To add the legal guarantee notice to the order email, insert the official graphic from our download page as an image there, depending on your theme via the email templates or an email plugin. A plain link is unlikely to count as a durable medium (CJEU, Case C-49/11, Content Services); the safest way is to put the notice directly in the email as an image, text or attachment. You will find the official files on our download page.

Producer guarantee? Then add the GARAN label

If the producer gives a commercial guarantee of durability of more than two years free of charge for the whole good, the GARAN label also belongs on the product page. With the GARAN label generator you create it in seconds from years, brand and model, your first three labels free and without sign-up. Below every finished label you get an embed code with permanent image URLs: you upload nothing and paste it into WooCommerce as shown above.

Prefer your own files? Then upload the full and the nested version to the media library of WooCommerce and enter the addresses in the widget code:

<div data-garantielabel
  data-garan-voll="https://…/GARAN-MX-500.svg"
  data-garan-klein="https://…/GARAN-MX-500-nested.svg"></div>

The widget then shows the nested version below the legal guarantee notice, and one click opens the full GARAN label.

Frequently asked questions

Do I need a plugin?

No. A “Custom HTML” block is enough. Only with classic themes without the block editor is a snippet plugin or a child theme the easiest way.

Does this work with Elementor or Divi?

Yes. Both have an HTML or code element that you drag below the add-to-cart button in the product template. In Elementor, product templates require Elementor Pro (Theme Builder).

Will my shop get slower?

Hardly. The script is small, loads asynchronously and does not block page rendering.

Why priority 35 for the hook?

According to the WooCommerce template, the add-to-cart button is hooked at priority 30 and the meta data at 40. With 35, the widget sits exactly in between, directly below the buy button.

Does every variation need its own GARAN label?

Only if the variations have different model identifiers. The widget shows one label per placeholder and does not change with the variation. Such models are better created as separate products.

Where do I set the brand for the GARAN label?

Since WooCommerce 9.6, under Products → Brands. You select the brand in the product. The former Brands plugin is no longer needed.

GARAN label done, for free.

Your first 3 labels are free. On Shopify, our app adds both EU labels automatically.