• Resolved dragonweb

    (@dragonweb)


    Hi there,

    I have a product with over 700 variations, created with 3 attributes. The problem is that the filter process doesn’t work e.g. if I select attributes 1, it still shows all possible attribute options for 2 and 3, and doesn’t limited choices based on attribute 1.

    However it displays a message at the bottom like this to say that the choice I made is not avaiable:

    https://cl.ly/78aee13ad0c1

    I changed the theshold using this code:

    function woo_custom_ajax_variation_threshold( $qty, $product ) {
    return 1500;
    }
    add_filter( ‘woocommerce_ajax_variation_threshold’, ‘woo_custom_ajax_variation_threshold’, 10, 2 );
    function wpse_rest_batch_items_limit( $limit ) {
    $limit = 5000;

    return $limit;
    }
    //add_filter( ‘woocommerce_rest_batch_items_limit’, ‘wpse_rest_batch_items_limit’ );

    But it didn’t seem to help.

    Any help here would be really appreciated…

Viewing 2 replies - 1 through 2 (of 2 total)
  • melinda a11n

    (@melindahelt)

    Automattic Happiness Engineer

    Hi there!

    This is the code that we recommend for that, which does not match your above. Perhaps give this a try.

    add_filter( ‘woocommerce_ajax_variation_threshold’, ‘wc_ninja_ajax_threshold’ );
    function wc_ninja_ajax_threshold() {
    return 800;
    }

    Keep in mind the higher the number of variations, the larger resource drain on your site.

    Hi @dragonweb,

    We have not heard back from you in a while, so I am going to close this thread. If you still need assistance please open a new thread and let us know.

    Have a super day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Variation issue – showing all variation permutations’ is closed to new replies.