=== BrenWP HR Checkout Toolkit ===
Contributors: Brendigo
Tags: woocommerce, checkout, croatia, oib, r1
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

WooCommerce checkout fields for Croatia: R1 invoice, OIB, VAT ID, IBAN, parcel locker ID, plus CSV export (Classic + Blocks).

== Description ==

BrenWP HR Checkout Toolkit adds the most commonly requested checkout options for Croatian web-shops:

* R1 invoice checkbox ("Trebam R1 račun")
* OIB field with sanitization + validation (ISO 7064 MOD 11,10)
* Company name field
* VAT ID (PDV ID) field (optional)
* IBAN field (optional)
* "Poziv na broj" / payment reference (optional)
* Paketomat / parcel locker ID (optional, can be required for selected shipping methods)
* Delivery notes field
* Optional newsletter opt-in (GDPR-friendly: it only stores the value; no external calls)

Compatibility features:

* Works with Classic Checkout and Checkout Block (Store API).
* Mirrors key values to order meta keys (e.g. `_billing_oib`) for compatibility with invoicing/PDF plugins.
* Adds a compact indicator column (R1/OIB) to the admin orders list (optional).
* CSV export (Orders → Export) for bookkeeping (optional).

== Requirements ==

* WooCommerce is required.
* Checkout Block additional fields require WooCommerce 8.9+.
* Conditional visibility/requirement rules in Checkout Block require WooCommerce 9.9+.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` or install via the Plugins screen.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Go to WooCommerce → HR Checkout to configure.

== Frequently Asked Questions ==

= Does this plugin send data to third parties? =

No. The plugin does not make external requests.

= Where is the data stored? =

Checkout values are stored in the order meta. If you enable Newsletter opt-in, the value may also be stored in user meta for logged-in customers.

In Checkout Block, WooCommerce stores additional fields under its own meta keys (`_wc_other/...`). This plugin mirrors some values into additional meta keys for compatibility.

== Privacy ==

This plugin stores additional checkout data in order meta and optionally user meta:

* R1 invoice flag
* OIB (when provided)
* Company name (when provided)
* VAT ID (when provided)
* IBAN (when provided)
* Payment reference / "Poziv na broj" (when provided)
* Paketomat / parcel locker ID (when provided)
* Delivery notes (when provided)
* Newsletter opt-in (when enabled)

The plugin does not send data outside your site.

== Changelog ==

= 1.0.0 =
* Initial release.