Skip to content

Instantly share code, notes, and snippets.

@raphaelkross
Created June 5, 2016 06:09
Show Gist options
  • Save raphaelkross/fd9c76e24fbcc3b199006bf3c2173cab to your computer and use it in GitHub Desktop.
Save raphaelkross/fd9c76e24fbcc3b199006bf3c2173cab to your computer and use it in GitHub Desktop.
Change threshold WooCommerce Variations
function custom_wc_ajax_variation_threshold( $qty, $product ) {
return 200;
}
add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 10, 2 );
@raphaelkross
Copy link
Author

Add this to your theme's functions.php file or to your child theme's functions.php to solve the data-product_variations returning false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment