• Resolved lvgreay

    (@lvgreay)


    Hi,
    I need support to make the choices on product page showing only related variations and not to show all and in all variations.
    In other words, if you choose “Elleboog” from the first selection “Item”, then you must see just “Verzinkt” and “Zwart Poedercoated” in the next selection “Behandeling”. So not all like now. After that also specific variations in the next selection until the last one, and then you see the right price.
    How can I do this? Please help.
    Thank you in advance.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • @lvgreay – The issue you’re seeing is related to the variation AJAX threshold. If there are more than 30 possible variations, the functioning of those dropdowns is switched to AJAX, resulting in some non-existent variations to be optionally chosen.

    You can override this by placing the following PHP snippet in your theme’s functions.php file:

    
    function wc_increase_variation_threshold( $product ) {
        return 500;
    }
    add_filter( 'woocommerce_ajax_variation_threshold', 'wc_increase_variation_threshold', 10, 2 );
    

    Let me know if you have any issues!
    – Joey

    dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hi @lvgreay

    We haven’t heard back from you in a while, does this mean Joey’s suggestion helped?

    I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thanks,

    Thread Starter lvgreay

    (@lvgreay)

    Thank you!
    the problem is solved with this code.
    Regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Specific variations basic on selection’ is closed to new replies.