Withdraw
- Plugin page: https://plogins.com/plogins-withdraw/
- Documentation: https://plogins.com/plogins-withdraw/docs/
- Author: WPPoland.com
- WordPress.org contributor: motylanogha
- Source: https://github.com/wppoland/plogins-withdraw
Withdraw adds a withdrawal function to WooCommerce, aligned with Art. 11a of Directive 2011/83/EU (the "withdrawal button", inserted by Directive (EU) 2023/2673). Customers declare that they withdraw from a distance contract, in full or per item, within the withdrawal period you configure.
It is a request-and-log plugin. It records the customer's declaration, emails a confirmation to the customer and a notification to the shop, and tracks the request status in the admin. It never moves money. You issue any refund yourself on the normal WooCommerce order screen, which matches the legal model where the consumer declares and the trader acts.
What the plugin does
Section titled "What the plugin does"[withdraw_form]shortcode with a three-step public form: look up an order by number and billing email, choose items and quantities, then read the finished declaration back and confirm it. Nothing is stored until that confirmation, which is what Article 11a(3) asks for.[withdraw_link]shortcode and an optional footer link, so the withdrawal function stays reachable for the whole period rather than only inside a signed-in order view.- Full or partial withdrawal: every order line gets a quantity field capped at the ordered quantity. After a partial withdrawal, the remaining items stay open for future declarations.
- SHA-256 receipt verification hash (Art. 11a(4)): unique cryptographic verification hash printed on the confirmation screen, included in the customer acknowledgement email, and visible in admin detail view.
- WooCommerce Orders list column: displays the withdrawal request status badge directly in the orders table with a link to the requests log and an indicator for late submissions.
- CSV log export: download withdrawal requests with status and date filters, with CSV formula injection protection.
- Statutory exclusions (Art. 16(c), (d), (e)): flag made-to-specification, perishable or sealed hygiene products at product or category level with pre-purchase disclosure.
- Regulation 1182/71 Art. 3 deadline calculation: the period ends at midnight of the last day and a weekend deadline moves to the following Monday. Optional grace days and advisory mode to accept late submissions with a flag.
- Unmatched declarations (optional): allows shoppers to submit declarations when order details do not match automatically, logged for manual matching by the merchant. The shopper gets a short acknowledgement email (date, time and receipt code) without any of the text they typed, because the address is unverified.
- Optional free-text reason, and a declaration checkbox on the items step.
- Withdraw from contract here control rendered under the WooCommerce order details table, linking to your withdrawal page with the order number pre-filled. The wording is the one Article 11a(1) prescribes.
- Withdrawals tab in My Account, placed after Orders: the signed-in customer's own withdrawal requests with date, order, items and status, 20 to a page, and a link to withdraw from the rest of an order while that is still possible. Rows come from orders placed under the customer's account, never matched by email.
- A status page per request: what was declared, the steps (received, under review, accepted or rejected, processed), the date received and the date of the last change. The signed-in owner opens it from the Withdrawals tab, a guest through the keyed link in the acknowledgement or status-change emails or on the confirmation screen, or through a one-time order link, which lists the requests already made on that order.
- Cancel by the customer while the request is still pending, in two steps. The request becomes
cancelled, the shop gets an email, and the cancelled goods can be declared again. A request the shop has already decided on cannot be cancelled. A cancellation received by post or phone is recorded by the shop in the request log, without an email. - PDF copy of the acknowledgement: shop name and address, request number, date and time received, order, items, the declaration as submitted, the current status and the receipt code. It downloads from the status page and the confirmation screen and is attached to the acknowledgement email, except for a declaration that matched no order. Built in, with a bundled DejaVu Sans subset, so no PDF library is needed.
- Withdrawal link block (
plogins-withdraw/button) for posts, pages and block theme footers. It uses the form page and Link text settings, and the label can be changed per block. On a page where the block printed the link, the optional footer link is not repeated. - Configurable withdrawal period, measured from the order completion date or, when the order was never completed, from the order creation date. An order of only virtual products (services, digital content) counts from the order creation date, the day the contract is concluded (Directive 2011/83/EU, Art. 9(2)(a) and (c)). The form prints the resulting deadline.
- Eligibility gate: order status, deadline and the quantity per line not yet covered by a pending, accepted or processed declaration, all re-checked on the server when the form is submitted.
- Admin log under WooCommerce > Withdrawal Requests, filterable by status, with a per-row status change (pending, accepted, rejected, processed). A fifth status,
cancelled, comes from the customer's cancel or from Customer cancelled (by post or phone) on a pending row. - Eight WooCommerce emails: the acknowledgement to the customer and the notification to the shop on submit, one per status you set, the guest access link, and a shop email when the customer cancels.
- Editable form intro text and model withdrawal text, both printed on the public form.
- Guest friendly: the order number plus billing email lookup needs no account.
- Privacy tools: a personal-data exporter for declarations, and an eraser that anonymises the stored email and reason.
- HPOS and cart/checkout blocks compatibility declared, and the request table is created per site, so Multisite works.
What it deliberately does not do
Section titled "What it deliberately does not do"- It issues no refunds and changes no order status.
- It does write an order note when a declaration arrives, when you change its status and when the customer cancels it, so the order screen shows what happened.
- Changing a request status sends the customer the matching WooCommerce email (see Configuration); each one can be switched off under WooCommerce > Settings > Emails.
- It exposes no REST or AJAX endpoint, runs no cron job, and offers no downloadable model form. The only PDF it makes is the copy of the acknowledgement.
How a withdrawal request works
Section titled "How a withdrawal request works"- The customer opens your withdrawal page and enters the order number and the billing email used at checkout. The match is case-insensitive.
- Withdraw checks that the order status is one of the eligible statuses, that the withdrawal period is still open, and which quantities are not yet covered by a pending, accepted or processed declaration. Rejected and cancelled requests cover nothing.
- The customer picks items and quantities, optionally writes a reason, ticks the declaration checkbox and submits.
- The same eligibility checks run again before anything is written, so a stale or tampered form cannot slip through.
- The request is stored in the plugin's own table, both emails go out, and a confirmation naming the request ID, the order number and the withdrawn items replaces the form.
- The request appears on WooCommerce > Withdrawal Requests, where you set its status. Any refund happens on the normal WooCommerce order screen.
- Until you decide, the customer can follow the request on its status page, download the PDF and cancel it there.
Next steps
Section titled "Next steps"- Getting started, install and set up the withdrawal page.
- Configuration, the settings reference, the period calculation, the status page, the PDF, the block, the request log and storage.
- FAQ, refunds, guests, emails, privacy, HPOS and uninstall.
- EU withdrawal button: Article 11a for online shops, background article on WPPoland.