=== MX Consumer Rights for WooCommerce ===
Contributors: mediax
Tags: consumer rights, legal guarantee, complaints, eu, woocommerce
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.2
WC requires at least: 8.0
WC tested up to: 11.3
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Consumer-law notices and procedures for EU and Croatian businesses, in modules you switch on as needed. Works with or without WooCommerce.

== Description ==

Modules:

* Legal guarantee – the official EU harmonised notice on the legal guarantee of conformity (Regulation (EU) 2025/1960), Croatian and English included and the other 22 EU languages added in one step, at checkout, in order emails and on its own page. From 27 September 2026.
* Order button – "Order with obligation to pay" on the classic and block checkout, also over payment methods' own labels (Croatian Consumer Protection Act Art. 74(3), Directive 2011/83/EU Art. 8(2)). WooCommerce.
* Written complaints – how to complain (in person at the premises, by post and by email as the law requires, plus the web form; phone numbers shown as contact data), a complaint form, optional Cloudflare Turnstile, immediate receipt confirmation, the 15-day reply deadline, replies and further messages, reminders and records with retention (Consumer Protection Act Art. 10). Own admin screen "Complaints".
* Dispute resolution – finds links to the EU ODR platform closed on 20 July 2025 and shows the out-of-court dispute resolution text.
* Durability guarantee – the EU GARAN label for products with a producer durability guarantee longer than two years; shown on the product (one label per model when sizes are different models) and with the item in cart and checkout. WooCommerce.
* Guarantee and repair – commercial guarantee, software updates, repairability and spare parts per product. WooCommerce.
* Energy label – class arrow next to the price (one per model for variable products), label and product information sheet. WooCommerce.
* Accessibility – an accessibility information page (European Accessibility Act) and an optional display tool for visitors (text size, contrast, readable font and more; opens from a round button or from links to #mx-pristupacnost; it does not make the site compliant). Not mandatory for micro-enterprises, but available to them.

Shortcodes: `[mx_eu_guarantee]` (attributes `mode="full"`, `lang`), `[mx_complaint_form]` (ways to complain and the form; `show="ways"` only the ways, e.g. for a contact page, `show="form"` only the form), `[mx_disputes]`, `[mx_accessibility]`, and the block "EU legal guarantee notice".

Texts you write yourself (link text, order button, dispute resolution, accessibility) are translatable per language with WPML or Polylang string translation.

Complaints are stored as a private post type; on uninstall the plugin removes its options but keeps complaints and pages, because complaints are records the business must keep.

This plugin helps a business display and handle these obligations. It does not verify that a business meets every consumer-protection obligation, and it is not legal advice.

== Privacy ==

* Update checks: the plugin contacts the Media X update service at https://media-x.hr/wp-json/mx-license/v1/update/info (HTTPS POST) during WordPress update checks, when plugin information is opened and right before an update package is downloaded. The request contains the plugin slug (mx-consumer-rights), the installed version, the site's home URL and the licence marker FREE. No visitor, customer, order or complaint data is sent. Answers are cached for 15 minutes.
* Written complaints: name, email address, order number (optional), the complaint, replies and further messages are stored on your own site only, for the period you choose (12, 24 or 36 months after receipt or the last reply), then the personal data is deleted (or the whole complaint, if you choose so). They are included in WordPress personal data export and erasure (complaints still inside the retention period are kept, as the law requires). They are not included in Tools > Export (WXR); move the site together with its database.
* Optional Cloudflare Turnstile on the complaint form: only when you enter both keys. The visitor's browser loads https://challenges.cloudflare.com and your server confirms the check there (visitor IP address and the check token). If Cloudflare cannot be reached, the complaint is still accepted.
* Optional accessibility tool for visitors (Accessibility tab, off by default): the visitor's display choices are kept only in their own browser (localStorage key mxcrA11y). Nothing is sent and no cookie is set.
* Notice languages: when you add a language under Legal guarantee > Notice languages, your server downloads the European Commission's two public ZIP files with the official notice from https://commission.europa.eu (HTTPS, only then). Nothing about your site, visitors or customers is sent. Only files byte-identical to the official ones are kept, in wp-content/uploads/mx-consumer-rights/notice/ (removed on uninstall).
* No tracking, no cookies, no other external requests. Suggested texts for your privacy policy are added to Settings > Privacy > Policy Guide.

== Third-party materials ==

The notice files in assets/notice/ (Croatian and English; the other languages are taken from the Commission's ZIP files when the site owner adds them) and the GARAN nested label in assets/garan/ are published by the European Commission: "Practical guidelines and high resolution vector files – EU notice and label product guarantees", https://commission.europa.eu/publications/practical-guidelines-and-high-resolution-vector-files-eu-notice-and-label-product-guarantees_en
© European Union. Reused under the Commission's reuse policy (CC BY 4.0, https://creativecommons.org/licenses/by/4.0/). Notice files are unmodified, only renamed to the language code; in the GARAN nested label only the editable "years" field is filled in when displayed. Logos are excluded from the Commission's reuse policy; they appear here only as part of the official notice and label, as the Commission intends traders to display them.

Admin icons follow Lucide (ISC licence, https://lucide.dev).

== Changelog ==

= 1.0.0 =
* First version, eight modules.
