If you find that Better Variations is not working correctly when you have more than 30 variations for your product, you need to increase the WooCommerce variation threshold.
Please note that the code below increases the limit to 50 – but if you have more than 50 variations, you’ll need to change the value below accordingly.
You can add the following code as a snippet. Find out how best to add code snippets to your site here.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function bv_wc_ajax_variation_threshold( $qty, $product ) { | |
return 50; | |
} | |
add_filter( 'woocommerce_ajax_variation_threshold', 'bv_wc_ajax_variation_threshold', 10, 2 ); |