diff --git a/gp-ecommerce-fields/gpecf-set-discount-amount-by-field-value.php b/gp-ecommerce-fields/gpecf-set-discount-amount-by-field-value.php index 8cc709162..24fdb6dc5 100644 --- a/gp-ecommerce-fields/gpecf-set-discount-amount-by-field-value.php +++ b/gp-ecommerce-fields/gpecf-set-discount-amount-by-field-value.php @@ -105,6 +105,9 @@ public function output_script() { }; self.setDiscountAmount = function( value ) { + // Clean the value to remove the thousand separator (could be , or . depending on currency settings). + value = gformCleanNumber( value, '', '', window.gf_global.gf_currency_config.decimal_separator ); + if ( value.indexOf( '|' ) !== -1 ) { value = value.split( '|' )[0]; }