Right of Withdrawal flow for shop

Right of Withdrawal flow for shop

Details
View on WordPress

Right of Withdrawal flow for shop implements the consumer right of withdrawal mandated by the European Union Consumer Rights Directive (2011/83/EU), giving customers a clean, server-validated way to exercise their 14-day cooling-off period.

The plugin adds a “Withdraw from order” button in the customer’s account, opens an accessible modal where customers can pick specific items, enter an IBAN and select a withdrawal reason, then notifies the shop via HTML email and tracks the refund through to completion.

Key features

  • Full or partial withdrawal — customers select specific items and quantities.
  • Server-side amount calculation — line totals are read from the order, never trusted from the client. Coupon discounts are correctly accounted for via WC_Order_Item::get_total().
  • IBAN format + Mod-97 validation (works in any EU country with bcmod or pure-PHP fallback).
  • Order-meta storage (withdrawal date, IBAN, reason, items, refund status).
  • Admin metabox with status updates: Mark as refunded / Mark as partially refunded.
  • Optional automatic creation of an order refund record (with optional restock).
  • Direct link to the withdrawal modal from the order confirmation email. The link opens the customer’s account “View order” page; standard WordPress / WooCommerce authentication applies — no custom login, no magic-link auto-login.
  • HTML emails for both customer and admin; styled inline for Gmail/Outlook compatibility.
  • HPOS (Custom Order Tables) compatible.
  • Settings page nested under the WooCommerce menu.

Compliance reference

  • Directive 2011/83/EU on consumer rights, Articles 9–14 (Right of withdrawal).
  • The 14-day period is configurable; the plugin defaults to the directive’s prescribed minimum.
  • Refunds are processed to the bank account supplied by the consumer (IBAN), satisfying the directive’s requirement to use the same payment means unless the consumer explicitly agrees to another method.

Requirements

  • WooCommerce 7.0 or later
  • PHP 8.0 or later
  • WordPress 6.0 or later

Details

Plugin code:
right-of-withdrawal-for-woocommerce
Plugin version:
1.0.0
Outdated:
No
WP version:
6.0 or higher
PHP version:
8.0 or higher
Test up to WP version:
7.0
Total installations:
0
Last updated:
2026-06-03
Rating:
Times rated:
0
consumer-rights
eu-directive
refund
returns
withdrawal