Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions gp-ecommerce-fields/gpecf-deduct-deposit.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@
self.init = function() {
gform.addFilter( 'gform_product_total', function( total, formId ) {
if ( formId == self.formId ) {
// If deposit is disabled or hidden, return total as it is.
if ( $( 'input[name="input_' + self.depositFieldId + '.2"]' ).is( ':disabled' ) ) {
return total;
}

Check warning on line 79 in gp-ecommerce-fields/gpecf-deduct-deposit.php

View workflow job for this annotation

GitHub Actions / PHPCS (Files Changed)

Found precision alignment of 1 spaces.
var depositPrice = $( 'input[name="input_' + self.depositFieldId + '.2"]' ).val();
var depositQuantity = $( 'input[name="input_' + self.depositFieldId + '.3"]' ).val();

Expand Down
Loading