WordPress.org

Plugin Directory

EU Withdrawal Button for WooCommerce – Right of Withdrawal Form (Directive 2023/2673)

EU Withdrawal Button for WooCommerce – Right of Withdrawal Form (Directive 2023/2673)

描述

EU Directive 2023/2673 gives online shoppers across the EU a clear right to withdraw from a purchase. From June 19, 2026, every WooCommerce store selling to EU consumers needs an easy, visible way for customers to start a withdrawal.

EU Withdrawal Button for WooCommerce does exactly that — and nothing you have to think about. You switch it on, and the whole withdrawal process runs on its own. Here is what happens.

What your customers see

  1. Their right to withdraw is shown up front. As soon as a customer places an order, their order confirmation email already includes a “Withdraw from this order” button and a note telling them how many days they have to change their mind. Customers see their rights respected from the very first moment — which builds trust in your store.
  2. The button is always within reach. A sticky withdrawal button also sits on every page of your store, so anyone — including guest customers with no account — can start a withdrawal at any time during the period.
  3. They fill in a short form. The customer enters their order number and the email they used at checkout. No login required.
  4. They confirm. The plugin shows their order summary, the customer clicks “Confirm withdrawal”, and that’s it.
  5. They get written proof. The customer immediately receives a timestamped confirmation email that serves as proof of their withdrawal request, as required by the Directive.

What you see as the store owner

  1. You get notified. An email lands in your inbox the moment a request comes in.
  2. The order is flagged for you. The order status changes to “Withdrawal Requested” and a note is added to the order, so nothing gets lost.
  3. You set the withdrawal period. It defaults to 14 days (the EU standard), but you can change it — and the plugin uses your value everywhere: in the order-email note, in the form, and in the validation check.
  4. You stay in control of the money. The plugin never touches payments — you issue the refund through your normal WooCommerce workflow, exactly as today.

That’s the whole flow. The customer gets a simple, legal way to withdraw; you get a tidy, trackable request — with zero manual work once it’s switched on.

Features

  • Sticky withdrawal button on every page (text and styling configurable)
  • “Withdraw from this order” button inside WooCommerce order emails — works for guest customers
  • Modal popup or dedicated page mode
  • Order validation (order number + email + withdrawal-period check)
  • Custom “Withdrawal Requested” WooCommerce order status
  • Timestamped confirmation email to the customer + notification to the merchant
  • WooCommerce email integration (shows under WooCommerce Settings Emails)
  • Works with custom order number plugins (Sequential Order Numbers, etc.)
  • WCAG 2.1 AA accessible (keyboard navigation, focus trap, ARIA labels)
  • Rate limiting to prevent abuse
  • Translation-ready (.pot file included)
  • HPOS (High-Performance Order Storage) compatible

Who is this for?

WooCommerce store owners who sell to EU consumers and want a clear, compliant withdrawal process that runs by itself — without coding, legal headaches, or extra work for the customer.

Disclaimer

This plugin is a technical tool that helps implement a withdrawal flow. It does not constitute legal advice and does not guarantee compliance with any specific regulation. Consult a legal professional to ensure your store meets all applicable requirements.

屏幕截图

安装

  1. Upload the eu-withdrawal-button-for-woocommerce folder to /wp-content/plugins/
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to WooCommerce Settings Withdrawal Button to configure
  4. The withdrawal button will appear on your storefront

常见问题

What does this plugin do?

It adds a visible withdrawal button to your WooCommerce store and a form where customers can submit a right-of-withdrawal request under EU Directive 2023/2673. The plugin validates the order, notifies both the customer and the merchant by email, adds an order note, and tracks the request.

Is there a live demo?

Yes. You can try the plugin — including the paid Basic and Pro features — on our live demo store, no installation required: https://plugin.riin.eu

Does it work for guest orders?

Yes. Customers do not need an account. The form verifies the request using the order number and the email address used at checkout, so guest checkout orders are fully supported.

Is the withdrawal button added to WooCommerce order emails?

Yes. A “Withdraw from this order” button is added automatically to the customer’s order-processing and order-completed emails, along with a note showing how many days remain to withdraw. Because guest customers have no My Account page, the order email is their guaranteed touchpoint — they can start a withdrawal in one click, straight from their inbox.

Does it send email notifications?

Yes. When a request is submitted, the customer receives a confirmation email and the merchant receives a notification. The customer’s email is timestamped and lists the order and the items being withdrawn — it serves as written proof of the withdrawal request, as required by EU Directive 2023/2673. All emails appear under WooCommerce Settings Emails, so you can enable, edit and style them like any other WooCommerce email.

What happens when a customer submits a withdrawal?

The customer receives a confirmation email, the merchant receives a notification, an order note is added, and the order status changes to “Withdrawal Requested” (configurable).

Does the plugin refund or pay out money?

No. The plugin manages the withdrawal request and order status only — it never moves money. You process the actual refund through your normal WooCommerce refund and payment-gateway workflow, exactly as you do today. This keeps you in full control of every payout.

What is the difference between the free, Basic and Pro versions?

The free version includes everything you need to receive and track withdrawal requests: the sticky button, the validated form, the withdrawal button inside order emails, and customer + merchant emails. Basic adds a customer-facing experience (Thank-You and My-Account views, a “Withdrawal Completed” status and email, an admin withdrawals dashboard, colours and styling, and category exclusions). Pro adds a statistics dashboard, CSV export, a REST API, per-product exceptions and WPML/Polylang support.

Try the full version live — no install needed — at https://plugin.riin.eu

Can I exclude certain products?

Category exclusions are available in the Basic version, and per-product exceptions in the Pro version.

Does it work with custom order number plugins?

Yes. The plugin searches by WooCommerce order ID, custom order number meta fields, and order number output — compatible with Sequential Order Numbers and similar plugins.

Is my data sent to third parties?

No. All withdrawal data is stored in your own WordPress database and is never sent anywhere else. The free WordPress.org version contains no tracking and no third-party SDKs.

评价

2026 年 6 月 9 日
We run a multilingual WooCommerce shop and the withdrawal flow worked cleanly across all our languages, which was exactly what we were worried about. Quick to set up and one less thing to stress over with the new EU rules — recommended.
2026 年 6 月 9 日
I run a WooCommerce shop selling personalized, made-to-order products, so getting the new EU withdrawal rules right was genuinely stressing me out. This plugin sorted it without any fuss — the withdrawal button and form were live quickly, and customers (even guest checkouts) can submit a refund easily. The thing I liked most is being able to exclude specific categories and products from withdrawal (Pro version). For a store like mine this is essential — personalized items simply can’t be withdrawn the way regular stock can, and now I can make that clear automatically instead of sorting it out by hand on every order. It does exactly what it promises and takes a stressful legal requirement off my plate. Highly recommended.
阅读所有2条评价

贡献者及开发者

「EU Withdrawal Button for WooCommerce – Right of Withdrawal Form (Directive 2023/2673)」是开源软件。 以下人员对此插件做出了贡献。

贡献者

「EU Withdrawal Button for WooCommerce – Right of Withdrawal Form (Directive 2023/2673)」插件已被翻译至 1 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「EU Withdrawal Button for WooCommerce – Right of Withdrawal Form (Directive 2023/2673)」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

2.0.2

  • Fix: the optional footer “Right of withdrawal” link is now always visible — it previously inherited the theme’s footer text colour and could blend into the background. It now sits on a light strip with a clearly coloured link.
  • New: French (fr_FR), Finnish (fi) and Swedish (sv_SE) translations bundled.

2.0.1

  • Fix: the withdrawal total on the confirmation step now updates live as the customer checks/unchecks items or changes quantities, instead of always showing the full order total.
  • Fix: the withdrawal total now reflects only the selected line items — shipping, fees and other order lines are no longer included.
  • Tweak: the confirmation total is now labelled “Withdrawal total” for clarity.
  • Compatibility: tested up to WordPress 7.0.

2.0.0

  • WordPress.org edition. First release published on the WordPress.org plugin directory. Feature parity with 1.5.x, Lite tier only. Paid upgrades continue to be distributed via riin.eu.
  • Code: Full prefix refactor to ra_euwb_ / RA_EUWB_ / ra-euwb- across options, hooks, CSS classes, JS globals, nonces and admin menu slugs, to comply with the WordPress.org guidelines on unique prefixes. Existing WC order status slugs (wc-ewb-withdrawn, wc-ewb-completed), the database table ({prefix}ewb_withdrawals) and the _ra_euwb_deactivated_withdrawal order meta key are preserved so existing installations continue to work without data migration.
  • Code: Removed all inline <style> and <script> output. Admin order-status colours and the frontend ra-euwb-hidden utility class are now part of the enqueued stylesheets. Frontend button colours are static (overridable via theme CSS) instead of dynamic option-backed inline styles.
  • Code: Custom CSS setting removed from the free build (WordPress.org guideline: plugins must not execute arbitrary user-supplied CSS from options).
  • Code: Text domain updated from eu-withdrawal-button to eu-withdrawal-button-for-woocommerce to match the WordPress.org plugin slug.
  • Misc: Removed the now-unused class-ewb-i18n.php helper (text domain is loaded directly via load_plugin_textdomain() on init).

1.5.0

  • Compliance Update — EU Directive 2023/2673. All compliance-critical features are available in the free version.
  • Guest-friendly direct link in order emails: The WooCommerce customer “processing” and “completed” order emails now include a “Withdraw from this order” button. The link opens the withdrawal form pre-verified against the order — no login required. Solves the guest-checkout compliance gap (the directive explicitly requires that withdrawal must not depend on having a customer account).
  • Dismissible sticky bar: Visitors can close the sticky bar with an X button. Dismissal is remembered for a configurable number of days (default 7, configurable 0–30) via localStorage. My Account pages ignore the dismissal and always show the bar (EU compliance — customer must be able to request a withdrawal there).
  • Partial withdrawal support: Customers can now select specific items and quantities to withdraw instead of the whole order. The confirmation step shows per-item checkboxes and quantity inputs, pre-filled with the full order.
  • Optional IBAN field: Customers can provide a bank account for the refund (useful when they paid by card or want the refund sent to a different account). Leaving it empty tells the merchant to refund to the original payment method. The IBAN is shown prominently in the merchant notification email and in the admin withdrawals list.
  • Configurable sticky bar display: New “Show sticky bar on” multiselect under Withdrawal Button General lets merchants pick which page types show the sticky bar (Homepage, Shop & product pages, Cart & checkout, Other). The My Account pages always show the sticky bar (EU compliance — customer must be able to request a withdrawal there). Existing installations default to My Account pages only after the upgrade, so update your settings if you want the sticky bar elsewhere.
  • Discreet footer link: Optional small “Right of withdrawal” link can be shown in the footer (useful when the sticky bar is disabled on most pages).
  • Admin: Withdrawals list now shows a Full / Partial badge and a hoverable list of the selected items per request, plus a dedicated IBAN column.
  • Emails: Customer confirmation and merchant notification emails now list only the selected withdrawn items (with a partial-withdrawal notice when applicable) and show the IBAN. Legacy rows from pre-1.5.0 fall back to the full-order view.
  • Database: New withdrawn_items (JSON) and iban columns on {prefix}ewb_withdrawals. The upgrade runs automatically on plugin load via dbDelta() — no manual action required.
  • Security: Submitted item selections are re-validated server-side against the actual order (quantities clamped, unknown items rejected) to prevent tampering.
  • Security hardening (CIA audit pass): (a) CSV export now escapes spreadsheet formula injection (leading =, +, -, @, tab, CR) and includes the Withdrawn Items + IBAN columns that were previously silently misaligned. (b) Client IP detection no longer trusts HTTP_X_FORWARDED_FOR / HTTP_CLIENT_IP by default — sites behind a trusted reverse proxy (e.g. Cloudflare) can opt in via the ewb_trust_forwarded_ip filter. (c) Submission now holds a MySQL advisory lock per order around the duplicate check + insert, closing the race window that allowed two simultaneous clicks to create duplicate withdrawal rows. (d) The public ewb_validate_order and ewb_lookup_by_key endpoints are now rate-limited (30 requests per 5 minutes per IP). (e) “Order not found” and “email does not match the order” are collapsed into a single generic verification error to prevent order enumeration. (f) Support form Reply-To header explicitly strips CR/LF defending against header injection.

1.4.0

  • IMPORTANT: Clarified “Withdrawal Completed” semantics. Renamed the user-facing label to “Withdrawal Closed” everywhere it appeared (order status, emails, order notes, My Account box, admin). The status no longer implies that an automatic refund has been issued — merchants must refund manually via WooCommerce Orders. Automatic wc_create_refund() integration is planned for a future Pro release. Internal status slug (wc-ewb-completed) is unchanged so existing orders continue to work.
  • IMPORTANT FIX: The sticky bar, withdrawal form, confirmation email, “closed” email and admin information guide previously hardcoded “14 days” even when merchants configured a different ewb_withdrawal_days value. All texts now reflect the configured value dynamically with proper single/plural handling. Merchants can also use the {days} placeholder in the custom Bar text field.
  • Updated customer closed-request email to clearly state that the merchant will issue the refund manually, instead of claiming the refund has already been processed.
  • Added a “Heads up” admin notice on every plugin settings tab explaining the manual refund workflow.
  • Performance & reliability: Order number lookup fallback (step 3) now filters by the configured withdrawal window (days + 2 buffer) instead of the arbitrary “last 500 orders” limit, and is capped at 1000 orders scanned. Both bounds are adjustable via the ewb_order_lookup_cutoff_date and ewb_order_lookup_max_scan filters. A warning is logged if the fallback triggers — this helps merchants spot custom order number plugins that don’t use the standard _order_number meta key.
  • Code quality: Custom CSS (Basic+) now uses wp_add_inline_style() attached to the main ewb-frontend stylesheet handle instead of printing a raw <style> tag on wp_head. This integrates with minify/cache plugins and follows WordPress standards.

1.3.3

  • Fix: Removed the parent => woocommerce menu setting so the Freemius SDK can properly register its own admin pages (connect/opt-in, account, pricing). Previously the activation flow tried to redirect users to admin.php?page=ewb-withdrawal which WordPress rejected with “Sorry, you are not allowed to access this page.” because the submenu was never registered. Plugin Settings link still opens WooCommerce Settings Withdrawal Button via first-path.

1.3.2

  • Fix: Freemius “Opt In” and Account/Pricing pages now work correctly. Previously the menu used an embedded WooCommerce settings URL as its slug, which prevented the Freemius SDK from rendering its own admin pages (opt-in form, account, pricing, checkout)
  • Added a dedicated ewb-withdrawal plugin page for Freemius SDK, with first-path redirecting Settings link to the WooCommerce Settings Withdrawal Button tab (existing UX preserved)

1.3.1

  • Fix: “Get Basic” and “Get Pro” buttons in the Upgrade tab now open the Freemius in-admin checkout (iframe) instead of redirecting to the marketing site
  • Fix: Restored the “License” / “Activate License” link on the Plugins page by registering the Freemius account page (ewb-account)
  • Added dedicated Freemius pricing page (ewb-pricing) for in-admin checkout flow
  • Updated Upgrade tab FAQ to reflect the new in-admin checkout experience

1.3.0

  • Freemius: Premium code is now properly marked with is__premium_only() gates so Freemius can auto-generate a clean free build without premium features
  • Renamed class-ewb-rest-api.php to class-ewb-rest-api__premium_only.php so Freemius excludes it from the free build
  • Added Requires Plugins: woocommerce header (WordPress 6.5+ plugin dependencies)
  • readme.txt: added nalut to contributors

1.2.1

  • Fix: Plugin text domain is now properly loaded, enabling translations via WPML / Loco Translate / .mo files
  • Add wpml-config.xml for admin text translation support

1.2.0

  • Switched to Freemius-only distribution (independent of WordPress.org)
  • Disabled WordPress.org compliance mode in Freemius SDK

1.1.0

  • Added tier system (Lite / Basic / Pro)
  • Freemius integration for license management
  • Support tab with contact info
  • Upgrade tab with plan comparison
  • Improved custom order number compatibility
  • Various bug fixes and improvements

1.0.0

  • Initial release
  • 4-step withdrawal flow
  • Sticky bar with configurable text
  • Modal popup and page display modes
  • WooCommerce email integration
  • Custom order status: Withdrawal Requested
  • Rate limiting
  • HPOS compatibility
  • WCAG 2.1 AA accessibility
  • Translation-ready