You can write a filter function in theme or plugin like this
add_filter( 'woocommerce_ajax_variation_threshold', array(__CLASS__, 'c4d_woocommerce_ajax_variation_threshold'));
function c4d_woocommerce_ajax_variation_threshold() {
return 100;
}
So when you update woocommerce plugin, your code will not be revert.
But we should try other way to check with ajax to get better performance
-
This reply was modified 7 years, 1 month ago by coffee4dev.