=== Extend Woo Donations ===
Contributors: wdtechnologies
Tags: donations, woocommerce, fundraising, nonprofit, donations form
Requires at least: 6.2
Requires PHP: 7.4
Tested up to: 7.1
Stable tag: 1.0.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Accept one-time WooCommerce donations with fixed or custom amounts. Free forever, with a shortcode donation form.

== Description ==
Extend Woo Donations lets organizations using WooCommerce accept one-time contributions through their existing WooCommerce payment gateways. Donation products stay separate from merchandise for checkout behavior and reporting.

**Free features**
* Fixed and custom amount donation form using `[extend_woo_donate product_id="123"]`.
* Donation line-item and order labels to distinguish donations from merchandise.
* Donation-only versus mixed-cart identification without overriding normal shipping or tax settings for merchandise.
* No accounts or external services needed apart from WooCommerce and your payment gateway.

The optional Extend Woo Donations Pro extension is distributed separately at https://extendwoo.com/plugins/extend-woo-donations. The free plugin works without a license or an external API.

== Installation ==
1. Install and activate WooCommerce and Extend Woo Donations.
2. Create a **Simple** product, check **Donation product** under Product Data > General, and publish it. It will be virtual, non-taxable and have a base price of zero.
3. Create a WordPress page and add `[extend_woo_donate product_id="123" amounts="10,25,50,100"]` to a Shortcode block; replace 123 with the donation product ID.
4. Place a test donation and verify WooCommerce checkout and the order data.

== Frequently Asked Questions ==
= Does this process payments? =
No. WooCommerce and its configured payment gateway process the checkout. We do not receive donor payment details.
= Does it support recurring donations? =
The free version accepts one-time donations; recurring gifts require the separately installed Donations Pro and WooCommerce Subscriptions.
= Can donations and merchandise share a cart? =
Yes. The plugin does not change other products' checkout settings.
= Is a contribution automatically tax deductible? =
No. The organization is responsible for its legal status and any donor acknowledgment wording.

== Changelog ==

= 1.0.3 =
* Improve custom donation selection: no default preset, clear validation, and reliable cart-session persistence before checkout.
* Keep invalid custom amounts on the donation form rather than redirecting to a hidden donation product.
* Prevent caching donation form nonces on shortcode pages (including common page builders).
= 1.0.2 =
* Fixed custom amounts taking precedence over previously selected preset radio amounts, with progressive-enhancement JavaScript.
* Added a safe form/cart-data extension point for separately distributed premium donor fields.

= 1.0.1 =
* Strengthened donation input validation for WordPress.org Plugin Check.

= 1.0.0 =
* Initial self-hosted one-time donations, shortcode, and order identification.
