From 578420db572a8a211bd17a7756ceb0be9d381a83 Mon Sep 17 00:00:00 2001 From: Saif Sultan Date: Mon, 28 Apr 2025 22:23:22 +0530 Subject: [PATCH] `gpcp-show-original-price.js`: Fixed an issue with snippet not working. --- gp-conditional-pricing/gpcp-show-original-price.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gp-conditional-pricing/gpcp-show-original-price.js b/gp-conditional-pricing/gpcp-show-original-price.js index 99b721ffa..fe1361096 100644 --- a/gp-conditional-pricing/gpcp-show-original-price.js +++ b/gp-conditional-pricing/gpcp-show-original-price.js @@ -7,14 +7,14 @@ * Download the plugin here: https://gravitywiz.com/gravity-forms-code-chest/ * 2. Copy and paste the snippet into the editor of the Custom Javascript for Gravity Forms plugin. */ - gform.addAction( 'gpcp_after_update_pricing', function( productId, GWConditionalPricing ) { +gform.addAction( 'gpcp_after_update_pricing', function( triggerFieldId, GWConditionalPricing, productId ) { var basePrice = GWConditionalPricing.getBasePrice( productId ); if ( ! basePrice ) { return; } - var $input = $( '#input_{0}_{1}'.gformFormat( GWConditionalPricing._formId, productId ) ); + var $input = $( '#field_{0}_{1}'.gformFormat( GWConditionalPricing._formId, productId ) ); if ( ! $input.length ) { return; }