Showing Only Possible Product Variations

This topic has 10 replies, 3 voices, and was last updated 5 years ago ago by Rose Tyler

  • Avatar: Arif
    Arif
    Participant
    April 10, 2019 at 09:51

    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

    9 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 10, 2019 at 13:03

    Hello,

    1) Do you use default WooCommerce drop down or variation swatches?
    2) Could you provide link to your product?

    Regards

    Avatar: Arif
    Arif
    Participant
    April 12, 2019 at 09:47

    Hi

    I use dropdown, heres the link

    https://www.rajakingkong.com/product/soft-case-tpu/

    Regards,
    Arif

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 12, 2019 at 10:15

    Hello,

    Could you, please, provide temporary wp-admin access?
    http://prntscr.com/naxku5

    Regards

    Avatar: Arif
    Arif
    Participant
    April 12, 2019 at 11:11

    Ok

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 12, 2019 at 12:28

    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

    Avatar: Arif
    Arif
    Participant
    April 15, 2019 at 10:39

    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

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 15, 2019 at 12:27

    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

    Avatar: Arif
    Arif
    Participant
    April 15, 2019 at 12:41

    Ok Now its working fine!

    Thanks a lot

    Regards,
    Arif

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 15, 2019 at 13:07

    Hello,

    You’re welcome!

    Regards

  • Viewing 10 results - 1 through 10 (of 10 total)

The issue related to '‘Showing Only Possible Product Variations’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.