This topic has 10 replies, 3 voices, and was last updated 5 years ago ago by Rose Tyler
Hi,
I am having a problem with varian selection in page, it show all Varians in the list.
How to show only the possible varian selection ?
example I have 2 varian :
V1 — A,B,C
V2 – 1,2,3
My product only contain these : A1, B1 , C2
So when I select V1 –> A it should only show V2 -> 1 (instead of showing : 1,2,3)
Please Help
Thank you
Arif
Hello,
1) Do you use default WooCommerce drop down or variation swatches?
2) Could you provide link to your product?
Regards
Ok
Hello,
You have 184 variations for that product http://prntscr.com/nazae6 , maybe this is the reason of the problem because variations work the same way even with the default WooCommerce theme Storefront https://gyazo.com/4b5c793e6a9aa41565e77d17ab197d00 It means that our theme is not the reason of the issue.
Also, we have created product with less number of terms and don’t have this problem https://www.rajakingkong.com/product/soft-case-tpu-copy/ and don’t see any problems.
Contact WooCommerce plugin support of the WC plugin support forum to get assistance with this issue because we can help you only if the problem is caused by our theme.
Regards
Hi Olga,
Thank you for your support.
Ok now I notice that the problem is with the Woocommerce Ajax Variation Threshold
I read this : https://iconicwp.com/blog/modify-ajax-variation-threshold/
function iconic_wc_ajax_variation_threshold( $qty, $product ) {
return 500;
}
add_filter( 'woocommerce_ajax_variation_threshold', 'iconic_wc_ajax_variation_threshold', 10, 2 );
I manage to try above link and it work perfectly : https://www.rajakingkong.com/product/soft-case-tpu/
But when I try that script in xstore theme (function.php) it did not work
Please help, thank you
Regards,
Arif
Hello,
If we add the mentioned code to XStore child theme http://prntscr.com/nc5rsv we also don’t see the problem http://prntscr.com/nc5she
Regards
Ok Now its working fine!
Thanks a lot
Regards,
Arif
Hello,
You’re welcome!
Regards
The issue related to '‘Showing Only Possible Product Variations’' has been successfully resolved, and the topic is now closed for further responses