diff --git a/experimental/gpecf-set-discount-amount-via-gpep.php b/experimental/gpecf-set-discount-amount-via-gpep.php index 0a47798fe..d168b9176 100644 --- a/experimental/gpecf-set-discount-amount-via-gpep.php +++ b/experimental/gpecf-set-discount-amount-via-gpep.php @@ -1,39 +1,6 @@ id == 3 ) { - // Update "6" to the field that will be populated by Easy Passthrough with the discount amount. - $field->discountAmount = gw_get_gpep_value( $form['id'], 6 ); - } - } - - return $form; -} - -function gw_get_gpep_value( $form_id, $field_id ) { - - if ( GFForms::get_page() && rgget( 'lid' ) ) { - $entry = GFAPI::get_entry( rgget( 'lid' ) ); - $field_values = $entry; - } else { - $field_values = gp_easy_passthrough()->get_field_values( $form_id ); - } - - return rgar( $field_values, $field_id ); -}