• Hi,

    This is still happening with variable products in WP5.4 & WooCommerce 4.0.1

    If a product has multiple variations and only certain variations use some of the attributes assigned at the product level all variations still include the additional attributes not assigned on the front-end though variations for that specific product variation does not exist.

    Scenario:

    Product has the following configuration.
    ………………………………………………………………………………………………………………………….
    Colour attributes: Black and white.
    Size attributes: small, medium, large and x-large
    Black attribute variations include: small and medium.
    White attribute variations include: small, medium, large and x-large.

    If a user selected the White product variation, sets the size to say x-large and then decides to change the colour to Black, the users “size” option is still set to x-large and could still change the selection to large also.

    This should not be possible if a user changes the selection and a variation option does not exist for the new selection, the child options should default to “Choose an option” select/radio etc. item.

    Any known solutions or workarounds as this is a major user experience killer as it stands currently, and exceptionally confusing for the user?

    Thanks in advance for any suggestions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I have same issue so I post here

    Let’s say I have a product with 3 variations

    ID 0001 – Brand-1 | Including Box

    ID 0002 – Brand-2 | Any Attribute Options

    ID 0003 – Brand 1 | Any Attribute Options

    IMAGE: https://i.stack.imgur.com/MjOKP.png

    The problem is, in front end if I select the first attribute (Brand 2) then second dropdown box (Package) still have the option to select “Include Box”, but there is not product with such configuration.

    Image: https://i.stack.imgur.com/lHOmw.png

    This does not have logic, even if I add a new option to “Package” attribute like “No Package” when I choose Brand 2 will still show both Options.

    I need to hide the second dropdown box and allow Woocommerce to add product in the cart if there is not any option set for “Package” attribute.

    Thanks a lot.

    @stevenwillett
    Did you get a solution for this?
    I have a similar problem and have found nothing that works!
    Seems like such a simple thing to have missed at the woo commerce end??

    This fix has been round a long time. I just tested it with Storefront and WC 4.1.0 and it still works for me.

    add_filter( 'woocommerce_ajax_variation_threshold', 'ww_ajax_variation_threshold', 10, 2 );
    function ww_ajax_variation_threshold( $default, $product ) {
      return 60; // set to your max variations
    }

    If it doesn’t work for you, try the conflict test. Switch to Storefront and deactivate all plugins except WooCommerce. It should work now. Reactivate one-by-one to identify what is causing the conflict. Post back with your finding.

    @lorro. Thank you for responding, I did the conflict test. Turns out it was the official Stripe plugin! ???♀?
    Not ideal, I’ll try some of the others see how it goes..

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Variable products showing all possible product combos (even nonexisting)’ is closed to new replies.