=== Odbavení balíků for Českou Poštu ===
Contributors: gtom
Tags: woocommerce, shipping, ceska-posta, czech-post, balikovna
Requires at least: 6.2
Tested up to: 7.0
Requires PHP: 7.4
WC requires at least: 5.0
WC tested up to: 10.8.1
Stable tag: 1.1.0
Requires Plugins: woocommerce
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Integrate your WooCommerce store with Česká Pošta B2B API for parcel submission, tracking, and label printing.

== Description ==

This plugin connects your WooCommerce store to the Česká Pošta B2B API (ZSKService and ZSKSService), allowing you to:

* **Submit parcels** – Send order data to Česká Pošta with a single click from the order edit page
* **Track shipments** – Check current parcel status and view complete tracking history
* **Print labels** – Download and print shipping labels (PDF) directly from the admin

= Features =

* HMAC-SHA256 authentication as per Česká Pošta B2B specification
* Support for multiple parcel types (DR, NB, BA, BB, DV, RR)
* Cash on delivery (COD) support
* Automatic street/house number parsing from WooCommerce address
* Multiple label formats (A4, A6, Zebra, standalone)
* Bulk submission of multiple orders
* Test and production environment support
* WooCommerce HPOS (High-Performance Order Storage) compatible

= Setup =

1. Install and activate the plugin
2. Go to WooCommerce → Česká Pošta
3. Enter your API Token and Secret Key (from POL User application)
4. Configure your Contract ID, Customer ID, and sender details
5. Choose your preferred label format

= Requirements =

* WordPress 5.8+
* WooCommerce 5.0+
* PHP 7.4+
* Active Česká Pošta B2B contract with API access

== Installation ==

1. Upload the `ceska-posta-shipping` folder to `/wp-content/plugins/`
2. Activate the plugin through the 'Plugins' menu
3. Configure settings under WooCommerce → Česká Pošta

== External services ==

This plugin connects to the Česká Pošta B2B API (postaonline.cz) to create shipments, print labels and retrieve shipment information.

It sends parcel and recipient information (name, address, phone number, email address and shipment details) when a shipment is submitted to Česká Pošta.

Service provider: Česká Pošta, s.p.
Terms and Privacy Policy:
https://www.ceskaposta.cz/o-spolecnosti/ochrana-osobnich-udaju-gdpr

The plugin also embeds the Česká Pošta/Balíkovna location picker from cpost.cz during checkout.

When the pickup-point selector is used, the customer's browser loads content from cpost.cz.

Terms and Privacy Policy:
https://www.ceskaposta.cz/o-spolecnosti/ochrana-osobnich-udaju-gdpr

== Changelog ==
= 1.1.0 =
* Added front end for Balikovna selection

= 1.0.0 =
* Initial release
* Parcel submission via ZSKSService API
* Shipment status tracking via ZSKService API
* Label printing (PDF download)
* WooCommerce HPOS support
