Skip to content

Commit 156046d

Browse files
committed
gw-coupons-exclude-products.php: Added functionality to exclude discounts on options of a product field.
1 parent 92b8cec commit 156046d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

gravity-forms/gw-coupons-exclude-products.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -238,17 +238,17 @@ function is_applicable_form( $form ) {
238238
// Single form
239239

240240
new GW_Coupons_Exclude_Products( array(
241-
'form_id' => 123,
242-
'exclude_fields_without_options' => array( 6 ),
243-
'skip_for_100_percent' => false,
241+
'form_id' => 123,
242+
'exclude_fields' => array( 4, 5 ),
243+
'skip_for_100_percent' => false,
244244
) );
245245

246246
// Single form (exclude fields without options)
247247

248248
new GW_Coupons_Exclude_Products( array(
249-
'form_id' => 123,
250-
'exclude_fields' => array( 4, 5 ),
251-
'skip_for_100_percent' => false,
249+
'form_id' => 123,
250+
'exclude_fields_without_options' => array( 6 ),
251+
'skip_for_100_percent' => false,
252252
) );
253253

254254
// Multiple forms

0 commit comments

Comments
 (0)