Repository Forums Support WooCommerce Extended Coupon Features PRO Auto apply coupon with 0% discount

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #20166
    Sony Benadel


    I need to make a coupon that applies automatically and has 0 percent discount. Is this possible?

    This is because I need to apply different percentage discounts to different products using only one coupon, and to achieve this, I created discount rules with the Woo Discount Rules Plugin.

    The reason why I need this to be done with a coupon is because we want to avoid people applying coupons to this discount.


    Add this snippet to your child theme’s functions.php:

    add_filter( 'wjecf_coupon_has_a_value', function( $has_a_value, $coupon ) { return true; }, 10, 2 );
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.