Created
June 5, 2016 06:09
-
-
Save raphaelkross/fd9c76e24fbcc3b199006bf3c2173cab to your computer and use it in GitHub Desktop.
Change threshold WooCommerce Variations
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 custom_wc_ajax_variation_threshold( $qty, $product ) { | |
return 200; | |
} | |
add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.