Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › spend over $300 get 3 free ItemX
Hi, We have heaps of ItemX in stock to give away for high purchases. So how do I setup, spend over $300 and you get 3 free ItemX products automatically added to cart. I know how to setup to auto add 1 x free ItemX but I want to add 2 more for free.
Set minimum spend to 300 and use this snippet (replace COUPON_CODE with the actual coupon code, case sensitive!):
add_filter( 'wjecf_free_product_amount_for_coupon', function ( $amount, $coupon ) { if ( $coupon->code == 'COUPON_CODE' && $amount >= 1 ) { $amount = 3 * $amount; } return $amount; }, 10, 2 );