Hi Doug,
That’s possible, however, you will need to add a small PHP snippet to your site. If that’s good enough, first you need to set “Date range” option (in “WooCommerce > Settings > Maximum Products per User > General”) to “Last 365 days” as you would normally do, and then add this snippet to your (child) theme’s functions.php file:
if ( ! function_exists( 'my_alg_wc_mppu_date_to_check' ) ) {
function my_alg_wc_mppu_date_to_check( $date_to_check, $date_range, $current_time, $product_or_term_id, $current_user_id, $is_product ) {
// TODO: You need to add your term "timeframe exceptions" here; in `term ID => days` format.
$terms = array(
123 => 365 * 3,
124 => 365 * 4,
);
return ( ! $is_product && isset( $terms[ $product_or_term_id ] ) ? ( $current_time - $terms[ $product_or_term_id ] * DAY_IN_SECONDS ) : $date_to_check );
}
add_filter( 'alg_wc_mppu_date_to_check', 'my_alg_wc_mppu_date_to_check', 10, 6 );
}
* You only need to change the code in the snippet where it says “TODO: You need to add your term …”.
So in this example term with ID 123
will have its own timeframe of 365 * 3
days (i.e. 3 years), and term 124
will have 365 * 4
days (i.e. 4 years).
Hope that helps. Please give it a try and let me know what you think.