• Resolved rawkus2g

    (@rawkus2g)


    In the past, when I had multiple options for a product, certain combinations of variations were possible and wouldn’t be visible for the customer.

    For example. If I have an “18” rod” and the customer chooses the “5/16″ clevis” option, only “no thanks” was an option under “elevator bolts.”

    I added a titanium skid puck option and now all options are being shown, even if the customer can’t purchase them. For example, whenever titanium skid puck is “yes”, then only the “no thanks” option is possible for “elevator bolts.” How do I keep the 20mm, 25mm, 35mm options not visible unless the customer can actually buy it from us?

    Hope this makes sense!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The variations “threshold” is usually 30, though that can vary by theme. If you have less variations than the threshold, all the variations are loaded with the page, and unavailable variations cannot be selected. If you have more variations than the threshold, any combination can be selected, then ajax will be used to find out if the selected variation is available, and sometimes its not.

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

    As you make the threshold bigger, the page size gets bigger so page load time will increase. You’ll need to make a judgement.

    Thread Starter rawkus2g

    (@rawkus2g)

    That did the trick. Many thanks! I will try and balance page size accordingly.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Variation Issue’ is closed to new replies.