=== Contrassegno Plus for woocommerce ===
Contributors: lucat20
Tags: cash on delivery, cod, payment fee, checkout, woocommerce
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.2.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add a configurable fee to Cash on Delivery in WooCommerce, set a maximum order threshold, and customize the fee label.

== Description ==

Contrassegno Plus extends the WooCommerce Cash on Delivery (COD) payment method with the options online stores need most:

* COD fee: a fixed amount added to the order total when the customer chooses Cash on Delivery, with a customizable label.
* Maximum order threshold: hide COD above a chosen amount to reduce fake orders and failed deliveries.
* Configurable tax on the fee.
* The fee appears in the cart summary, at checkout, on the thank-you page and in the order emails.
* Works with both the classic (shortcode) checkout and the block checkout.

All settings live in a dedicated tab under WooCommerce > Settings > Contrassegno.

A Pro version is also available, adding percentage and tiered fees, fee waivers above a spending threshold, availability rules by province, postcode, category, product, shipping method and user role, and a Cash on Delivery collection report with CSV export.

== Installation ==

1. Upload the `contrassegno-plus` folder to `/wp-content/plugins/`, or install the zip from Plugins > Add New > Upload Plugin.
2. Activate the plugin.
3. Go to WooCommerce > Settings > Contrassegno and configure the fee and the maximum order threshold.

== Frequently Asked Questions ==

= Does the fee appear in order emails? =

Yes. It is added as an order fee, so WooCommerce automatically includes it in the cart summary, the order details and the emails.

= Does it work with the block checkout? =

Yes. The fee updates in real time when the customer changes the payment method, on both the classic and the block-based checkout.

= Can I hide Cash on Delivery for large orders? =

Yes. Set a maximum order threshold: when the cart subtotal goes above it, the Cash on Delivery method is hidden at checkout.

== Changelog ==

= 1.2.1 =
* Renamed internal prefixes and text domain to meet WordPress.org review requirements.

= 1.2.0 =
* Settings moved to a dedicated tab: WooCommerce > Settings > Contrassegno (compatible with the new payments UI).
* Added a link to the Pro version.

= 1.1.0 =
* Block checkout support.

= 1.0.0 =
* First release: fixed fee, maximum order threshold, customizable label, configurable tax.
