Skip to content

Commit

Permalink
gpcp-product-pricing-labels.js: Fixed an issue with decimal comma p…
Browse files Browse the repository at this point in the history
…rices.
  • Loading branch information
saifsultanc authored Jan 14, 2025
1 parent 3e08197 commit ed8d79c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gp-conditional-pricing/gpcp-product-pricing-labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );
} );
Expand Down

0 comments on commit ed8d79c

Please sign in to comment.