1. Home
  2. Knowledge Base
  3. Better Variations
  4. Troubleshooting
  5. Not working for more than 30 variations
  1. Home
  2. Knowledge Base
  3. Better Variations
  4. Not working for more than 30 variations

Not working for more than 30 variations

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.

function bv_wc_ajax_variation_threshold( $qty, $product ) {
return 50;
}
add_filter( 'woocommerce_ajax_variation_threshold', 'bv_wc_ajax_variation_threshold', 10, 2 );

Was this article helpful?

Related Articles