﻿=== Donation Addon WooCommerce ===
Contributors: tusharknovator, monikapatel
Tags: woocommerce donate to charity, wordpress donation plugin woocommerce, donation for woocommerce, woocommerce fundraising plugin
Requires at least: 4.0
Tested up to: 7.0.1
Requires PHP: 7.4
Stable tag: 1.1.5
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html


== DESCRIPTION ==

**The WooCommerce Donation plugin (Addon)**  allows you to accept donations in WooCommerce with amounts specified by the end-user. 

Go through the **WooCommerce** / Donation Addon and change the settings that will appear in front of website.

With Woocommerce Donation Addon, Donation form will be visible in the cart and during the checkout process.



== KEY FEATURES ==

* Set up a specific product as a donation from the product list.
* Dynamic Label Options.
* Make a visible donation form with cart and checkout page options.
* Set the color of the donation button to match the primary color of your theme.
* You can change the color of the donation button text to match your theme.
* The donation button text can be customized to meet your needs.
* Set the Description field donation form.
* To enable or disable the option to display a donation form on the cart and during checkout

== ACTIVELY ENGAGED ==
[Knovator Technologies ](https://knovator.com/) believes in active community support, so we try to make life easier for developers and customers with the best **WooCommerce donation plugins**. Don’t forget to sign up for our newsletter.


== EXPLORE OUR OTHER PLUGINS TO ENHANCE YOUR WEBSITE ==
<ol>
<li><a href="https://wordpress.org/plugins/auto-delete-system-status-logs/" target="_blank" rel="noreferrer noopener">Auto Delete System Status Logs for WooCommerce</a></li>
<li><a href="https://wordpress.org/plugins/change-default-email-sender-name/" target="_blank" rel="noreferrer noopener">Change Default Email Sender Name</a></li>
<li><a href="https://wordpress.org/plugins/distance-rate-shipping-for-woocommerce/" target="_blank" rel="noreferrer noopener">Distance Rate Shipping For WooCommerce</a></li>
</ol>


== INSTALLATION ==
1. Upload plugin directory to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to **WooCommerce** / Donation Addon and make desire settings

 == FAQ ==
= How do I make use of this plugin? =
Go through WooCommerce / Donation Addon and change the settings that will appear in front of website.
= Why isn't the donation form visible in my cart? =
Go through WooCommerce / Donation Addon and enable the option to display a donation form on the cart.


== SCREENSHOTS ==
1. Configure settings
2. Donation form on Cart
3. Donation form on Checkout

== Changelog ==
1.1.5  * Fixed the donation form's loading spinner getting stuck indefinitely on a rejected/failed submission, caused by an incorrect `this` reference in the AJAX success handler.
1.1.4  * Fixed a remaining bypass where a mismatched cookie/submitted price still let the donation product be added to the cart at $0; validation now happens at the point the item is actually added, instead of relying solely on a WooCommerce hook that wasn't reliably firing for this AJAX flow.
1.1.3  * Fixed a bypass where a mismatched cookie/submitted price let the donation product be added to the cart at $0 instead of being rejected; add-to-cart is now blocked outright when the amount is invalid.
1.1.3  * Fixed "Undefined array key" warnings when displaying the donation form for a cart item with no valid donation price set.
1.1.2  * Fixed donation amount being trusted entirely from a client-editable cookie with no server-side validation, allowing arbitrary/invalid amounts to be charged.
1.1.2  * Fixed the AJAX add-to-cart handler adding the donation product before validating the submitted price.
1.1.2  * Added CSRF protection (nonce check) to the donation AJAX endpoint.
1.1.2  * Fixed a broken duplicate hidden nonce field on the settings page.
1.1.2  * Synced plugin version number with the readme's stable tag.
1.1.2  * Tested up to WordPress 7.0.1.
1.0.0  * First public release.

== Upgrade Notice ==
1.1.2 Fixes a security issue where the donation amount could be manipulated to any value via a browser cookie; upgrade recommended.
1.0.0 Added plugin support
 
