=== Tree-Nation for WooCommerce === Contributors: treenation Tags: shop,product,tree,forest,climate-change Requires at least: 4.4 Tested up to: 6.8 WC tested up to: 9.4 Stable tag: 1.7.7 Requires PHP: 5.6 MySQL: 5.6 or greater License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html This integration will allow you to offer a tree each time a customer buys a product using WooCommerce. == Description == This integration will allow you to offer a tree each time a customer buys a product using WooCommerce. 1 tree will be offered for each product purchase. For example, if a user makes 1 purchase which includes 2 x Product A and 3 x Product B, this user will receive an email with his 5 trees offered by your brand. Some options are available: * Limit to some specific products: specify which products will trigger a tree planted, instead of all products. * Limit to 1 (or X) tree per order: a purchase of 5 products will only generate 1 tree. Once you completed this integration, the system will be 100% automated. Total integration takes less than 10 minutes on your side :) General website: [Tree-Nation](https://tree-nation.com/ "Tree-Nation") WooCommerce integration: [Tree-Nation Auto-Offer](https://tree-nation.com/auto-offer/) == Installation == Upload the Tree-Nation for WooCommerce plugin to your site, activate it, and then enter your Tree-Nation ID on the settings page. Find here our complete [installation guide](https://tree-nation.com/documents/webhook_manuals/Woocommerce_integration_Plugin_for_Tree-Nation_v3%20-%20EN.pdf). Requirements: * The WooCommerce plugin needs to be installed in your WordPress site and up to date. * You’ll need to have a Tree-Nation ID from your Tree-Nation account. == Changelog == = 1.7.7 = *Release Date - 02 Jun 2026* Fix: correct operator precedence in webhook duplicate detection so the first Tree-Nation webhook is never deleted (TNIT-5206) = 1.7.6 = *Release Date - 14 May 2026* Tested up to WordPress 6.8 and WooCommerce 9.4 = 1.7.5 = *Release Date - 16 Apr 2026* Fix: re-enable webhook after plugin self-update via WordPress admin UI = 1.7.4 = *Release Date - 10 Mar 2026* Fix: preserve Autoplant ID and webhook URL across plugin and WooCommerce updates = 1.7.3 = *Release Date - 09 Dec 2025* Tested up to WordPress 6.9 = 1.7.2 = *Release Date - 09 Sept 2025* Updated version warning = 1.7.1 = *Release Date - 08 Apr 2025* Test on WordPress 6.8 = 1.7.0 = *Release Date - 31 Oct 2024* Removed extra tag = 1.6 = *Release Date - 22 July 2024* Updated to support HPOS and tested on WP version 6.5.5 = 1.5 = *Release Date - 29 January 2023* * Tested up to Wordpress 6.1.1 = 1.4 = *Release Date - 25 October 2021* * Fixed bug on preventing duplicated webhooks that deleted other configured webhooks * Tested up to WordPress 5.8.1 = 1.3 = *Release Date - 20 August 2020* * Tested up to WordPress 5.5 = 1.2 = *Release Date - 18 June 2020* * Fixed a problem where the internal webhook url was being parsed incorrectly = 1.1 = *Release Date - 25 February 2020* * First release == Support == Contact us at auto-offer@tree-nation.com if you encounter any problem with this plugin. == External services == This plugin uses the Tree-Nation API to automate the process of offering trees for each product purchased through WooCommerce. For more information, please refer to our [Terms of Service](https://tree-nation.com/legal/terms-of-service) and [Privacy Policy](https://tree-nation.com/legal/privacy-policy).