Skip to content

Configuring Durabix

Durabix provides flexible controls to adjust where and how the harmonised legal guarantee notice, GARAN durability label and repairability badges appear across your WooCommerce store. This guide covers global settings, product placement options, developer hooks and variation handling.

Open WooCommerce > EU Legal Guarantee in wp-admin (accessible to users with the manage_woocommerce capability). All options are stored cleanly in the durabix_settings option.

  • Enable the notice and label: Master switch. When enabled (default), the legal notice, GARAN label and repairability badges are displayed in all configured locations. When turned off, notices are hidden across the entire site, while product editor fields and green claim checks remain functional.
  • Display Location: Choose where guarantee information appears on single product pages:
    • Under single product summary (near add to cart): Displays the notice bar, GARAN label and repairability badge inside the product summary block (priority 25, 26 and 27 on the woocommerce_single_product_summary action hook).
    • In a dedicated product tab (“Guarantee & Durability”): Creates an accessible product tab (priority 35) on the single product page. The tab is only rendered if the product has guarantee information or repairability ratings to display.
  • Checkout: Controls display above the “Place order” button on checkout pages. Supports both classic WooCommerce shortcode checkout and the modern Cart and Checkout Blocks.
  • Order confirmation email: Automatically inserts the legal guarantee reminder into customer-facing confirmation emails (customer_processing_order and customer_on_hold_order).
  • Every page: Optional footer reminder (wp_footer). When turned on, a discreet legal guarantee reminder is rendered in the global footer of every front-end page.
  • National note: Custom plain text displayed beneath the official notice and in order confirmation emails. The European Commission notice itself cannot be altered and specifies the EU statutory minimum of two years. If your national transposition law provides consumers with a longer period (for example, 3 years in Spain, 5 years for certain goods in Norway, or indefinite in Sweden), enter that statutory clarification here. In multilingual stores running WPML or Polylang, this string is registered for translation under textdomain durabix and name national_note.

You can embed the harmonised legal guarantee notice anywhere on your site using the shortcode:

[durabix_notice]

This is ideal for dedicated consumer rights pages, general terms and conditions (T&C), or custom checkout layouts.

Developer filters and B2B trade customer handling

Section titled “Developer filters and B2B trade customer handling”

The statutory obligation to display the harmonised legal guarantee notice applies specifically to consumer transactions (B2C). Under EU law, business buyers (B2B) do not receive statutory consumer guarantee rights.

Durabix provides the durabix_show_notice filter, allowing store developers to conditionally hide or show notices:

add_filter('durabix_show_notice', function(bool $show, string $context, $object): bool {
// $context can be: 'product', 'checkout', 'email', 'footer', or 'shortcode'
// $object is a WC_Product on product pages, or a WC_Order in order emails
// Example: Hide the notice for wholesale / B2B logged-in customers
if (is_user_logged_in() && current_user_can('wholesale_customer')) {
return false;
}
return $show;
}, 10, 3);

Variable products support both uniform and per-variation durability guarantees:

  • Parent product defaults: Values entered in the parent product General tab serve as the baseline for all variations.
  • Variation-level overrides: When editing individual variations, you can configure distinct commercial durability years, producer brand names and model identifiers.
  • Dynamic storefront swapping: When a customer selects a variation with unique durability terms, Durabix dynamically updates the GARAN label in real time using a lightweight inline handler, without requiring page reloads.
  • Empty field inheritance: Any variation field left blank automatically inherits its value from the parent product.

Order confirmation emails and SVG attachments

Section titled “Order confirmation emails and SVG attachments”

Under Directive 2011/83/EU, Article 8(7)(a), confirmation of distance contracts on a durable medium must include all statutory pre-contractual information given to the consumer.

Durabix ensures compliance by including the durability guarantee in order emails:

  • HTML and plain text bodies: Displays the notice and text confirmation of brand, model and guaranteed years.
  • SVG file attachments: Desktop and webmail clients (such as Gmail, Outlook and Apple Mail) do not consistently render embedded dynamic SVG graphics within email bodies. To guarantee fidelity and permanence on a durable medium, Durabix attaches each unique GARAN label as an individual, self-contained SVG file.
  • Deduplication: If an order contains multiple quantities or variations sharing the exact same GARAN label, only one shared SVG attachment is added to the email.