Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Add more than 1 free product with a coupon › Reply To: Add more than 1 free product with a coupon
November 19, 2020 at 5:11 pm #16813
Jane Christensen
Participant
I put it in my child theme but it didn’t work, it is still showing just 1 at checkout :(
add_filter( ‘wjecf_free_product_amount_for_coupon’, function ( $coupon_qty, $coupon ) {
if ( strcasecmp( $coupon->get_code(), ‘clean’ ) === 0 ) {
$coupon_qty = 6;
}
return $coupon_qty;
} );