Skip to content

Commit ed8d79c

Browse files
authored
gpcp-product-pricing-labels.js: Fixed an issue with decimal comma prices.
1 parent 3e08197 commit ed8d79c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gp-conditional-pricing/gpcp-product-pricing-labels.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
function update_price_labels() {
99
$( 'label[data-gpcp-template], option[data-gpcp-template]' ).each( function() {
1010
var $priceElem = $( this ).is( 'option' ) ? $( this ) : $( this ).siblings( 'input' );
11-
var price = gformFormatMoney( $priceElem.val().split( '|' )[1] );
11+
var price = gformFormatMoney( $priceElem.val().split( '|' )[1], true );
1212
var template = $( this ).attr( 'data-gpcp-template' );
1313
$( this ).html( template.replace( '{price}', price ) );
1414
} );

0 commit comments

Comments
 (0)