{"id":297856,"date":"2026-04-24T05:57:08","date_gmt":"2026-04-24T05:57:08","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/eu-withdrawal-button-for-woocommerce\/"},"modified":"2026-04-24T05:59:17","modified_gmt":"2026-04-24T05:59:17","slug":"eu-withdrawal-button-for-woocommerce","status":"publish","type":"plugin","link":"https:\/\/cs.wordpress.org\/plugins\/eu-withdrawal-button-for-woocommerce\/","author":13261307,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.0.0","stable_tag":"2.0.0","tested":"6.9.4","requires":"6.2","requires_php":"7.4","requires_plugins":null,"header_name":"EU Withdrawal Button for WooCommerce","header_author":"Riin Agency","header_description":"Helps WooCommerce store owners implement the withdrawal flow described in EU Directive 2023\/2673.","assets_banners_color":"9f8585","last_updated":"2026-04-24 05:59:17","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/riin.eu\/withdrawal-plugin","header_author_uri":"https:\/\/riin.eu","rating":0,"author_block_rating":0,"active_installs":10,"downloads":135,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"2.0.0":{"tag":"2.0.0","author":"Nalut","date":"2026-04-24 05:59:17"}},"upgrade_notice":{"1.1.0":"<p>New tier system with Freemius licensing. Improved compatibility with custom order number plugins.<\/p>","1.0.0":"<p>Initial release.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3514355,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3514355,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3514355,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3514355,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["2.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3514355,"resolution":"1","location":"assets","locale":"","width":1877,"height":1556},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3514355,"resolution":"2","location":"assets","locale":"","width":1723,"height":1176},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3514355,"resolution":"3","location":"assets","locale":"","width":1379,"height":914},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3514355,"resolution":"4","location":"assets","locale":"","width":3012,"height":1372},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3514355,"resolution":"5","location":"assets","locale":"","width":2970,"height":1272},"screenshot-6.png":{"filename":"screenshot-6.png","revision":3514355,"resolution":"6","location":"assets","locale":"","width":2984,"height":1568},"screenshot-7.png":{"filename":"screenshot-7.png","revision":3514355,"resolution":"7","location":"assets","locale":"","width":2988,"height":1078}},"screenshots":{"1":"Sticky bar with withdrawal button on the storefront","2":"Withdrawal form modal","3":"Confirmation step with order summary","4":"WooCommerce settings page"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[255182,395,55969,245590,286],"plugin_category":[45],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-297856","plugin","type-plugin","status-publish","hentry","plugin_tags-consumer-rights","plugin_tags-eu","plugin_tags-returns","plugin_tags-withdrawal","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_committers-nalut"],"banners":{"banner":"https:\/\/ps.w.org\/eu-withdrawal-button-for-woocommerce\/assets\/banner-772x250.png?rev=3514355","banner_2x":"https:\/\/ps.w.org\/eu-withdrawal-button-for-woocommerce\/assets\/banner-1544x500.png?rev=3514355","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/eu-withdrawal-button-for-woocommerce\/assets\/icon-128x128.png?rev=3514355","icon_2x":"https:\/\/ps.w.org\/eu-withdrawal-button-for-woocommerce\/assets\/icon-256x256.png?rev=3514355","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/eu-withdrawal-button-for-woocommerce\/assets\/screenshot-1.png?rev=3514355","caption":"Sticky bar with withdrawal button on the storefront"},{"src":"https:\/\/ps.w.org\/eu-withdrawal-button-for-woocommerce\/assets\/screenshot-2.png?rev=3514355","caption":"Withdrawal form modal"},{"src":"https:\/\/ps.w.org\/eu-withdrawal-button-for-woocommerce\/assets\/screenshot-3.png?rev=3514355","caption":"Confirmation step with order summary"},{"src":"https:\/\/ps.w.org\/eu-withdrawal-button-for-woocommerce\/assets\/screenshot-4.png?rev=3514355","caption":"WooCommerce settings page"},{"src":"https:\/\/ps.w.org\/eu-withdrawal-button-for-woocommerce\/assets\/screenshot-5.png?rev=3514355","caption":""},{"src":"https:\/\/ps.w.org\/eu-withdrawal-button-for-woocommerce\/assets\/screenshot-6.png?rev=3514355","caption":""},{"src":"https:\/\/ps.w.org\/eu-withdrawal-button-for-woocommerce\/assets\/screenshot-7.png?rev=3514355","caption":""}],"raw_content":"<!--section=description-->\n<p>EU Directive 2023\/2673 introduces new requirements for online stores regarding consumer withdrawal rights, taking effect on <strong>June 19, 2026<\/strong>.<\/p>\n\n<p><strong>EU Withdrawal Button for WooCommerce<\/strong> helps you implement a clear, accessible withdrawal flow for your customers:<\/p>\n\n<h4>The 4-Step Flow<\/h4>\n\n<ol>\n<li><strong>Visible Button<\/strong> \u2014 Sticky bar with a withdrawal button on every page<\/li>\n<li><strong>Withdrawal Form<\/strong> \u2014 Customer enters order number + email for verification<\/li>\n<li><strong>Confirmation Step<\/strong> \u2014 Order summary with a separate \"Confirm withdrawal\" button<\/li>\n<li><strong>Notifications<\/strong> \u2014 Confirmation email to customer + notification to merchant<\/li>\n<\/ol>\n\n<h4>Features<\/h4>\n\n<ul>\n<li>Sticky bar with configurable text and button<\/li>\n<li>Modal popup or dedicated page mode<\/li>\n<li>Order validation (order number + email + 14-day window check)<\/li>\n<li>Custom WooCommerce order status: \"Withdrawal Requested\"<\/li>\n<li>WooCommerce email integration (shows in WooCommerce \u2192 Settings \u2192 Emails)<\/li>\n<li>Support for custom order number plugins (Sequential Order Numbers, etc.)<\/li>\n<li>WCAG 2.1 AA accessible (keyboard navigation, focus trap, ARIA labels)<\/li>\n<li>Rate limiting for abuse prevention<\/li>\n<li>Translation-ready with .pot file<\/li>\n<li>HPOS (High-Performance Order Storage) compatible<\/li>\n<\/ul>\n\n<h4>Who Is This For?<\/h4>\n\n<p>WooCommerce store owners who sell to EU consumers and want to provide a clear withdrawal process for their customers.<\/p>\n\n<h4>Disclaimer<\/h4>\n\n<p>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.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>eu-withdrawal-button-for-woocommerce<\/code> folder to <code>\/wp-content\/plugins\/<\/code><\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Go to WooCommerce \u2192 Settings \u2192 Withdrawal Button to configure<\/li>\n<li>The withdrawal button will appear on your storefront<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"what%20does%20this%20plugin%20do%3F\"><h3>What does this plugin do?<\/h3><\/dt>\n<dd><p>It adds a visible withdrawal button to your store, along with a form where customers can submit withdrawal requests. The plugin validates the order, notifies both parties via email, and tracks the request.<\/p><\/dd>\n<dt id=\"what%20happens%20when%20a%20customer%20submits%20a%20withdrawal%3F\"><h3>What happens when a customer submits a withdrawal?<\/h3><\/dt>\n<dd><p>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).<\/p><\/dd>\n<dt id=\"can%20i%20exclude%20certain%20products%3F\"><h3>Can I exclude certain products?<\/h3><\/dt>\n<dd><p>Product category exclusions and per-product exceptions are available in the paid version.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20custom%20order%20number%20plugins%3F\"><h3>Does it work with custom order number plugins?<\/h3><\/dt>\n<dd><p>Yes, the plugin searches by WooCommerce order ID, custom order number meta fields, and order number output \u2014 compatible with Sequential Order Numbers and similar plugins.<\/p><\/dd>\n<dt id=\"is%20my%20data%20sent%20to%20third%20parties%3F\"><h3>Is my data sent to third parties?<\/h3><\/dt>\n<dd><p>The plugin stores withdrawal data in your own WordPress database. The Freemius SDK is used for license management and asks for your opt-in consent on activation.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.0.0<\/h4>\n\n<ul>\n<li><strong>WordPress.org edition<\/strong>. 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.<\/li>\n<li>Code: Full prefix refactor to <code>ra_euwb_<\/code> \/ <code>RA_EUWB_<\/code> \/ <code>ra-euwb-<\/code> 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 (<code>wc-ewb-withdrawn<\/code>, <code>wc-ewb-completed<\/code>), the database table (<code>{prefix}ewb_withdrawals<\/code>) and the <code>_ra_euwb_deactivated_withdrawal<\/code> order meta key are preserved so existing installations continue to work without data migration.<\/li>\n<li>Code: Removed all inline <code>&lt;style&gt;<\/code> and <code>&lt;script&gt;<\/code> output. Admin order-status colours and the frontend <code>ra-euwb-hidden<\/code> 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.<\/li>\n<li>Code: Custom CSS setting removed from the free build (WordPress.org guideline: plugins must not execute arbitrary user-supplied CSS from options).<\/li>\n<li>Code: Text domain updated from <code>eu-withdrawal-button<\/code> to <code>eu-withdrawal-button-for-woocommerce<\/code> to match the WordPress.org plugin slug.<\/li>\n<li>Misc: Removed the now-unused <code>class-ewb-i18n.php<\/code> helper (text domain is loaded directly via <code>load_plugin_textdomain()<\/code> on <code>init<\/code>).<\/li>\n<\/ul>\n\n<h4>1.5.0<\/h4>\n\n<ul>\n<li><strong>Compliance Update \u2014 EU Directive 2023\/2673<\/strong>. All compliance-critical features are available in the free version.<\/li>\n<li><strong>Guest-friendly direct link in order emails<\/strong>: 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 \u2014 no login required. Solves the guest-checkout compliance gap (the directive explicitly requires that withdrawal must not depend on having a customer account).<\/li>\n<li><strong>Dismissible sticky bar<\/strong>: Visitors can close the sticky bar with an X button. Dismissal is remembered for a configurable number of days (default 7, configurable 0\u201330) via <code>localStorage<\/code>. My Account pages ignore the dismissal and always show the bar (EU compliance \u2014 customer must be able to request a withdrawal there).<\/li>\n<li><strong>Partial withdrawal support<\/strong>: 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.<\/li>\n<li><strong>Optional IBAN field<\/strong>: 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.<\/li>\n<li><strong>Configurable sticky bar display<\/strong>: New \"Show sticky bar on\" multiselect under Withdrawal Button \u2192 General lets merchants pick which page types show the sticky bar (Homepage, Shop &amp; product pages, Cart &amp; checkout, Other). The My Account pages always show the sticky bar (EU compliance \u2014 customer must be able to request a withdrawal there). Existing installations default to <strong>My Account pages only<\/strong> after the upgrade, so update your settings if you want the sticky bar elsewhere.<\/li>\n<li><strong>Discreet footer link<\/strong>: Optional small \"Right of withdrawal\" link can be shown in the footer (useful when the sticky bar is disabled on most pages).<\/li>\n<li>Admin: Withdrawals list now shows a Full \/ Partial badge and a hoverable list of the selected items per request, plus a dedicated IBAN column.<\/li>\n<li>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.<\/li>\n<li>Database: New <code>withdrawn_items<\/code> (JSON) and <code>iban<\/code> columns on <code>{prefix}ewb_withdrawals<\/code>. The upgrade runs automatically on plugin load via <code>dbDelta()<\/code> \u2014 no manual action required.<\/li>\n<li>Security: Submitted item selections are re-validated server-side against the actual order (quantities clamped, unknown items rejected) to prevent tampering.<\/li>\n<li>Security hardening (CIA audit pass): (a) CSV export now escapes spreadsheet formula injection (leading <code>=<\/code>, <code>+<\/code>, <code>-<\/code>, <code>@<\/code>, tab, CR) and includes the <code>Withdrawn Items<\/code> + <code>IBAN<\/code> columns that were previously silently misaligned. (b) Client IP detection no longer trusts <code>HTTP_X_FORWARDED_FOR<\/code> \/ <code>HTTP_CLIENT_IP<\/code> by default \u2014 sites behind a trusted reverse proxy (e.g. Cloudflare) can opt in via the <code>ewb_trust_forwarded_ip<\/code> 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 <code>ewb_validate_order<\/code> and <code>ewb_lookup_by_key<\/code> 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.<\/li>\n<\/ul>\n\n<h4>1.4.0<\/h4>\n\n<ul>\n<li>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 \u2014 merchants must refund manually via WooCommerce \u2192 Orders. Automatic <code>wc_create_refund()<\/code> integration is planned for a future Pro release. Internal status slug (<code>wc-ewb-completed<\/code>) is unchanged so existing orders continue to work.<\/li>\n<li>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 <code>ewb_withdrawal_days<\/code> value. All texts now reflect the configured value dynamically with proper single\/plural handling. Merchants can also use the <code>{days}<\/code> placeholder in the custom Bar text field.<\/li>\n<li>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.<\/li>\n<li>Added a \"Heads up\" admin notice on every plugin settings tab explaining the manual refund workflow.<\/li>\n<li>Performance &amp; 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 <code>ewb_order_lookup_cutoff_date<\/code> and <code>ewb_order_lookup_max_scan<\/code> filters. A warning is logged if the fallback triggers \u2014 this helps merchants spot custom order number plugins that don't use the standard <code>_order_number<\/code> meta key.<\/li>\n<li>Code quality: Custom CSS (Basic+) now uses <code>wp_add_inline_style()<\/code> attached to the main <code>ewb-frontend<\/code> stylesheet handle instead of printing a raw <code>&lt;style&gt;<\/code> tag on <code>wp_head<\/code>. This integrates with minify\/cache plugins and follows WordPress standards.<\/li>\n<\/ul>\n\n<h4>1.3.3<\/h4>\n\n<ul>\n<li>Fix: Removed the <code>parent =&gt; woocommerce<\/code> 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 <code>admin.php?page=ewb-withdrawal<\/code> 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 \u2192 Settings \u2192 Withdrawal Button via <code>first-path<\/code>.<\/li>\n<\/ul>\n\n<h4>1.3.2<\/h4>\n\n<ul>\n<li>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)<\/li>\n<li>Added a dedicated <code>ewb-withdrawal<\/code> plugin page for Freemius SDK, with <code>first-path<\/code> redirecting Settings link to the WooCommerce \u2192 Settings \u2192 Withdrawal Button tab (existing UX preserved)<\/li>\n<\/ul>\n\n<h4>1.3.1<\/h4>\n\n<ul>\n<li>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<\/li>\n<li>Fix: Restored the \"License\" \/ \"Activate License\" link on the Plugins page by registering the Freemius account page (<code>ewb-account<\/code>)<\/li>\n<li>Added dedicated Freemius pricing page (<code>ewb-pricing<\/code>) for in-admin checkout flow<\/li>\n<li>Updated Upgrade tab FAQ to reflect the new in-admin checkout experience<\/li>\n<\/ul>\n\n<h4>1.3.0<\/h4>\n\n<ul>\n<li>Freemius: Premium code is now properly marked with <code>is__premium_only()<\/code> gates so Freemius can auto-generate a clean free build without premium features<\/li>\n<li>Renamed <code>class-ewb-rest-api.php<\/code> to <code>class-ewb-rest-api__premium_only.php<\/code> so Freemius excludes it from the free build<\/li>\n<li>Added <code>Requires Plugins: woocommerce<\/code> header (WordPress 6.5+ plugin dependencies)<\/li>\n<li>readme.txt: added <code>nalut<\/code> to contributors<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Fix: Plugin text domain is now properly loaded, enabling translations via WPML \/ Loco Translate \/ .mo files<\/li>\n<li>Add wpml-config.xml for admin text translation support<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Switched to Freemius-only distribution (independent of WordPress.org)<\/li>\n<li>Disabled WordPress.org compliance mode in Freemius SDK<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Added tier system (Lite \/ Basic \/ Pro)<\/li>\n<li>Freemius integration for license management<\/li>\n<li>Support tab with contact info<\/li>\n<li>Upgrade tab with plan comparison<\/li>\n<li>Improved custom order number compatibility<\/li>\n<li>Various bug fixes and improvements<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<li>4-step withdrawal flow<\/li>\n<li>Sticky bar with configurable text<\/li>\n<li>Modal popup and page display modes<\/li>\n<li>WooCommerce email integration<\/li>\n<li>Custom order status: Withdrawal Requested<\/li>\n<li>Rate limiting<\/li>\n<li>HPOS compatibility<\/li>\n<li>WCAG 2.1 AA accessibility<\/li>\n<li>Translation-ready<\/li>\n<\/ul>","raw_excerpt":"Helps WooCommerce store owners implement the withdrawal flow described in EU Directive 2023\/2673.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/297856","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/cs.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/cs.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=297856"}],"author":[{"embeddable":true,"href":"https:\/\/cs.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/nalut"}],"wp:attachment":[{"href":"https:\/\/cs.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=297856"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/cs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=297856"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/cs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=297856"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/cs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=297856"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/cs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=297856"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/cs.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=297856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}