• Hi there, your plugin will not trigger auto coupons if the coupon discount is $0 or 0%, as determined by coupon_has_a_value.

    Could you add an option to the settings menu to allow auto-triggering of the coupon in this scenario? I happen to use coupon codes to trigger more advanced deals using another plugin (which lets you activate deals with existing coupon codes).

    Thanks.

    • This topic was modified 3 years, 9 months ago by luboslives. Reason: spelling
Viewing 1 replies (of 1 total)
  • Plugin Author Soft79

    (@josk79)

    You can use the filter wjecf_coupon_has_a_value for that, like this:

    add_filter( 'wjecf_coupon_has_a_value', function( $has_a_value, $coupon ) {
      if ( ...... ) {
        $has_a_value = true;
      }
      return $has_a_value;
    }, 10, 2 );

    replace …… with an expression.

Viewing 1 replies (of 1 total)
  • The topic ‘Request: Option to allow auto coupons with discounts of 0’ is closed to new replies.