• Resolved rickg

    (@sitetherapy-rick)


    I have products with four attributes used for variations. However, not all combinations of those 4 attributes exist as products. AN example:

    These are industrial valves. They have various connection types as well as different sizes but some sizes don’t have all of the connection types. Thus, if you choose a 3/8″ valve, it only comes in 3 of the 6 connection types.

    However, if I go to the page above and choose 3/8″ and then click the Connection Type dropdown, I see all 6 of the connection types as valid options. This is true for the other dropdowns – making choices in one dropdown doesn’t seem to affect the options in the others.

    Expected: That choosing one attribute filters the options in the other dropdowns so that only combinations which exist are shown

    • This topic was modified 5 years, 8 months ago by rickg.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey there!

    When we see this (where the combinations are not working correctly), there’s typically an error with the theme, typically in the JS of the theme (since the filtering is done in AJAX).

    I would recommend testing using the default Storefront theme to test this out, and then you can see if that is the issue, as it will allow you to use it on a theme we know works.

    Hopefully that helps! Have a great one!

    Thread Starter rickg

    (@sitetherapy-rick)

    Bleh, I should have mentioned… this happens in Storefront too. I’d not disabled plugins so I just I disabled all plugins aside from Woo itself and… no luck. You can see this on a staging server here:

    https://agb.sitetherapy.co/product/2-way-pilot-diaphragm-solenoid-valve-normally-open/

    If you choose the first option as 3/8″ the fourth option should only have 3 choices vs 6. Nothing shows in the console either. Any ideas on what else would cause Ajax to fail?

    Oh.. WP 5.1.1, Woo 3.5.7

    Thread Starter rickg

    (@sitetherapy-rick)

    FYI, I also tried increasing the variation threshold since there are a lot of variations for some of these and… no dice.

    (I used this code to manage the threshold, increasing the number accordingly)
    https://gist.github.com/claudiosanches/6f91ad228c2176b986b2

    Thread Starter rickg

    (@sitetherapy-rick)

    @slash1andy – any other thoughts here?

    Thread Starter rickg

    (@sitetherapy-rick)

    Nevermind, figured it out, It was a matter of raising the threshold as shown in the above link, I just hadn’t raised it high enough.

    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey there!

    I am seeing the correct amount of options when selecting 3/8, is that what you are seeing now? There might have been some caching issues at play.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Product page allowing invalid combination of variations’ is closed to new replies.