Home › Forums › WoodMart support forum › maximum number of variations › Reply To: maximum number of variations
January 16, 2021 at 1:03 pm
#258983
oguz187
Participant
Hi,
meanwhile I found the solution for this issue.
Woocommerce has a limit of 30 different variations. If you have more than 30 variations, it will be not displayed corectly in the front end (all variations will be shown, so the customer have to find out which combination of variation is corectly set up)
Now you have to add this code in the functions.php of your Theme.
function custom_wc_ajax_variation_threshold( $qty, $product ) {
return 200;
}
add_filter( ‘woocommerce_ajax_variation_threshold’, ‘custom_wc_ajax_variation_threshold’, 100, 2 );
This worked for me.
best regards