So I\'m currently working on a Woocommerce store that has lots of variations.
What I\'m basically looking for is for the next variation to refresh based on what was
It's default function for not many variations. For many variations you can do it with function
// Woo Commerce – Make Variations only appear when available
function custom_wc_ajax_variation_threshold( $qty, $product ) {
return 500;
}
add_filter( ‘woocommerce_ajax_variation_threshold’, ‘custom_wc_ajax_variation_threshold’, 10, 2 );