=== Simple Connection for ChronoFresh ===
Contributors: tlloancy
Donate link: https://donorbox.org/wordpress-plugins
Tags: chronofresh, chronopost, shipping, pickup-points
Requires at least: 5.8
Tested up to: 6.8
Stable tag: 1.0.3
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Seamless Chronopost/Chronofresh shipping with WooCommerce, featuring secure pickup point selection.

== Description ==

**Simple Connection for ChronoFresh** integrates Chronopost/Chronofresh shipping into WooCommerce, enabling customers to select delivery methods and pickup points at checkout.

### Features
- Supports Chrono Ambient Relais 13, Chrono Fresh 13, Chrono 13, Chrono Freeze 13, Chrono Relais 13.
- Dynamic pickup point `<select>` based on postcode.
- Secure AJAX with nonce verification.
- No jQuery for modern performance.
- Debug logs in `/wp-content/uploads/simple-connection-for-chronofresh-woocommerce/scc-debug.log`.

**Go Premium** for real-time tracking and auto-labels at [deter-mi.net](https://deter-mi.net)!

== External services ==

This plugin connects to Chronopost APIs to handle shipping calculations, pickup point searches, label generation, and tracking.
It sends customer shipping details (address, postcode, city, weight) when searching pickup points or generating labels.
This service is provided by Chronopost: [Terms of use](https://www.chronopost.fr/terms), [Privacy policy](https://www.chronopost.fr/privacy).

== Installation ==

1. Upload the `simple-connection-for-chronofresh-woocommerce` folder to `/wp-content/plugins/`.
2. Activate the plugin via the WordPress 'Plugins' page.
3. Configure settings in **WooCommerce > Settings > Chronofresh**.

== Frequently Asked Questions ==

= Where are debug logs? =
Check `/wp-content/uploads/simple-connection-for-chronofresh-woocommerce/scc-debug.log` or `/wp-content/uploads/chronofresh-logs/`.

= Is it secure? =
Yes, the plugin uses nonces, sanitizes inputs, and escapes outputs.

== Changelog ==

= 1.0.3 =
Released on August 25, 2025:
* Added: Explicit select when no temperature is defined, which default to ambient for label generation, avoiding any unrecognized state for products linked to chronofresh via Expedition Class. 

= 1.0.2 =
Released on August 22, 2025:
* Enhanced: Added support for mixed orders (ambient, fresh, freeze) with any shipping method, including custom methods like alg_wc_shipping.
* Fixed: Resolved fatal error when generating labels for orders with deleted or invalid products by safely handling null products.
* Improved: Updated label generation to rely on product temperature types (_temperature_type) instead of shipping method, ensuring accurate Chronopost codes (5M, 5Q, 2R, 2S).
* Updated: Default Chronopost test credentials to match provided API keys for seamless testing.
* Enhanced: Improved logging for skipped items and parcel splitting for better debugging.
* Boost your shipping with Premium features like real-time tracking and automated multi-label generation at [deter-mi.net](https://deter-mi.net)!

= 1.0.1 =
Released on August 9, 2025: Includes critical fix for nonce verification to ensure secure and pickup api call bug

= 1.0.0 =
* Initial release with Chronofresh shipping and pickup point support.

== Upgrade Notice ==

= 1.0.0 =
Secure, WordPress-compliant Chronofresh integration for WooCommerce.

== Support ==

- [Chronopost Web Services](https://ws.chronopost.fr)
- WordPress.org forum
- Premium support: [tlloancy@deter-mi.net](mailto:tlloancy@deter-mi.net)
