H1Design Contract Withdrawal for WooCommerce

By h1design

10+ active installationsVersion 1.1.1

Adds the contract withdrawal function, withdrawal instructions and a model withdrawal form to WooCommerce, as required by the Croatian Consumer Protec …

Description

From 19 June 2026, a trader who concludes distance contracts through an online interface must let consumers withdraw from the contract through an online withdrawal function (Croatian Consumer Protection Act, Art. 81.a, as amended by NN 59/2026). This plugin adds that function to a WooCommerce store, together with the withdrawal instructions and the model withdrawal form the trader must provide.

WooCommerce’s built-in order cancellation is not the same as the legal right of withdrawal: the right of withdrawal exists from the conclusion of the contract until the end of the statutory period after delivery. This plugin implements the latter.

Key features

  • A “Withdraw from contract” button on each eligible order in My Account > Orders (logged-in customers), available in the order statuses you choose (by default: processing, on hold and completed).
  • A guest flow: customers who checked out without an account enter their order number and e-mail, and receive a confirmation link (valid 60 minutes) sent to the order’s e-mail address. This prevents anyone but the inbox owner from starting a withdrawal.
  • A two-step flow: the customer reviews the order, confirms or corrects their name and the e-mail address for the confirmation, and confirms the withdrawal. No discouraging messages or hidden steps.
  • An acknowledgement of receipt sent to the customer by e-mail, with the content of the withdrawal statement and the date and time of its submission.
  • A notification e-mail to the shop, with full request details, a link to the order and the customer’s address as reply-to.
  • An exact withdrawal deadline: enter the date the goods were handed over to the customer on the order (or supply it from a courier integration through the h1roc_delivery_date filter). Without it, the deadline is counted from the trigger status plus optional buffer days.
  • Withdrawal instructions built from the model text of the Croatian Ordinance NN 105/2026 (Annex I) and your settings (trader data, return of goods, return costs). They can be added to the order e-mails and shown on the terms page with the [h1roc_withdrawal_info] shortcode.
  • A model withdrawal form (PDF) generated from your trader data, attached to the selected order e-mails and available for download with the [h1roc_withdrawal_form_link] shortcode.
  • Exemptions for goods with no right of withdrawal (goods made to the consumer’s specifications or clearly personalised): per product, per variation, per category, by order item meta key (e.g. saved by a personalisation plugin), manually per order, or through the h1roc_is_item_exempt filter.
  • A request log in the admin area (WooCommerce > Withdrawal requests).

Important

This plugin is a technical tool to help a store offer a withdrawal function and the related information. It does not constitute legal advice, and it does not by itself guarantee full legal compliance. Store owners remain responsible for their terms of sale, pre-contract information, and overall compliance.

Third-party components

  • tFPDF 1.34 (LGPL), used to generate the model withdrawal form.
  • A subset of the GNU FreeSans font (GNU FreeFont, GPLv3 or later with the font exception), embedded in the PDF so that Croatian characters display correctly. See includes/lib/README.txt.

Installation

  1. Upload the plugin folder to /wp-content/plugins/, or install it through the WordPress “Add New” plugins screen.
  2. Activate the plugin. WooCommerce must be installed and active.
  3. Go to WooCommerce > Settings > Contract withdrawal and set the statuses with withdrawal, the trigger status, the window length, the buffer, the recipient e-mail and the exempt-product notice.
  4. In the same screen, under “Withdrawal instructions and model form”, enter the trader data and the return options, and choose whether the instructions and the form are added to the order e-mails.
  5. Add [h1roc_withdrawal_info] and, if you like, [h1roc_withdrawal_form_link] to your terms page.
  6. Optionally mark products, variations, or categories as exempt from withdrawal under each product’s data panel or the category screen.

FAQ

Does this replace WooCommerce order cancellation?

No. Cancellation and the right of unilateral withdrawal are different. This plugin adds the legal withdrawal function.

When is the withdrawal button available?

While the order is in one of the statuses with withdrawal and the deadline has not passed. If the date the goods were handed over is entered on the order, the deadline is the end of that day plus the window days. Otherwise the deadline is counted from the moment the order reached the trigger status, plus the window and the buffer days. Before either date is known, the period has not started and the button stays available.

Do I still need the model withdrawal form?

The Croatian Consumer Protection Act (Art. 60(1), point 10) still requires the trader to inform the consumer about the model withdrawal form, as well as about the existence and location of the withdrawal function. The plugin generates the form and can attach it to the order e-mails.

Can guests (customers without an account) withdraw?

Yes. They enter their order number and e-mail, then confirm via a link sent to the order’s e-mail address.

Does the plugin change the order status automatically?

No. It records the request and notifies the shop. Processing the request (refunds, status changes) is done manually by the store.

Is this legal advice?

No. It is a technical tool. Store owners are responsible for their own legal compliance.

Changelog

1.1.1

  • Fixed: the manual exemption flag (_h1roc_exempt) is no longer shown as raw item meta in the order items table in the admin.

1.1.0

  • New: the withdrawal function is available in the order statuses you choose (default: processing, on hold, completed), because the right of withdrawal exists from the conclusion of the contract.
  • New: delivery date field on the order (“Goods handed over to the customer on”) for an exact deadline, the h1roc_delivery_date filter for integrations, and the resulting deadline shown on the order screen.
  • New: the customer confirms or corrects their name and the e-mail address for the confirmation before confirming the withdrawal.
  • New: the acknowledgement of receipt contains the content of the withdrawal statement (name, e-mail, order, items, reason) and the date and time of submission.
  • New: withdrawal instructions (Ordinance NN 105/2026, Annex I) for the order e-mails and the [h1roc_withdrawal_info] shortcode.
  • New: model withdrawal form (PDF), attached to the order e-mails and linked with the [h1roc_withdrawal_form_link] shortcode.
  • New: exemption by order item meta key, and the h1roc_is_item_exempt filter.
  • Improved: e-mails use the From name and address of the WooCommerce e-mail settings; customer e-mails get the request recipient as reply-to, shop notifications get the customer’s address.
  • Improved: an empty exempt-product notice falls back to the default text.
  • Improved: Croatian translation of the confirmation button is now “Potvrdi raskid ugovora”, the wording of Art. 81.a(5).
  • Improved: the translation bundled with the plugin is used first and the WordPress.org language pack fills in the rest, so new texts (instructions, model form) are not shown in English while the language pack is being updated.
  • Improved: the model withdrawal form is always built in the site language and rebuilt when its translation changes.

1.0.0

  • Initial release.