=== Tadrik Subscription Rules UK ===
Contributors: tadrik
Tags: woocommerce, subscriptions, renewal reminder, cancel subscription, uk
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Renewal reminders, an easy way to end a subscription and the key facts before sign-up, on the schedule the new UK subscription rules ask for.

== Description ==

New UK rules for subscriptions are due to start in January 2027 (Digital Markets, Competition and Consumers Act 2024). The draft regulations name 1 January 2027 and are not yet final. They apply to new subscriptions: for one that starts on or after that day, a store that sells to UK customers has to remind the customer before a renewal payment, let them end the subscription online without a hunt, and tell them the key facts before they pay.

This plugin does those three jobs for a WooCommerce store, and keeps a record of every notice.

It helps you meet the new rules. It is not legal advice, and it cannot check your terms or product pages for you.

**In this version**

* **Renewal reminders on the schedule the rules set.** Before the first payment after a free trial, and before the last payment in every six months. Yearly plans get an extra, earlier reminder.
* **What a reminder says.** The amount and the date, what the last payment was and how much more this one is, how often the customer pays, the last day to end the subscription to avoid the payment, and how to end it. Sent on its own, with a clear subject.
* **An "End subscription" button** on the My Account page. Two clicks, no email or phone call needed. The customer gets a confirmation that it ended and that no more payments will be taken.
* **The key facts at checkout** when a subscription is in the cart: that it renews, what it costs and how often, the monthly equivalent, how to end it, and the 14 days to change their mind. Works with the classic and the block checkout.
* **A checklist** that shows what is done and what you still need to check yourself.
* **A log** of every notice: what it said, to whom and when.
* **Test mode first.** A new install emails nobody. It writes each notice to the log so you can read it. You switch on sending when you are happy.

**Works with**

* WooCommerce Subscriptions (the paid extension from Woo)
* Subscriptions for WooCommerce by WP Swings (free)

Customers are picked by billing country (GB by default). Subscriptions that started before the rules begin are left alone unless you tick "Cover older subscriptions".

== Installation ==

1. Make sure WooCommerce and one of the two subscriptions plugins above are installed and active.
2. Under Plugins > Add New, search for "Tadrik Subscription Rules UK", then install and activate it. Or upload the zip under Plugins > Add New > Upload Plugin.
3. Open WooCommerce > Subscription Rules UK. Read the checklist.
4. Leave it in test mode for a day, read the notices in the Log tab, then switch on sending in Settings.

== Frequently Asked Questions ==

= Does this cover everything the rules ask for? =

No, and no plugin can. It sends the reminders, adds the end button and shows the key facts. Your terms, your product pages and your refunds are still yours to get right. The checklist marks those as "Check yourself".

= Will it email my customers as soon as I activate it? =

No. It starts in test mode. Nothing is emailed until you choose "Send" in Settings.

= When are reminders sent? =

By default between 10 and 3 days before the last day the customer can end the subscription to avoid the payment. Yearly plans also get a reminder 30 days before. You can change the days in Settings.

= My subscriptions plugin already sends a renewal email. Do I need this? =

That email usually goes out before every payment and does not say what the rules ask for (the last payment, the increase, the last day to cancel). You can keep both, or switch the other one off.

= Does it cancel the payment agreement with the gateway? =

It ends the subscription the same way the subscriptions plugin's own cancel link does, so the gateway is told in the same way.

= Which customers does it cover? =

Those whose billing country is in the list in Settings (GB by default) and whose subscription started on or after 1 January 2027, the start date in the draft regulations. The rules do not reach back to earlier subscriptions; tick "Cover older subscriptions" if you want to treat those customers the same way.

= Is it tested with WooCommerce Subscriptions? =

Yes. It was run on a real store against the open-source subscriptions library that WooCommerce Subscriptions is built on (version 8.2.0), on PHP 7.4 and 8.3 with High-Performance Order Storage on: reading subscriptions, the reminder, the key facts at checkout and the End subscription button. If you see anything odd on your store, write to hello@tadrik.com.

= Does it send the cooling-off notice after a trial or a yearly renewal? =

Not in this version. The checklist shows it as open so you do not forget it.

= What happens if I delete it? =

Deleting the plugin removes its settings, its notice log and its daily check. Your orders and subscriptions are not touched. Export or copy the log first if you want to keep the record.

== Screenshots ==

1. The checklist: what is done, what is left, and the next reminders due.
2. A renewal reminder as the customer gets it.
3. The key facts box at checkout.
4. The "End subscription" button on the My Account page.
5. The log of every notice.

== External services ==

This plugin doesn't connect to any outside service. Emails go out through your own site's mail.

== Changelog ==

= 0.1.0 =
* First version.
