• Resolved slvrmist

    (@slvrmist)


    Hello

    Why doesn’t the swatches work when there are more than 30 variations? Like on the page I mentioned below, I have 36 variations (10 scents x 3 sizes)

    Is there a setting for this work?

    • This topic was modified 8 months, 3 weeks ago by slvrmist.
    • This topic was modified 8 months, 3 weeks ago by slvrmist.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter slvrmist

    (@slvrmist)

    This is the staging site where I removed the six variations: https://tailoredhq657.e.wpstage.net/product/inoko-refills/

    Currently there are only 30 variations in there.

    Please compare the swatches on the two pages to see the difference.

    • This reply was modified 8 months, 3 weeks ago by slvrmist.
    Plugin Author WCBoost

    (@wcboost)

    Hello,

    Thanks for getting in touch with us. Actually, this is the default behavior of WooCommerce. If a product has more than 30 variations, WooCommerce will use AJAX to load variations.

    You can try the following code to increase this limitation to 50:

    add_filter( 'woocommerce_ajax_variation_threshold', function() {
    	return 50;
    } );

    I hope this helps! Please let me know if you have any other questions.

    Thread Starter slvrmist

    (@slvrmist)

    Thanks, that works!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Swatch does not work when there are more than 30 variations’ is closed to new replies.