Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Multiple free products added to cart › Reply To: Multiple free products added to cart
October 31, 2017 at 11:18 pm
#2088
Soft79
Keymaster
Default behaviour for BOGO + multiplication is like that. You can use a filter to change the amount:
add_filter( 'wjecf_bogo_product_amount_for_coupon', 'wjecf_bogo_product_amount_for_coupon', 10, 2 );
function wjecf_bogo_product_amount_for_coupon( $amount, $coupon )
{
if ( $coupon->code == 'COUPON_CODE_HERE' ) { $amount = intval( $amount / 2 ); }
return $amount;
}