| 开发者 |
market-it
bevelededge |
|---|---|
| 更新时间 | 2026年9月9日 14:30 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[miegn_guarantee_notice] shortcode for placing it anywhere else (page builders, widgets, the site header/footer, specific templates)[miegn_guarantee_notice] anywhere — a header or footer template, a page builder's own layout, widgets, an order confirmation email template — and it renders exactly where you put it.
Checkout works automatically either way your store is set up: on the classic checkout template, and on the newer WooCommerce Checkout block — each is detected and handled by its own mechanism, so switching between them (or a WooCommerce update changing the default) doesn't silently break it. If your checkout is instead built with a page builder that reconstructs the checkout outside WooCommerce's own template/block, verify the notice appears there the same way you would for header/footer; the shortcode remains the dependable fallback if it doesn't.
For an order confirmation email template — which can't run JavaScript, so use Always visible — add [miegn_guarantee_notice] to the template yourself, or call MIEGN_Notice::instance()->render() from a woocommerce_email_* hook.
Language handling
The plugin bundles the official notice for all 24 EU languages and shows it fully automatically: it detects the visitor's language (Polylang or WPML if active, otherwise the site locale), shows the matching notice image, and links it to that language's official "Your Europe" guarantee-information page. Nothing needs configuring for this to cover every official EU language. The "Default / fallback language" setting only matters on the rare request where a visitor's language can't be determined at all.
The trigger link (shown when "Display" is set to Popup) is automatic too, by default. The plugin ships its own translation of the trigger text — English, German, Swedish, Spanish and French, see /languages — and shows the one matching the notice's language, independently of the site's own admin locale and without needing Polylang or WPML for this specific piece of text. Every other supported notice language falls back to the English wording.
If you'd rather every visitor see the exact same wording — in one language, worded your way — type your own text under WooCommerce → EU Guarantee Notice, "Trigger link text": whatever you type there is shown verbatim to every visitor, in every language, instead of the automatic translation. Leave it blank to keep the automatic behaviour. Developers who want the automatic default translated into additional languages, or an override that varies by language itself, can use the miegn_trigger_text filter, which receives the notice's resolved language code.
Source of the bundled artwork and links
The notice images and the per-language link destinations are taken, unmodified, from the European Commission's "Practical guidelines for sellers and producers on the EU harmonised notice and label for product guarantees" and its accompanying high-resolution vector file download:
https://commission.europa.eu/publications/high-resolution-vector-files-eu-notice-and-label-product-guarantees_en
© European Union. Reused under the Commission's default document reuse policy (Commission Decision of 12 December 2011, equivalent to Creative Commons Attribution 4.0), which permits redistribution — including in commercial software — provided the source is credited, as it is here.
WooCommerce® is a registered trademark of Automattic Inc. This plugin is an independent, third-party extension and is not affiliated with, endorsed by, or sponsored by Automattic or the WooCommerce project.
Privacy
This plugin does not process any personal or order data. It renders a static notice image and a link to an EU information page; nothing is stored, logged, or sent to market-it! or any other external service.
Legal disclaimer
market-it! EU Guarantee Notice is a software tool designed to help WooCommerce merchants display the official EU legal-guarantee notice. It is provided for informational and operational purposes only and does not constitute legal advice. Merchants remain responsible for ensuring that their website and business processes comply with all applicable laws in their jurisdiction, including confirming the notice artwork, placement, and link destination remain current.
Legal requirements may vary between countries and may change over time. Seek advice from a qualified legal professional where needed.
market-it! does not guarantee legal compliance and accepts no responsibility for how the plugin is configured, implemented, or used.
/wp-content/plugins/ (WooCommerce must already be active).assets/notice/ (see "Source of the bundled artwork and links" above).No. It displays the general legal-guarantee notice required for all sellers. The durability label only applies if you voluntarily offer a guarantee of more than two years on the whole product at no extra cost, and is out of scope for this plugin.
No. It only renders a static notice image and link; no personal or order data is read, stored, or transmitted.
No — and you shouldn't. The regulation requires the official artwork to be used unmodified. The plugin only controls where, how (popup or always visible), and in which language it appears.
That's the pattern shown in the European Commission's own guidelines — a short link that reveals the full notice on click, rather than a large image inserted permanently into every page. You can switch to "Always visible" in settings if you prefer the notice shown directly.
Those regions are generated by your theme or page builder, not by WooCommerce, so there's no reliable, universal hook this plugin can use that's guaranteed to land inside the area's own styling — on some page builders it can render outside the container entirely. Use the [miegn_guarantee_notice] shortcode in your header/footer template or builder instead; it always renders exactly where it's placed.
Yes. It detects Polylang and WPML if active, otherwise the site locale, with a configurable fallback language.
No. It is a software tool for displaying the official notice. You remain responsible for confirming the artwork, placement and link destination continue to meet the regulation.
/languages translation catalog of its own (see the 0.9.0 entry below), there was nothing for WordPress's standard translation lookup to find in that case, and it silently fell back to the untranslated English source instead of using this plugin's own bundled translation under includes/i18n/. The notice image and its link were never affected by this — only the trigger link text.market-it-eu-guarantee-notice-for-woocommerce) per WordPress.org review feedback — the previous slug exceeded the 50-character limit. No functional change; existing settings are unaffected since option names didn't change./languages — those are managed by WordPress.org's own translation platform once approved. The small set of bundled translations this plugin needs for its own cross-language trigger-text feature (showing "Your legal guarantee rights" correctly even when the notice's language differs from the site's own locale) now live under includes/i18n/ instead, where they can't be confused with or overwritten by the site-locale translations WordPress.org provides.max-height: 92vh ceiling so it can never run off the bottom of the screen — the notice image itself now shrinks to fit inside that ceiling (keeping its proportions), instead of staying full-size and forcing the card to scroll internally to reach the bottom of it.transform, filter, or will-change on a page-builder section wrapper, for example), it was trapped there regardless of its z-index. The dialog now relocates itself to be a direct child of <body> on page load, which sidesteps that entirely.[miegn_guarantee_notice] shortcode for those spots instead — it always renders exactly where it's placed. Checkout stays as an automatic option since it's a genuine WooCommerce template hook, but it depends on a classic (non-block) checkout template — verify it appears correctly on yours./languages), and the popup trigger link's default text uses it: it's shown in the language that matches the notice, automatically, without needing Polylang or WPML for this specific text. Other notice languages fall back to English.miegn_trigger_text filter if you want to vary it by language yourself.miegn_supported_languages filter.miegn_trigger_text_translations filter, or globally via the "Trigger link text override" setting.