# Changelog ## 1.2.27 - Fixed issue where frontend tax calculations did not match backend tax calculations under certain conditions. ## 1.2.26 - Fixed styling issue when dispaying {order_summary} markup on the frontend. - Improved support for the {order_summary} and Theme Framework; font sizes will now be honored. - Removed HTML escaping from product field labels to match core Gravity Forms behavior. ## 1.2.25 - Updated remaining references to `String.prototype.format()` to use `String.prototype.gformFormat()` as the former is removed in Gravity Forms 2.8. ## 1.2.24 - Fixed potential PHP error when using WP-CLI. ## 1.2.23 - Fixed issue with some submissions being marked as fraudulent by Stripe due to tax calculations being rounded with a precision of `2` rather than `3`. - Fixed an issue where the subtotal could calculate incorrectly when using decimal comma currencies (such as Euro) and using decimal comma formatting with quantities. - Fixed a potential fatal error if using the `:value` modifier with the `{order_summary}` merge tag. ## 1.2.22 - Fixed regression with Tax and Discount calculations after submission. ## 1.2.21 - Added support for excluding shipping from Tax fields via the [gpecf_include_shipping_in_tax](https://gravitywiz.com/documentation/gpecf_include_shipping_in_tax/) filter. ## 1.2.20 - Fixed PHP 8 warnings. ## 1.2.19 - Updated references to `String.prototype.format()` to use `String.prototype.gformFormat()` as the former will be removed in Gravity Forms 2.8. ## 1.2.18 - Added new `gpecf_field_total` filter hook (PHP & JS) to allow modifying the calculation of the field total. ## 1.2.17 - Fixed issue where JavaScript errors could be thrown on reload of AJAX-enabled forms and cause miscalculations. ## 1.2.16 - Fixed an issue with GF Coupon computing incorrect total value. ## 1.2.15 - Fixed potential JavaScript error on form render that could cause issues with conditional logic in some situations. ## 1.2.14 - Added German translations. Credit: Florian Rinnhofer of sportunion.at ## 1.2.13 - Fixed issue with conditional logic not always working on initial load if the conditional logic was dependent on formula fields containing eCommerce Fields merge tags such as `{subtotal}`. ## 1.2.12 - Fixed issue where editing Calculated products on the Entry Details screen using the `gw-edit-product-and-payment-details.php` snippet along with GP eCommerce Fields would result in the product quantity being removed. ## 1.2.11 - Fixed regression with Discount fields not working when using Gravity Forms PayPal Checkout 2.4 and newer. ## 1.2.10 - Fixed an issue where flat, product-specific discounts were not capped by the total of the product fields to which they applied. - Fixed compatibility issue with Discount fields not working with Gravity Forms PayPal Checkout 2.4 and newer. ## 1.2.9 - Removed unneeded filter on `gform_ppcp_discount_total` for the PayPal Checkout add-on if using PayPal Checkout 2.2.1 or newer. ## 1.2.8 - Fixed issue where get calculations were not updated when navigating to previous pages. - Added "Update URI" to plugin header to improve security. ## 1.2.7 - Fixed issue where GP eCommerce Fields would not always exclude shipping from discounts/coupons when viewing the form. ## 1.2.6 - Fixed JavaScript error when using GP eCommerce Fields with Gravity Forms 2.5.14.1 or newer and the Coupons Add-On. ## 1.2.5 - Improved performance of formula calculations. ## 1.2.4 - Fixed a potential issue where GPECF may replace GPPA's LMTs before they are parsed, leaving their `@` in the output. ## 1.2.3 - Fixed a potential PHP warning if an entry wasn't available while reprocessing calculations. ## 1.2.2 - Improved performance on complex forms with a large amount of calculations and/or conditional logic. ## 1.2.1 - Improved compatibility with PayPal Checkout Add-on when using the Discount field. - Improved support for Gravity Forms 2.5. (#21) - Updated minimum required version of Gravity Perks to 2.2.3. - Fixed issue where if a Product field ID and coupon code were the same (i.e. 50), GPECF would display the product as a coupon. - Fixed possible order-of-events issue where GPECF would cause percentage-based discounts to be applied based on an already adjusted total. ## 1.2 - Improved support for Gravity Forms 2.5. ## 1.1 - Added full support for Gravity Forms 2.5! - Improved field settings UI for GF 2.5. - Updated minimum requirements to Gravity Perks 2.2. - Fixed order-of-events issue which caused percentage based coupons to include themselves in the calculated discount in GF 2.5. - Fixed issue where numeric coupon codes could be confused with products resulting in products being listed as coupons in the order summary in GF 2.5. ## 1.0.47 - Fixed potential scenario where GP eCommerce Fields could get stuck in an infinite loop when calculations and GP Conditional Pricing are used together. ## 1.0.46 - Fixed issue where WC GF Product Add-ons total was updated *before* eCommerce fields were included. ## 1.0.45 - Fixed issue where coupons from the Coupons Add-on would be re-added and cause incorrect calculations. ## 1.0.44 - Fixed a potential issue where GPECF may throw a runtime JS error. ## 1.0.43 - Fixed markup and styling of Order header in {all_fields} merge tag. ## 1.0.42 - Fixed an issue where GPECF may generate a PHP warning if product price is not numeric. - Updated docblock for "gpecf_order_labels" filter to provide additional details. ## 1.0.41 - Fixed dependency on jQuery.migrate that has been removed as of WordPress 5.5. - Fixed issue with Gravity Forms 2.5 where markup was being rendered in the field label. - Added $modifiers as an 8th parameter to the [gpecf_order_sumary_markup](https://gravitywiz.com/documentation/gpecf_order_sumary_markup/) filter. - Added acceptance tests. (#5) ## 1.0.40 - Fixed notices generated when updating an entry (via the GF entry update screen) with a calculation-enabled field containing a GPECF merge tag. ## 1.0.39 - Added support for showing formatted value when fetched via the GFAddon::get_value_entry_detail() method. ## 1.0.38 - Added [gpecf_order_sumary_markup](https://gravitywiz.com/documentation/gpecf_order_sumary_markup/) to allow modifying the order summary markup. ## 1.0.37 - Fixed invalid value when using the {discounts} merge tag in a Calculated Product field. ## 1.0.36 - Fixed issue where Tax fields that excluded products could result in unexpected values when product fields contained negative values. ## 1.0.35 - Fixed notices generated when no quantity was specified for a Calculated Product field. ## 1.0.34 - Added acceptance tests. - Fixed recursion with Calculated Product field containing {subtotal} merge tag. - Fixed issue where Calculated Product field containing {subtotal} merge tag could result in infinite recursion. ## 1.0.33 - Fixed performance issue on AJAX-enabled forms when many Calculated Products were present. ## 1.0.32 - Added compatibility fix for upcoming GF Coupons 2.9.3. ## 1.0.31 - Fixed fatal error that could occur when Gravity Perks was active but Gravity Forms was not. - Updated to use GP_Plugin class. ## 1.0.30 - Fixed issue with versions of GF prior to 2.4.15 (which is unreleased at the time of this commit). - Fixed issue where Calculated Number fields containing only GPECF merge tags (e.g. {subtotal}) were not recalculated when Calculated Product fields' prices changed. ## 1.0.29 - Fixed missing