Viewing 3 replies - 1 through 3 (of 3 total)
  • Prospekto

    (@prospekto)

    I had the exact same problem…

    Here is the workaround.

    There is a limit to 200 variations.

    You can change this limit (to 300 for example) by inserting the snippet below in your function.php

    // Set a new limit for variations swatches
    add_filter( ‘woocommerce_ajax_variation_threshold’, ‘woocommerce_increase_variation_limits’, 100, 2 );
    function woocommerce_increase_variation_limits() {
    return 300;
    }

    Thanks

    • This reply was modified 1 year ago by Prospekto.
    • This reply was modified 1 year ago by Prospekto.
    • This reply was modified 1 year ago by Prospekto.
    Plugin Support Aamir

    (@aamiribsf)

    Hello @waseemn,

    Greetings for the day!

    Yes, we do have a filter to increase the limit of variations as suggested by @prospekto.

    <span style="font-family: Inconsolata, Consolas, Monaco, "Lucida Console", monospace; font-size: 14.4px; white-space: pre;">add_filter( 'woocommerce_ajax_variation_threshold', 'woocommerce_increase_variation_limits', 100, 2 );
    function woocommerce_increase_variation_limits() {
        // Provide a limit according to your requirement for now it is 200.
        return 200;
    }</span>

    You can add it to your child themes function.php or use the Cide snippet plugin to add the code.

    Thanks to @prospekto for the taking time and sharing the solution here.

    Have a great one ahead!

    Plugin Support Shravan Bhaskaravajjula

    (@bhshravankumar)

    Hello @waseemn,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.
    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘swatches break after creating over 200 variations’ is closed to new replies.