In v3.2.8, BOGO coupon seems to not work due to an undefined variable on line 612 in /woocommerce-auto-added-coupons-pro/pro/plugins/WJECF_Pro_Free_Products/WJECF_Pro_Free_Products.php
the variable $quantity should be $qty.
Orignal code :
//Merge bogos with the free_product_ids array
foreach ( $bogo_product_ids as $product_id => $qty ) {
if ( isset( $free_product_ids[ $product_id ] ) ) {
$free_products[ $product_id ][‘quantity’] += $quantity;
} else {
$free_products[ $product_id ] = [
‘quantity’ => $quantity,
‘variation’ => []
];
}
}
Fixed code :
//Merge bogos with the free_product_ids array
foreach ( $bogo_product_ids as $product_id => $qty ) {
if ( isset( $free_product_ids[ $product_id ] ) ) {
$free_products[ $product_id ][‘quantity’] += $qty;
} else {
$free_products[ $product_id ] = [
‘quantity’ => $qty,
‘variation’ => []
];
}
}