increasing woocommerce_ajax_variation_threshold breaking page
-
Hi,
I have same situation as in:
https://www.ads-software.com/support/topic/how-to-increase-product-variation-limit-in-woo-commerce/Variable attributes not applicable for combination shows up with the message:
Sorry, no products matched your selection. Please choose a different combination.I increased product variation limit, using:
add_filter( 'woocommerce_ajax_variation_threshold', 'ww_ajax_variation_threshold', 10, 2 ); function ww_ajax_variation_threshold( $default, $product ) { return 150;
However, this doesn’t solve the problem.
Instead:the page now gives following error:
Warning: count(): Parameter must be an array or an object that implements Countable in public/wp-includes/formatting.php on line 3225
The page I need help with: [log in to see the link]
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘increasing woocommerce_ajax_variation_threshold breaking page’ is closed to new replies.