Reply 324323 to: Product Detail Page showing different error state when variation is out of stock

Avatar: IvanMTK
IvanMTK
Participant
May 21, 2022 at 02:49

We found the following code snippet to fix the problem:

function custom_wc_ajax_variation_threshold( $qty, $product ) {
	return 10;
}

add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 10, 2 );

https://woocommerce.com/document/change-limit-on-number-of-variations-for-dynamic-variable-product-dropdowns/

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.