=== AGEC Ready – AGEC Compliance for WooCommerce ===
Contributors: ymenec
Tags: agec, triman, recyclage, info-tri, woocommerce
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.2
Stable tag: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automatic Triman and per-product sorting instructions (Info-tri) to help your WooCommerce store meet AGEC law display requirements.

== Description ==

**AGEC Ready** is the all-in-one plugin that helps French WooCommerce merchants comply with the
**AGEC law** (loi anti-gaspillage pour une économie circulaire). The free version automates the
display of the **Triman** logo mention and the **Info-tri** (sorting instructions) on every product
page — mandatory information that is free to display but tedious to add by hand, product by product.

Built to be fast: an activation wizard sets up the display in a few minutes, and per-category
defaults save you from re-entering the same data across large catalogs. AGEC Ready helps you
inform consumers online; it does not replace your own compliance obligations.

= Included in the free version =

* **Triman** mention and **sorting instructions (Info-tri)** per product, in a dedicated "AGEC" tab.
* **Automatic display** on the product page — classic themes **and** a "Sorting & recycling" block (FSE/Gutenberg).
* **Per-category defaults**: set the sorting once; products without their own setting inherit it.
* **Activation wizard** (display set up in a few minutes).
* Compatible with **HPOS** and **cart/checkout blocks**. French-language interface, accessible (RGAA/WCAG).

= Premium version =

* **Environmental statements** (article 13) with a dedicated dematerialized product page.
* **Regulatory monitoring and updates**: a dated in-plugin log and email alerts when the rules change.
* **Priority support**.

= Roadmap (not in this version) =

Multi-channel eco-contribution (cart, invoice, email) and additional REP channels (furniture, EEE,
textile) are planned for a later release. Version 0.1.0 focuses on Triman/Info-tri display (free) and
article 13 environmental statements (Premium).

= Regulatory sources =

Regulatory statements rely on Légifrance, ADEME and the approved eco-organisations (Citeo for
packaging). AGEC Ready helps you display the required mentions; it is not an eco-organisation and
does not replace your own reporting obligations.

== Installation ==

1. Install and activate **AGEC Ready** (WooCommerce required).
2. Follow the **activation wizard** shown after activation.
3. Fill in the sorting per product (the "AGEC" tab) or apply a per-category default to your categories.

== Frequently Asked Questions ==

= Does the plugin make me automatically compliant? =

It automates the **display** of sorting mentions. Compliance responsibility (declarations,
contributions) remains with the merchant; AGEC Ready is not an eco-organisation.

= Does the plugin show the official Triman logo? =

AGEC Ready displays the **legal mention** and the **sorting instructions** (text) alongside clear
**in-house pictograms**. The plugin does not reproduce the official signage, which is governed by a
producer charter — "Triman" is a protected mark of the French State (ADEME).

= Does it work with block themes (FSE) and block-based cart/checkout? =

Yes. Product-page display works in classic themes and via a dedicated Gutenberg block, and the
plugin declares WooCommerce HPOS and cart/checkout blocks compatibility.

= My products don't all use the same packaging. Do I have to re-enter everything? =

No: set a per-category default. Each product without its own setting inherits it, and the
product-level setting stays authoritative when present.

= What happens to my data if I uninstall the plugin? =

Uninstalling removes the plugin's site settings (options and caches). The per-product AGEC data
(Triman/Info-tri and environmental characteristics, stored as `_agec_ready_*` product meta) is kept
on purpose: it is your compliance data — article R.541-229 of the French environmental code requires
keeping the product sheet available for 2 years — and it is restored as-is if you reinstall.

= Does the plugin connect to external services? =

The **free** version runs entirely on your own site and sends **no data** to any external service.

The plugin bundles the **Freemius SDK** to offer the optional upgrade to AGEC Ready **Pro**. Freemius
communicates only when you **explicitly opt in** (for example, starting a Pro checkout, or choosing to
share diagnostic data) — no personal data is sent without your consent. When you do opt in, Freemius
may process license and account information (such as your email and site URL) to manage your
subscription, payments and updates, acting as the Merchant of Record for purchases. Freemius is a
third-party service governed by its own terms:

* Terms of Use: https://freemius.com/terms/
* Privacy Policy: https://freemius.com/privacy/

== Development ==

AGEC Ready ships as readable source — no obfuscated or minified-only code:

* **PHP** source lives in `src/` (PSR-4, namespace `AgecReady\`).
* The **Gutenberg block** source lives in `blocks/` (JS/JSX/SCSS) and is compiled to `build/` with
  [@wordpress/scripts](https://www.npmjs.com/package/@wordpress/scripts):
  run `npm install && npm run build` (equivalent to
  `wp-scripts build --webpack-src-dir=blocks --output-path=build`).
* PHP dependencies are installed with Composer: `composer install --no-dev`.

The plugin includes one third-party library, the **Freemius WordPress SDK**
(`vendor/freemius/wordpress-sdk`) — an open-source library published upstream at
https://github.com/Freemius/wordpress-sdk and pulled in via Composer. It powers the optional Pro
upgrade (see "Does the plugin connect to external services?" above).

== Screenshots ==

1. The activation wizard: enable the Triman and Info-tri display in a few steps.
2. The "Sorting & recycling" card (Triman + Info-tri) on the product page.
3. The environmental statements (article 13) on the product page — Premium version.
4. Regulatory monitoring: coverage overview and a dated log of updates — Premium version.

== Changelog ==

= 0.1.0 =
* Triman + Info-tri display per product (classic product page and FSE block).
* Per-category defaults (product inheritance; the product-level setting stays authoritative).
* Activation wizard (display set up in a few minutes).
* HPOS and cart/checkout blocks compatibility.

== Upgrade Notice ==

= 0.1.0 =
First release: automatic Triman and Info-tri on your product pages.
