*** Account Funds for WooCommerce *** 2024-03-26 - version 3.0.2 * Tweak - Change plugin name to Account Funds for WooCommerce * Tweak - Update brand to Kestrel 2024-01-17 - version 3.0.1 * Tweak - Tested compatibility up to WC 8.5. * Fix - Fixed error when generating a funds discount code before the `WC_Session` object is initialized. * Dev - Improved compatibility with PHP 8.2 by not declaring dynamic properties in classes. 2023-11-30 - version 3.0.0 * Feature - Use funds as a payment method on orders manually created. * Tweak - Declared incompatibility with the WooCommerce Cart and Checkout blocks. * Tweak - Updated the plugin URLs to the new woo.com domain. * Tweak - Updated plugin author. * Tweak - Tested compatibility up to WC 8.3. * Tweak - Tested compatibility up to WP 6.4. * Dev - Dropped `woo-includes/` files. * Dev - Dropped deprecated code from versions 2.x. * Dev - Dropped deprecated filter hook `woocommerce_account_funds_get_settings`. * Dev - Updated the minimum requirements to WC 4.0, WP 5.0, and PHP 7.0. 2023-04-12 - version 2.9.1 * Tweak - Display the "Refund via Account Funds" button for orders paid with a different payment gateway only on WC 6.8+. 2023-04-12 - version 2.9.0 * Feature - Added automatic refunds via 'Account Funds' for any payment method. * Tweak - Tested compatibility with WC 7.6. * Dev - Allow filtering of the funds' discount data before applying the discount. 2023-03-28 - version 2.8.0 * Feature - Use a different name to refer to the account funds. * Tweak - Register the increase funds email as a transactional email. * Tweak - Added setting for customizing the message of the increase funds email. * Tweak - Include the additional content in the increase funds email. * Tweak - Added placeholder {funds_amount} to the increase funds email. * Tweak - Use the store locale when sending customer emails. * Tweak - Added setting for customizing the payment gateway description displayed in the checkout form. * Tweak - Improved performance by initializing the payment gateway description only when needed. * Tweak - Register the plugin integrations when all plugins have been loaded. * Tweak - Reduced the plugin text strings by re-using strings from the WC core. * Tweak - Tested compatibility up to WC 7.5. * Tweak - Tested compatibility with WP 6.2. * Dev - Added the 'tax_status' value as the first argument of the filter `woocommerce_account_funds_topup_get_tax_status`. * Dev - Updated plugin templates. 2022-11-16 - version 2.7.3 * Tweak - Declare compatibility with WooCommerce High-Performance Order Storage (HPOS). 2022-11-10 - version 2.7.2 * Tweak - Check if the funds are still applicable to the cart when its items are updated. * Fix - Funds were not being removed from the cart after adding a deposit product. 2022-10-17 - version 2.7.1 * Tweak - Skip the v2.3.7 migration script when updating from a version older than 2.3.0. * Tweak - Tested compatibility up to WC 7.0. * Tweak - Tested compatibility with WP 6.1. 2022-06-14 - version 2.7.0 * Tweak - Validates the format of the funds' amount in the edit user screen. * Tweak - Updated link to get support in the plugin list. * Tweak - Tested compatibility up to WC 6.6. * Tweak - Tested compatibility with WP 6.0. * Dev - Added filters for customizing who can view and edit the users' funds. * Dev - Deprecated methods `WC_Account_Funds::add_funds()` and `WC_Account_Funds::remove_funds()`. * Dev - Updated the minimum requirements to WC 3.7, WP 4.9, and PHP 5.6. 2022-04-28 - version 2.6.5 * Tweak - Tested compatibility up to WC 6.5. 2022-03-09 - version 2.6.4 * Tweak - Update the cart session after applying the funds. 2022-02-23 - version 2.6.3 * Tweak - Use the order's currency symbol to format order prices. * Tweak - Tested compatibility with WC 6.3. * Fix - Fixed warning when displaying the funds used in the edit order screen and the plugin WooCommerce Payments is active. 2022-01-26 - version 2.6.2 * Tweak - Don't restore the funds automatically when an order is marked as 'Refunded' (Use partial refunds instead). * Tweak - Tested compatibility up to WC 6.2. * Tweak - Tested compatibility with WP 5.9. * Fix - The restored funds' amount cannot be greater than the 'Net payment' amount when canceling an order that contains partial refunds. 2021-12-17 - version 2.6.1 * Tweak - Tested compatibility with WC 6.0. * Fix - Fixed wrong Order balance in the Square dashboard when partially paying the order with funds. 2021-11-23 - version 2.6.0 * Feature - Add funds to the customer account on registration. * Tweak - Moved the 'Partial Funds Payment' setting to the top of the settings page. * Tweak - Validate the price type fields on the settings page. * Tweak - Toggle visibility of the dependant settings fields. * Tweak - Tested compatibility with WC 5.9. * Dev - Deprecated filter hook `woocommerce_account_funds_get_settings`. * Dev - Updated the minimum requirements to WC 3.4, WP 4.7, and PHP 5.4. 2021-10-20 - version 2.5.4 * Tweak - Added plugin info to the WooCommerce System Status Report. * Tweak - Tested compatibility with WC 5.8. 2021-09-01 - version 2.5.3 * Tweak - Tested compatibility up to WC 5.7. 2021-07-20 - version 2.5.2 * Tweak - Don't return zero when the customer funds balance is negative. 2021-07-01 - version 2.5.1 * Tweak - Tested compatibility with WP 5.8. * Fix - The funds were not being added to the customer account when using the top-up form (Only in version 2.5). 2021-06-28 - version 2.5.0 * Feature - Sell deposit products at a sale price. * Feature - Support recurring deposit products with the extension "All products for WooCommerce Subscriptions". * Tweak - Tested compatibility up to WC 5.5. * Dev - Added class autoloader. 2021-04-28 - version 2.4.4 * Tweak - Remove the discount applied by the "Account funds" payment gateway when this one stops being available. * Tweak - Remove the applied funds if after updating the cart the "Account funds" payment gateway is available. * Tweak - Set the minimum Top-up amount to 1. * Tweak - Tested compatibility up to WC 5.3. * Fix - Don't add to cart a Top-up product with zero funds. 2021-04-19 - version 2.4.3 * Fix - Percentage discount for using funds is calculated based on the amount of funds used (Reverts the fix 2.4.2). 2021-04-16 - version 2.4.2 * Fix - Fixed wrong discount when giving a percentage discount for using funds. 2021-04-13 - version 2.4.1 * Fix - The 'Account funds' checkbox didn't work on the cart page when modifying the cart at the same time. 2021-04-08 - version 2.4.0 * Feature - Added support for "Refunds" to the "Account Funds" payment gateway. * Tweak - Funds are restored after canceling or refunding an order. * Tweak - Don't set the order total to zero when the payment gateway is "Account Funds". * Tweak - Display the "Funds used" row in the Order details before the "Payment gateway" row. * Tweak - Hide the "Funds used" row in the Order details when the payment gateway is "Account Funds". * Tweak - Tested compatibility up to WC 5.2. * Fix - Unlock the used funds when canceling the PayPal payment process. * Fix - Fixed warnings thrown for using the deprecated method `WC_Order->get_product_from_item()`. * Dev - Updated the minimum requirements to WC 3.2 and WP 4.4. 2021-03-23 - version 2.3.11 * Tweak - Always display the 'Account funds' payment gateway when there are enough funds to pay the Order. * Tweak - Hide the 'Account funds' checkbox field when the payment gateway is available. 2021-03-16 - version 2.3.10 * Tweak - Top-up the customer funds when an order with deposit products is marked as processing. * Tweak - Tested compatibility up to WC 5.1. * Tweak - Tested compatibility with WP 5.7. * Fix - Fixed jQuery selector for detecting changes on the Account Funds checkbox field during checkout. 2021-01-26 - version 2.3.9 * Tweak - Tested compatibility with WC 4.9. * Fix - Order status keeps pending after using funds for renewing a subscription. 2020-12-30 - version 2.3.8 * Tweak - Set the subscription renewal to manual when a renewal paid with funds fails. * Fix - Fixed the not available payment gateways error when paying a failed renewal order of a subscription purchased with funds. 2020-12-28 - version 2.3.7 * Tweak - Update the database version when the plugin version changes. * Tweak - Fixed the balance for orders paid with funds in WC 4.7. * Tweak - Added an update script for deducting the funds from the accounts affected by the issue fixed on version 2.3.4. 2020-12-15 - version 2.3.6 * Fix - Allow changing the payment method of a subscription to "Account Funds" when this one is the unique payment gateway. 2020-12-09 - version 2.3.5 * Tweak - Tested compatibility with WC 4.8. * Tweak - Tested compatibility with WP 5.6. * Tweak - Don't apply the funds' discount when changing the payment method of a subscription. * Tweak - Don't copy the account funds' metadata when creating a subscription from an order. * Fix - The Account funds gateway was not available when changing the payment method of a subscription. * Fix - Fixed the zero-order total displayed in recurrent orders when applying funds to new subscriptions. 2020-11-16 - version 2.3.4 * Tweak - Tested compatibility with WC 4.7. * Fix - Funds were not being deducted from the account on fully paid orders with funds in WC 4.7. 2020-10-27 - version 2.3.3 * Tweak - Improved performance when applying account funds to the cart. * Tweak - Tested compatibility with WC 4.6. * Fix - Fixed warning when trying to apply funds on pages where the cart hasn't been initialized. 2020-09-17 - version 2.3.2 * Fix - Using funds to partially pay the order. * Update - WC 4.5 compatibility. * Update - WP 5.5 compatibility. 2020-09-07 - version 2.3.1 * Fix - Compatibility issue with WooCommerce Subscriptions. 2020-08-05 - version 2.3.0 * Tweak - Add "Funds used" before order total. * Tweak - Checkout improvements. * Tweak - UI improvements on order details (admin view). * Update - Tested compatibility with WC 4.3. * Dev - Deprecated function WC_Account_Funds_Cart_Manager::can_apply_funds. 2020-06-09 - version 2.2.1 * Tweak - Tested compatibility with WC 4.2. 2020-04-22 - version 2.2.0 * Tweak - Added responsive styles to the 'Recent deposits' table on the 'My Account' page. * Tweak - Check the minimum requirements are satisfied before initializing the extension. * Tweak - Added link to the extension settings on the plugins page. * Tweak - Updated plugin row metas. * Tweak - Enqueue minified scripts. * Fix - Enqueue the checkout scripts on the checkout page only. * Update - WC 4.1 compatibility. * Dev - Optimized code for handling the 'Account Funds' on the 'My Account' page. * Dev - Updated `myaccount/` templates. * Dev - Added new constants for defining the basename, path, and URL of the extension. * Dev - Optimized plugin initialization. 2020-03-30 - version 2.1.21 * Update - WC 4.0 compatibility. * Update - WP 5.4 compatibility. 2020-01-08 - version 2.1.20 * Update - WC 3.9 compatibility. 2019-10-31 - version 2.1.19 * Fix - Fixed incompatibility with the extension "Dynamic pricing" which made the account funds discount was applied twice. * Update - WC 3.8 compatibility. * Update - WP 5.3 compatibility. 2019-09-02 - version 2.1.18 * Fix - Fixed error when checking if the 'Account Funds' gateway is available during a REST API request. 2019-08-06 - version 2.1.17 * Tweak - Directly mark as completed the orders with only top-up/deposit products. * Update - WC 3.7 compatibility. * Update - WP 5.2 compatibility. 2019-04-09 - version 2.1.16 * Fix - Fixed issue fetching the created date of the orders in the deposits report. * Update - WC 3.6 compatibility. 2019-01-09 - version 2.1.15 * Fix - Include the 'Account Funds' gateway in the list of available payment methods in the subscription renewals. * Fix - Remove funds from the user account after paying for a failed subscription renewal. 2018-12-14 - version 2.1.14 * Fix - Don't add the funds used to the order total when checking the PayPal IPNs. 2018-11-27 - version 2.1.13 * Fix - Check the 'WC_Cart' instance is initialized before use it. * Fix - Fixed 'text domain' for some translatable strings. 2018-09-25 - version 2.1.12 * Tweak - Hide Account Funds payment gateway when there are not enough funds. * Update - WC 3.5 compatibility. 2018-05-23 - version 2.1.11 * Update - Privacy policy notification. * Update - Export/erasure hooks added. * Update - WC 3.4 compatibility. * Tweak - Add filters for add/remove funds, `woocommerce_account_funds_add_funds` and `woocommerce_account_funds_remove_funds` respectively. 2018-01-30 - version 2.1.10 * Fix - Order page edits affect order total. 2017-12-12 - version 2.1.9 * Update - WC tested up to version. 2017-12-12 - version 2.1.8 * Fix - Apply correct discount calculation when account funds are used. 2017-09-29 - version 2.1.7 * Fix - WC 3.1 error notices. * Fix - Widget should redirect to My Account > Account Funds. * Fix - Display funds used in order items section of edit order screen. * Fix - Issue where failed renewal payment doesn't set the renewal order to failed. 2017-06-22 - version 2.1.6 * Fix - Refund on a top-up order doesn't remove the Account Funds. * Fix - When coupon discount is used incorrect total is added to funds. 2017-04-26 - version 2.1.5 * Fix - Issue where product type deposit reverted to simple product upon saving. 2017-04-17 - version 2.1.4 * Fix - Error when opening admin page of coupons. * Tweak - Add new email settings and templates when funds are increased via admin page. 2017-04-12 - version 2.1.3 * Fix - Unable to add funds via top-up when using WooCommerce 3.0. * Fix - Amount funded in recent deposits display zero. * Fix - Error in my account funds page. * Fix - Added migration routine to store top-up related information in order item meta. 2017-04-03 - version 2.1.2 * Fix - When partially paying with a gateway, the full amount is passed instead of remaining amount. * Fix - Subscriptions recurring payments applied but status not set to active after payment. * Fix - Update for WC 3.0 compatibility. 2016-12-28 - version 2.1.1 * Fix - Use subtotal for adding the funds from topup amount. Otherwise, it'd incorrect when coupons are applied in the order. 2016-11-10 - version 2.1.0 * New - Change with how the checkout flow logic works. User may apply account funds if less than order total and if more user must use it like a normal gateway. * Fix - When partially paying with a gateway, the full amount is passed instead of remaining amount. * Fix - Checkout gateway selection does not work if additional payment gateways are active. * Fix - Subscriptions recurring payments applied but status not set to active after payment. * Fix - PayPal double account funds applied. * Fix - Stripe Partial account funds not applied on the gateway side. 2016-07-15 - version 2.0.15 * Fix - Revert applied tax to top-up product that's added in 2.0.14. * Tweak - Provide filter `woocommerce_account_funds_topup_get_tax_status` to change the tax status of top-up product. 2016-07-05 - version 2.0.14 * Fix - Double navigation displayed under Account Funds of My Account page. * Fix - Tax was not respected when adding the funds via top-up. 2016-06-09 - version 2.0.13 * Fix - Partial payments with Sage Pay Form now sending correct amount. 2016-05-31 - version 2.0.12 * Tweak - New UI in my account, with menu and breadcrumb, when WooCommerce 2.6 is being used. * Fix - Issue where calculation for partial payments with multiple quantities was incorrect. * Fix - Issue where topup funds were not getting added into user funds. 2016-03-07 - version 2.0.11 * Fix - Account funds not applied to PayPal Standard items. 2016-02-05 - version 2.0.10 * Fix - Deprecated notices that cause header already sent errors. * Fix - Partial funds was not working correctly. 2016-01-21 - version 2.0.9 * Fix - Added update routine to fix incorrect order total on existing renewal orders. 2016-01-11 - version 2.0.8 * Fix - Incorrect order total on subscription renewal. 2015-12-21 - version 2.0.7 * Fix - Rounding error. 2015-12-17 - version 2.0.6 * Feature - Allow deposits to have a sale price. * Tweak - Show min/max topup amount info to customer if Minimum/Maximum Top-up is set. * Fix - Fatal error when using PHP7. * Fix - Make top-up product virtual. * Fix - Account page errors. 2015-11-11 - version 2.0.5 * Fix - Error when subscription renewal happened in the backend. 2015-08-18 - version 2.0.4 * Fix - Error on account page. 2015-04-21 - version 2.0.3 * Fix - Potential XSS with add_query_arg/remove_query_arg. * Fix my account product display when no deposit products exist. 2015-03-03 - version 2.0.2 * Fix saving gateway options. 2015-03-03 - version 2.0.1 * Prevent case where meta is cleared. 2015-02-01 - version 2.0.0 * WC 2.3 compatibility. * Refactored entire plugin. * Send email to customer when manually increasing funds. * Allow partial fund payments. * Allow user-defined topups from the "my account" page.