• Resolved stormjarvis

    (@stormjarvis)


    Hi there

    My woo-commerce keeps bugging out at more than 30 variations, I have tried contacting the theme support I have installed but they keep insisting it is a woo commerce error.

    The issue is this – when creating multiple variations the product does not behave the same as the usual variable products – incorrect variations that are not enabled are shown when usually they disappear. This is confusing the site and the image’s default to the site image on correct selections.

    Here is the test:

    Test selections: Framed Paper Print | A1 | White

    You can see that one is working fine with 30 Variations: https://designcolab.co.za/product/adolphe-millot-flower-fpplc0289-copy/

    And this one breaks with more than 30 variations: https://designcolab.co.za/product/adolphe-millot-flower-fpplc0289/

    Please help

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Its intended behaviour. To load all the variations data into the page at page load time might make it too large, so WC has set a limit of 30 variations, beyond which the page will use ajax to get the data and find out if the user’s selected variation exists.

    You can increase the variations threshold using this snippet in functions.php for your child theme:
    https://gist.github.com/mohsinoffline/f06c66259e667d6b16bb

    If you increase the threshold too much, your page size and therefore page load time will increase. Remember your user might by on a slow connection. You’ll need to make a judgement.

    Thread Starter stormjarvis

    (@stormjarvis)

    Thank you so much! This worked perfectly!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Woocommerce variation image bugging out’ is closed to new replies.