*** Changelog *** = v1.6.0 (May 04, 2026) = – **New:-** add new settings fields and hooks for Woo Wallet – **New:-** Implemented various input fields including AttachmentField, CheckboxField, ColorField, HtmlField, MultiSelectField, MulticheckField, NumberField, PasswordField, RadioField, SelectField, TextField, and TextareaField. – **New:-** Created a custom hook `useSettings` for managing settings state, loading, and saving. – **New:-** Added a field types registry to manage different input types dynamically. – **New:-** Introduced CSS styles for the new settings interface, ensuring compatibility with light and dark themes. – **New:-** Integrated REST API calls for fetching and saving settings data. – **New:-** Multi-currency provider abstraction with first-class adapters for WOOCS/FOX, WPML/WCML, CURCY, Aelia, and YayCurrency, plus a generic fallback for any other plugin that filters `woocommerce_currency`. – **New:-** Per-row currency audit columns (`original_amount`, `original_currency`, `original_rate`, `mode`) and a `(user_id, currency, deleted)` index on the wallet transactions table for accurate historical reporting. – **New:-** Additive REST surface: `/terawallet/v1/me/balance` now returns `base_currency`, `base_amount`, `mode`, and a `balances[]` array; `/me/transfer` and `/me/topup` accept an optional `currency` argument; `/wc/v3/wallet` exposes the new audit fields and a `currency` query filter. – **New:-** Admin endpoint `GET /wc/v3/wallet/multicurrency` and a Currency Mode panel in the React settings app that surfaces the active provider, base/active currencies, and the effective ledger mode. – **Security:-** Hardened the debit balance gate in `recode_transaction()` to read the raw ledger SUM directly instead of the filtered `get_wallet_balance()` value. Closes an overdraft window where any third-party hook on `woo_wallet_current_balance` (credit-expiry, redeemed-totals plugins) could inflate the perceived balance and let a user debit into negative territory. – **Security:-** Wrapped `wallet_credit_purchase()` in a per-order `GET_LOCK` with re-fetch inside the lock so duplicate gateway IPN deliveries (PayPal/Stripe webhook retries) can no longer both pass the `_wc_wallet_purchase_credited` meta guard and double-credit the wallet. – **Fix:-** Partial-payment debit now records the order currency, matching the cancellation refund — no more debit/refund pairs landing in different currencies. – **Fix:-** Cashback debit on order cancellation now passes the order currency, eliminating a second source of mixed-currency rows. – **Fix:-** Mode-aware balance reads — single-base sites continue to sum normalized rows; per-currency sites filter by the active currency, so a user with EUR and USD activity no longer sees an undefined-currency total. – **Tweak:-** Top-up orders honour the requested currency end-to-end: `WooWallet_Topup_Service::create_order()` calls `$order->set_currency()` before totals are calculated, so the gateway charges in the requested currency. – **Tweak:-** `woo_wallet_wc_price_args()` is now mode-aware; in per-currency mode it defaults to the active provider's currency while explicit per-row currency overrides still win. – **Tweak:-** Database migration `1.6.0` is idempotent — fresh installs and upgrades both land on the new schema; pre-1.6 rows keep working with `original_*` NULL and `mode=0`. = v1.5.18 (April 23, 2026) = – **New:-** Added Go Pro admin page showcasing Pro features with a Free vs Pro comparison and license activation UI, replacing the legacy Extensions page. – **Security:-** Implement idempotency key for wallet transfers to prevent duplicate submissions and TOCTOU race condition vulnerabilities. – **Tweak:-** Enhanced partial payment tooltip to provide a clearer breakdown of amounts debited from the wallet and paid via other gateways. – **Tweak:-** Enhance database schema and optimize wallet transaction queries for improved performance. – **Tweak:-** Improved CSV exporter for wallet transactions with better query handling. – **Tweak:-** Update Pro upgrade URLs with UTM parameters for better tracking. =v1.5.17 (March 12, 2026)= - **Fix:-** Remove space in limit parameter for wallet transactions query. - **Fix:-** Simplify wallet transactions query preparation by removing redundant parameter checks. =v1.5.16 (February 12, 2026)= - **Tweak:-** Enhance SQL query construction for wallet transactions with improved safety and readability. - **Tweak:-** Remove return type declarations for compatibility and enhance permission checks in content handling. - **Tweak:-** Update version retrieval for script and style assets. - **Tweak:-** Enhance partial payment validation in frontend. - **Tweak:-** Add checks for zero currency rates in multi-currency conversion methods - **Tweak:-** Database Lock to serialize requests for the same user. - **Tweak:-** Adjust wallet transfer logic to debit before crediting, ensuring proper transaction flow. =v1.5.15 (December 10, 2025)= - **New:-** User wallet dashboard design. - **Tweak:-** Replace thickbox with wc backbone modal. - **Fix:-** Removed moment js and used WordPress core momentjs Library. - **Added:-** WordPress 6.9 support. =v1.5.14 (October 08, 2025) = - **Fix:-** RTL CSS issue. =v1.5.13 (August 21, 2025) = - **Fix:-** PHP warning. =v1.5.12 (August 21, 2025) = - **New:-** Date range filter in wallet transaction page. - **New:-** Settings panel design. - **New:-** Now site admin can enable/disable wallet topup. - **Fix:-** Partial payment issue. - **Fix:-** Cashback display issue on cart and checkout page. =v1.5.11 ( May 08, 2025) = - **Fix:-** Text Domain loading issue. =v1.5.10 ( December 12, 2024) = - **Fix:-** Refund issue. =v1.5.9 ( November 26, 2024) = - **Fix:-** Plugin Localisation issue for WP 6.7. =v1.5.8 ( November 26, 2024) = - **New:-** User role wise cashback restriction. - **Fix:-** WooCommerce analytics and dashboard reports. - **Fix:-** Wallet amount display on cart and checkout block. =v1.5.7 ( September 02, 2024) = - **Fix:-** Broken wallet page link on user page. - **Fix:-** Security issues. - **Fix:-** Wallet top-up amount widget in admin panel. =v1.5.6 ( July 20, 2024) = - **Fix:-** Permalinks issues. - **Fix:-** Partial payment issues. = v1.5.5 ( July 11, 2024 ) = - **Fix:-** Security issues. - **Fix:-** Permalinks issues. = v1.5.4 ( May 10, 2024 ) = - **Fix:-** Multiple refund of partial payment amount when order cancelled. - **Fix:-** Rewrite rule issues for wallet endpoints. = v1.5.3 ( May 02, 2024 ) = - **Fix:-** Partial payment option not showing at old WooCommerce checkout page issue. = v1.5.2 ( May 02, 2024 ) = - **Added:-** Support for WooCommerce HPOS. - **Added:-** Support for WooCommerce block cart & checkout. - **Added:-** Partial payment option for WooCommerce block cart & checkout. - **New:-** Now customer can enter amount they want to redeem at cart & checkout page. - **Fix:-** Conflict with WooCommerce Square plugin. - **Fix:-** Partial payment amount not debited issue for WooCommerce block checkout. - **Fix:-** Coupon cashback issue for WooCommerce block checkout. = 1.5.1 - 2024-03-20 = * Added - Escaping functions for rendering html content. = 1.5.0 - 2024-03-09 = * Fix - Vulnerability: Cross Site Scripting (XSS) = 1.4.11 - 2024-03-01 = * Fix - Compatibility with PHP 8.1 * Fix - Missing Authorization to Authenticated (Subscriber+) User Email Export = 1.4.10 - 2023-11-23 = * New - Added WooCommerce Multilingual & Multicurrency with WPML plugin support. * Fix - Compatibility issue with Dokan 3.8 * Fix - PHP issues = 1.4.9 - 2023-08-17 = * New - Added sell your content action ( Using this action you can sell your site content using wallet balance). * New - Export user wallet balance ( Now site admin also export only user balance of the website in CSV file). * Fix - Compatibility issue with digits plugin. * Fix - Wallet transactions details table. * Add - Support for WordPress 6.3 and WooCommerce 8.0 = 1.4.8 - 2023-06-22 = * New - Redesign wallet admin panel. * New - Added support for WooCommerce block checkout. * New - Added support for FOX – Currency Switcher Professional for WooCommerce * Fix - PHP 8.2 issues. = 1.4.7 - 2023-04-05 = * Fix - Refund issue. * Fix - WooCommerce add to cart notice. * Added - WP 6.2 support. = 1.4.6 - 2023-01-19 = * Fix - Duplicate order issue and negative wallet balance. * Fix - Partial payment issue for draft orders. = 1.4.5 - 2022-12-24 = * Add - Hooks in referral action. * Fix - Transaction exporter. = 1.4.4 - 2022-11-14 = * Fix - Security issue on the function lock_unlock_terawallet. = 1.4.3 - 2022-11-11 = * Fix - Datatable ajax issue. = 1.4.2 - 2022-11-11 = * Fix - Mini wallet nav menu location. = 1.4.1 - 2022-11-11 = * Fix - Fix Cannot uncheck checkbox issue in plugin settings page. = 1.4.0 - 2022-11-4 = * Fix - Plugin CSRF issue ( Thanks Muhammad Daffa ). * Add - Compatibility with WP 6.1 = 1.3.24 - 2022-03-18 = * Fix - Wallet payment process. * Fix - Referral signup action. * Tweak - Wallet pages will be removed from account page if user is bolocked. * Add - REST API V3 [API Docs](https://github.com/malsubrata/woo-wallet/wiki/API-V3). = 1.3.23 - 2022-02-17 = * Fix - Compatibility with WooCommerce Subscription plugin. * Fix - Referral order amount * Fix - Cashback issue for guest user. * Add - Support for order created via rest API. = 1.3.22 - 2021-12-23 = * Fix - Plugin title translation issue. = 1.3.21 -2021-12-22 = * Fix - Exporter column header. * Fix - Incorrect wallet top-up this month widget. * Tweak - delete Transaction history without effecting User balance. * Fix - Cashback coupon for Guest User. * Fix - Referring signup bug. * Add - Compatibility with Dokan > 3.3. = 1.3.20 - 2021-11-26 = * Fix - Wallet top-up issue. * Fix - Extension page CSS issue. = 1.3.19 - 2021-07-02 = * Add - Now admin can setup low wallet balance notification email. * Add - Admin can export wallet transactions. * Add - Admin can lock / unlock user wallet. = 1.3.18 - 2021-3-18 = * Add - Now admin can see which user make credit / debit transaction. * Fix - Cashback recalculation issue. * Fix - Debit Round up issue for bulk action. * Fix - Removed order again button from wallet rechargeable order details page. * Tweak - Now referral bonus will be credited after user purchase something from the store. * Dev - Added new filter `woo_wallet_calculate_cashback_on_total` to set cashback on order total or subtotal. = 1.3.17 - 2020-12-29 = * Fix - Fix URL while searching users in balance details page. * Fix - Redirect issue in adjust balance page. * Fix - Decimal point issue in bulk credit, debit wallet balance. * Fix - WooCommerce Analytics report. = 1.3.16 - 2020-08-26 = * Add - New wallet recharge state in dashboard widget. * Tweak - Now cashback will be calculated on order total instead of order subtotal. * Tweak - Excluded wallet rechargable orders from WooCommerce analytics page. * Tweak - Database query result performance optimization. * Fix - Translation issue and wp list table display issue for mobile. * Fix - Redirection issue in wallet dashboard for wallet shortcode. * Dev - Added hooks into WooCommerce product review action.. = 1.3.15 - 2020-04-22 = * Add - AJAX datatable on wallet transaction details page. * Add - Custom field in WP nav menu setting to display wallet icon and amount instead of menu title. * Notice - Mini wallet display location settings will be removed on next update use WooCommerce endpoint menu item instead. = 1.3.14 - 2020-03-07 = * Add - Bulk credit debit option for admin #46. * Fix - Current link attributes in wallet details page #45. = 1.3.13 - 2020-02-08 = * Fix - Wallet top-up issue. = 1.3.12 - 2020-02-07 = * Add - Mini wallet RTL support. * Add - Support for WooCommerce subscription payment method change. * Add - Copy to clipboard function in referral URL. * Fix - Cashback recalculation function. * Fix - Loading issue in wallet transfer searchbox. * Tweak - `is_full_payment_through_wallet` function. * Dev - Added `woo_wallet_cashback_rules` filter. * Dev - Added `created_by` database column to `woo_wallet_transactions` table. = 1.3.11 - 2019-11-13 = * Add - Mini wallet shortcode. * Fix - Cashback amount for product cart rule. * Fix - Wallet endpoint issue for shortcode. = 1.3.10 - 2019-09-11 = * Add - Submit button at Wallet Top-Up widget. * Fix - Cashback calculation issue for product category. * Fix - Partial payment template. * Fix - WooCommerce endpoint save issue. * Tweak - Alter database column amount and balance. = 1.3.9 - 2019-06-18 = * New - Now admin can configure cashback for variable products. = 1.3.8 - 2019-06-07 = * Add - Role wise filter in wallet transaction page. * Add - Hooks and Filters. = 1.3.7 - 2019-05-05 = * Add - Minimum transfer limit. * Fix - Dokan withdrawal issue. = 1.3.6 - 2019-04-19 = * Updated - Plugin name change. = 1.3.5 - 2019-04-18 = * Add - Support for WC version 3.6. * Add - Referral action. * Fix - `wc_format_decimal` function use in partial payment. * Remove - Deprecated WC functions. = 1.3.4 - 2019-03-23 = * Added - Compatibility with WooCommerce Germanized plugin. * Add - Empty datatable info translation string * Add - Fee amount in woowallet cart total function. * Fix - Wallet transfer menu issue. = 1.3.3 - 2019-03-04 = * Fix - Plugin dependencies file. = 1.3.2 - 2019-02-27 = * Add - Now cart items will be restored after successful wallet top-up. * Fix - Partial payment issues. * Fix - Cashback calculation for variable product. * Fix - Transaction date issue. * Fix - Order by balance column in WooWallet balance details table. * Tweak - Cashback logic. * Tweak - Wallet funds transfer description. = 1.3.1 - 2019-02-04 = * Fix - Cashback issue. = 1.3.0 - 2019-02-02 = * Add - Now cashback will be credited if admin create order for customer. * Add - Added wallet top-up widget. * Fix - Disable partial payment if user balance is zero. * Fix - Multiple ajax call for partial payment. * Fix - Delete transaction records upon deletion of user. * Tweak - Daily visit. = 1.2.9 - 2019-01-08 = * Add - Support for WooCommerce Multivendor Marketplace by WC Lovers. * Fix - Daily visit credit with transient. * Add - Support for multiple subscriptions. = 1.2.8 - 2018-12-19 = * Fix - Datatable responsive issue. * Add - WP 5.0 compatibility. = 1.2.7 - 2018-11-08 = * Fix - Cache issue for WP multisite. * Fix - Translation issue. * Fix - Partial payment amount calculation when cash-back coupon applied. * Fix - User details page issue. * Fix - Role checking issue. * Fix - Email parameters. = 1.2.6 - 2018-10-09 = * Add - Admin now can set rechargeable product image via settings page. * Add - Partial payment amount refund option. * Add - Wallet icon at WooCommerce my-account menu. * Add - Exclude role option for daily visit action. * Fix - WPCS updates and code cleanup for easier readability #20. * Fix - Order total amount for partial payment. = 1.2.5 - 2018-09-27 = * Fix - Resolved performance issue. * Add - Wallet REST API with WooCommerce endpoint. * Dev - Removed WOO_WALLET_ICON constant. = 1.2.4 - 2018-09-24 = * Fix - Fatal error on WordPress Menu page. * Fix - Hide partial payment option for guest user. * Fix - Remaining balance display at email template. = 1.2.3 -2018-09-24 = * Fix- Partial payment. * Fix - Dokan withdrawal. * Add - Dokan auto withdrawal. * Add - Wallet icon file. * Add - Wallet actions (Admin can now set action for wallet credit). = 1.2.2 - 2018-08-17 = * Fix - Partial payment issue. = 1.2.1 -2018-08-15 = * Add - Screen option at transaction details page. * Tweak - Partial payment using WooCommerce fee. = 1.2.0 - 2018-07-26 = * Add - Extension page. * Fix - Refund using default WooCommerce refund function. * Dev - details variable in email. * Dev - Added filter `woo_wallet_rest_check_permissions`, `woo_wallet_process_cashback_status`, `woo_wallet_wc_price_args`. = 1.1.10 - 2018-06-28 = * Add - Wallet transfer charge. * Dev - Created class instance. = 1.1.9 - 2018-05-30 = * Fix - Cashback calculation. = 1.1.8 -2018 -05-28 = * Add - Settings option to choose order status for processing cashback. * Add - Filters in my wallet page and wallet icon constant. * Add - Filter `woo_wallet_order_refunded`. * Add - Support for WooCommerce 3.4. * Add - Support for cashback setup from dokan dashboard. * Fix - Payment gateway available check. * Fix - Order cancellation hook. * Fix - Cashback calculation added support for third party WooCommerce add-on. = 1.1.7 - 2018-05-03 = * Add - Filter `woo_wallet_restrict_other_from_add_to_cart`, `woo_wallet_disable_partial_payment`. * Add - Wallet endpoint to WooCommerce endpoints menu option. * Add - Wallet balance column to user table. * Add - Decimal support for number field. * Tweak - Wallet cashback logic. * Dev - Added `deleted` column to transaction table. * Fix - Wallet payment method. * Fix - number format. * Fix - Variable product cashback calculation. = 1.1.6 - 2018-04-11 = * Feature - REST API. * Feature - Auto transfer commission for dokan marketplace. * Add - DataTable language support. * Fix - Is array checking for transient option. * Fix - Date format for different language support. * Fix - Use of get_order_number instead of get_id to display order number. = 1.1.5 - 2018-03-26 = * Feature - Display cashback amount in admin order page. * Fix - User search in admin balance details page. * Fix - Typos in localization strings #4 * Fix - Partial payment and cashback issue upon order cancellation. * Updated - Language file. = 1.1.4 - 2018-03-19 = * Fix - Typo. * Fix - non-sef endpoint url generation #2 * Tweak - AJAX user search dropdown in transfer fund page. * Tweak - Database query improvement. = 1.1.3 - 2018-03-05 = * Feature - Improved user search drop-down in transfer wallet amount page. * Fix - Payment gateway charge percent issue. * Fix - Cashback rule for non logged in user. * Fix - Coupon cashback rule for non logged in user. * Tweak - Improved look and feel of admin settings page. * Dev - Added filter `woo_wallet_is_enable_transfer`, `woo_wallet_payment_is_available` * Updated - Language file. = 1.1.2 - 2018-02-26 = * Added - RTL support. * Added - Wallet amount transfer option. * Fix - Security issue. * Dev - Added filter `woo_wallet_current_balance`, `woo_wallet_redirect_to_checkout_after_added_amount`, `woo_wallet_hide_rechargeable_product`. * Updated - Language file. = 1.1.1 - 2018-02-21 = * Added - Minified CSS & JS files. * Added - Min Max wallet top up amount restriction. * Added - Shortcode `woo-wallet`. * Updated - Missing translation strings. * Dev - Added filter `woo_wallet_amount`, `woo_wallet_coupon_cashback_amount`, `woo_wallet_transactions_count`. * Updated - Language file. = 1.1.0 - 2018-02-15 = * Added - Support for WordPress Multisite Network. * Tweak - Apply coupon as cashback logic. * Dev - Added filter `woo_wallet_cashback_notice_text` to modify cashback notice. * Updated - Language file. = 1.0.9 - 2018-02-10 = * Added - Product category wise cashback. * Added - Minimum cart amount setting to apply cart wise cashback. * Tweak - Hide mini wallet menu item if user not logged in. * Tweak - Display cashback instead of coupon if coupon is applicable as cashback. * Updated - Language file. = 1.0.8 -2018-02-08 = * Added - Now admin can set wallet endpoints page url. * Added - Currency column to database table. * Dev - Added `woo_wallet_credit_purchase_amount` filter for modify credit purchase amount. * Updated - Language file. = 1.0.7 - 2018-01-31 = * Added - Setting for where to display mini wallet in menu. * Added - Max cash-back amount option for administrator user. * Added - Debit option for administrator user. * Updated - Improve wallet menu item. * Updated - Language file. = 1.0.6 - 2018-01-24 = * Added - Now admin can convert WooCommerce coupon to cashback. * Added - Display cashback amount on WooCommerce products. * Added - Remaining balance display in email template. * Added - Dokan Multivendor Marketplace support. * Updated - Improve wallet menu item. * Updated - Language file. = 1.0.5 - 2018-01-11 = * Added - Auto deduct wallet balance for partial payment option. * Added - Tax options for rechargeable product. * Added - Search option in users wallet details page. * Added - Screen option in users wallet details page. * Added - Template file for mini wallet and partial payment. * Updated - Language file. = 1.0.4 - 2018-01-05 = * Added - Wallet nav menu to wordpress primary menu. * Added - Plugin settings link in WP plugin list page. * Updated - Language file. = 1.0.3 - 2017-12-27 = * Added - Support for WooCommerce Subscriptions plugin. * Added - Support for WC Marketplace plugin. * Added - Current wallet balance display in checkout page. * Fixed - User balance display in admin back-end. * Updated - Language file. = 1.0.2 - 2017-12-14 = * Fix - Admin report = 1.0.1 - 2017-12-18 = * Added - New wallet user interface. * Added - Un-install file. * Updated - Language file. = 1.0.0 - 2017-12-12 = * Initial release