Hi Giacomo,
This is possible, however, you would need to add a small PHP snippet to your (child) theme’s functions.php file. For example, to set custom date range (lifetime
) for product ID 100
:
add_filter( 'alg_wc_mppu_date_range', 'my_custom_alg_wc_mppu_date_range', 10, 3 );
function my_custom_alg_wc_mppu_date_range( $date_range, $product_or_term_id, $is_product ) {
// possible date range values are: 'lifetime', 'this_hour', 'this_day', 'this_week', 'this_month', 'this_year', 'last_hour', 'last_24_hours', 'last_7_days', 'last_30_days', 'last_365_days', 'custom'
return ( $is_product && 100 == $product_or_term_id ? 'lifetime' : $date_range );
}
I hope this helps. Please let me know if you have any questions.