설명
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
bcmodor 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.
- “Withdrawal” column and filter in WooCommerce Orders — see pending requests at a glance without opening each order.
- Optional automatic creation of an order refund record (with optional restock).
- Guest checkout support — a withdrawal form page (
[rowfs_withdrawal_form]shortcode) where customers without an account enter their order number and email and receive a secure, signed withdrawal link. Guest orders also get this link in the order email. - Direct link to the withdrawal modal from the order confirmation email. For registered customers the link opens their account “View order” page with standard WordPress / WooCommerce authentication — no custom login, no 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
설치
- Upload the plugin folder to
/wp-content/plugins/. - Activate the plugin through the Plugins menu in WordPress.
- Go to WooCommerce Settings Right of Withdrawal and configure the settings.
- Pick the terms-and-conditions page and customise the button appearance.
- For guest orders: create a page with the
[rowfs_withdrawal_form]shortcode and select it under General Withdrawal form page (guests).
FAQ
-
Is the plugin HPOS compatible?
-
Yes. The plugin declares full compatibility with the WooCommerce Custom Order Tables (HPOS) and uses the
WC_Ordermeta API throughout — neverget_post_meta()on the order ID. -
Does the refund amount account for coupon discounts?
-
Yes. The plugin reads
WC_Order_Item::get_total()(the post-coupon line total) plusget_total_tax(), so a customer returning a coupon-discounted item gets the correct, post-discount refund. -
How do I change the withdrawal period?
-
Default is the EU-mandated 14 days. You can change the number and the unit (days / months / years) in the settings, and choose whether the period starts from the order’s payment date or completion date.
-
No. The button in the order email is a regular link to the customer’s “View order” page. If the customer is not signed in, WordPress / WooCommerce shows the standard login form and returns the customer to the same page after authentication. The plugin does not implement its own login flow. For guest orders the button opens the withdrawal form page via a signed link that authorises only the withdrawal form for that order — it never logs anyone in.
-
Where does the customer start a withdrawal request?
-
Registered customers: the “Withdraw from order” action button in My Account Orders, or the same button in the order confirmation email — both open the modal on the customer’s “View order” page. Guests (and anyone not signed in): the withdrawal form page with the
[rowfs_withdrawal_form]shortcode, or the button in the order email of a guest order. -
Can a customer submit more than one partial withdrawal for the same order?
-
Yes. The plugin tracks per-line cumulative withdrawn quantities — a customer can return 1 of 3 items today, then 1 more next week. Further submissions are blocked once every line has been fully accounted for.
-
Does it work for guest checkout (no customer account)?
-
Yes. Create a page, add the
[rowfs_withdrawal_form]shortcode and select it under WooCommerce Settings Right of Withdrawal General Withdrawal form page (guests). The customer enters the order number and the email address used for the order; if they match an order that is still within the withdrawal period, a secure link is emailed to the billing address. The link opens the same withdrawal form as in My Account. Guest orders also get the link directly in the order confirmation email.The link is signed (HMAC over order ID, order key, billing email and expiry), is valid until the withdrawal period ends and only authorises the withdrawal form for that one order — it does not log anyone in. The lookup form always shows the same response, so it cannot be used to check whether an order or email exists, and it is rate-limited per IP.
-
Which countries’ IBANs are accepted?
-
Any country that uses IBAN. The plugin validates the standard format (2-letter country code + 2 check digits + up to 30 alphanumeric characters) and runs the Mod-97 checksum (uses
bcmodif available, falls back to pure PHP). Non-IBAN formats are rejected at submit time. -
What happens when the admin clicks “Mark as refunded”?
-
If “Create WooCommerce refund automatically” is enabled (default), a
WC_Order_Refundrecord is created with the exact line items and amount the customer requested; the order totals update accordingly, and stock is restocked if enabled. A confirmation email is then sent to the customer. Without auto-refund, only the order status and metadata are updated — noWC_Order_Refundis created. -
How do I see which orders have a pending withdrawal request?
-
Go to WooCommerce Orders. The Withdrawal column shows the state of every request (initiated / partial / refunded), and the All withdrawal states dropdown next to the other filters narrows the list to pending or processed requests. When requests are waiting, a notice at the top of the orders list links straight to them.
-
Which address are the plugin’s emails sent from?
-
The sender name and address set in WooCommerce Settings Emails Sender options — the same as your regular order emails. If an SMTP plugin forces its own “From” address, that setting takes precedence. The
rowfs_email_headersfilter lets you change the headers further. -
Where can I find the plugin’s settings?
-
WooCommerce Settings Right of Withdrawal. The tab has five sub-tabs: General (notifications, deadline, terms page), Refund behaviour (auto-refund, restock), Withdrawal button (label, colours), Modal appearance (colours, opacity, width) and Required fields in modal (reason, IBAN, contact email, terms checkbox).
-
Can I customise the list of withdrawal reasons shown to the customer?
-
Yes. The reasons are filterable. In a child-theme
functions.phpor a small custom plugin:add_filter('rowfs_withdrawal_reasons', function ($reasons) { $reasons['gift_unsuitable'] = __('Gift was unsuitable', 'your-textdomain'); unset($reasons['found_better_price']); return $reasons; });
후기
이 플러그인에 대한 평가가 없습니다.
기여자 & 개발자
“Right of Withdrawal flow for shop”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.
기여자자국어로 “Right of Withdrawal flow for shop”(을)를 번역하세요.
개발에 관심이 있으십니까?
변경이력
1.1.0
- New: “Withdrawal” status column in WooCommerce Orders (HPOS and legacy storage).
- New: Orders list filter — Withdrawal pending / processed / any request.
- New: Admin notice on the orders list when withdrawal requests are awaiting processing.
- New: Guest withdrawal —
[rowfs_withdrawal_form]shortcode page where customers without an account request a secure, signed withdrawal link by order number + billing email. - New: Guest orders get the signed withdrawal link in the order confirmation email (previously the button pointed to My Account, which guests cannot use).
- New: Setting “Withdrawal form page (guests)” under General.
- New:
rowfs_find_order_by_numberfilter for stores using custom order numbers. - Fix: The “Counted from: Order completion date” setting is now respected — previously the period was always counted from the payment date.
- Fix: Plugin emails are now sent from the WooCommerce sender name and address (WooCommerce Settings Emails) instead of the WordPress default address.
- Fix: Admin notification email links to the correct order edit screen on stores without HPOS.
- Tweak: Admin notification email sets Reply-To to the customer’s contact address.
- Security: Signed-link pages are sent with no-cache and no-referrer headers.
- Tested with WordPress 7.1 and WooCommerce 11.1.
1.0.0
- Initial public release.
- EU Directive 2011/83/EU compliant withdrawal flow.
- Inline-styled email button for Gmail/Outlook compatibility.
- Coupon-aware refund math (uses
get_total()notget_subtotal()). - HPOS support; partial-withdrawal item-level selection.