• ac2019

    (@ac2019)


    Hi, I have a dozen of products and some come to around 10,000 variants.
    I use this plugin “WooCommerce Variation Swatches – Pro” and I entered this code in functions.php because I read that woocommerce as a setting of up to 30 variants and otherwise before I could select a variant I had to wait many more seconds.

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

    But now the loading of the pages is really very slow. I have already installed a plugin to try to speed up the site (WP-Rocket) but things do not change.

    I tried to find a solution on internet, but I can’t find anything that can help me.

    Can anyone give me some advice on how to solve it?
    Thanks in advance

The topic ‘Many product variants’ is closed to new replies.