Hi Panos,
I’m sorry. What is not possible is to use multiple different modes. Two different date ranges are actually possible. Please try this:
– Enable “Limits > Per product tag”
– Enable “Formula > Limits by formula”
– Add this to formula:
[alg_wc_mppu term_id="574" limit="5"]
[alg_wc_mppu term_id="600" limit="1"]
– Add this to your functions.php
add_filter( 'alg_wc_mppu_date_to_check', function ( $date_to_check, $date_range, $current_time, $product_or_term_id, $current_user_id, $is_product ) {
if ( $is_product ) {
return $date_to_check;
}
if ( in_array( $product_or_term_id, array( 574 ) ) ) {
$date_to_check = strtotime( date( 'Y-m-01' ), $current_time );
} elseif ( in_array( $product_or_term_id, array( 600 ) ) ) {
$date_to_check = 0;
}
return $date_to_check;
}, 10, 6 );
Let me know if it helps 😉