Skip to content

Commit 3110a69

Browse files
authored
gpcp-show-original-price.js: Fixed an issue with snippet not working.
1 parent 1ae5515 commit 3110a69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gp-conditional-pricing/gpcp-show-original-price.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
* Download the plugin here: https://gravitywiz.com/gravity-forms-code-chest/
88
* 2. Copy and paste the snippet into the editor of the Custom Javascript for Gravity Forms plugin.
99
*/
10-
gform.addAction( 'gpcp_after_update_pricing', function( productId, GWConditionalPricing ) {
10+
gform.addAction( 'gpcp_after_update_pricing', function( triggerFieldId, GWConditionalPricing, productId ) {
1111

1212
var basePrice = GWConditionalPricing.getBasePrice( productId );
1313
if ( ! basePrice ) {
1414
return;
1515
}
1616

17-
var $input = $( '#input_{0}_{1}'.gformFormat( GWConditionalPricing._formId, productId ) );
17+
var $input = $( '#field_{0}_{1}'.gformFormat( GWConditionalPricing._formId, productId ) );
1818
if ( ! $input.length ) {
1919
return;
2020
}

0 commit comments

Comments
 (0)