Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Buy 12, get 12 Free
Is there a way to create an auto coupon that offers; Buy 12 of Product Variation 8oz and receive 12 of Product B Variation 1oz Free?
I see how to create the coupon for Buy 12 and get 1 Free. How do I get more than 1 free?
Enable multiplication of free products and use this snippet:
‘ add_filter( ‘wjecf_free_product_amount_for_coupon’, ‘wjecf_free_product_amount_for_coupon’, 10, 2 ); function wjecf_free_product_amount_for_coupon( $amount, $coupon ) { if ( $coupon->code == ‘COUPON_CODE‘ && $amount >= 1 ) { $amount = 12 * $amount; } return $amount; } ‘