Reply 324688 to: VARIATION SWATCHES PRIMARY ATTRIBUTTE NOT WORKING WITH MORE THAT 27 VARIATIONS

Avatar: gabo1187
gabo1187
Participant
May 26, 2022 at 19:55

I put these codes in my child theme in function.php

function custom_wc_ajax_variation_threshold( $qty, $product ) {
	return 100;
}
add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 10, 2 );
Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.