If i make over 30 variations(3 pages) it shows all options and ignores the limits i set for that item
I have 3 products each with there own sizes so if you pick one type then you only see 6 sizes that are only for the product you picked, this works fine until a add over 30 than it shows all sizes for all products.
Any way to fix this??
Best Answer
S
Stewart Fernandez
said
over 6 years ago
Ah seems its a woocommerce problem
Added this to the child themes functions.php
<?php
function ww_ajax_variation_threshold( $default, $product ) {
Stewart Fernandez
HI
If i make over 30 variations(3 pages) it shows all options and ignores the limits i set for that item
I have 3 products each with there own sizes so if you pick one type then you only see 6 sizes that are only for the product you picked, this works fine until a add over 30 than it shows all sizes for all products.
Any way to fix this??
Ah seems its a woocommerce problem
Added this to the child themes functions.php
<?php
function ww_ajax_variation_threshold( $default, $product ) {
return 50; // increase this number if needed
}
add_filter( 'woocommerce_ajax_variation_threshold', 'ww_ajax_variation_threshold', 10, 2 );
?>
Change the 10 to the amount of variations you need
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstStewart Fernandez
Ah seems its a woocommerce problem
Added this to the child themes functions.php
<?php
function ww_ajax_variation_threshold( $default, $product ) {
return 50; // increase this number if needed
}
add_filter( 'woocommerce_ajax_variation_threshold', 'ww_ajax_variation_threshold', 10, 2 );
?>
Change the 10 to the amount of variations you need
Suma
hi, Thanks. YOU ROCK!!
-
Adding Fancy Products to Categories
-
Shortcode for specfic product designer
-
What theme is recommended to use with FPD ?
-
Exclude Image from export
-
Google Font Family adds extras
-
Floating Dialog box
-
Uploadzone not working
-
Image transparency like in T-shirt demo
-
How do I get clipart
-
What does the LOAD button do / what is it for?
See all 2194 topics