From 92bc95475aac8b621ab1963b94968d863b405b95 Mon Sep 17 00:00:00 2001 From: Saif Sultan Date: Mon, 13 Jan 2025 16:25:18 +0530 Subject: [PATCH] `gpcp-product-pricing-labels.js`: Fixed an issue with decimal comma prices. --- gp-conditional-pricing/gpcp-product-pricing-labels.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gp-conditional-pricing/gpcp-product-pricing-labels.js b/gp-conditional-pricing/gpcp-product-pricing-labels.js index 0096d6d83..91e43f4ea 100644 --- a/gp-conditional-pricing/gpcp-product-pricing-labels.js +++ b/gp-conditional-pricing/gpcp-product-pricing-labels.js @@ -8,7 +8,7 @@ function update_price_labels() { $( 'label[data-gpcp-template], option[data-gpcp-template]' ).each( function() { var $priceElem = $( this ).is( 'option' ) ? $( this ) : $( this ).siblings( 'input' ); - var price = gformFormatMoney( $priceElem.val().split( '|' )[1] ); + var price = gformFormatMoney( $priceElem.val().split( '|' )[1], true ); var template = $( this ).attr( 'data-gpcp-template' ); $( this ).html( template.replace( '{price}', price ) ); } );