Hide unavailable variations when lable is selected

When attributes are set to lable there are a few issues:

  1. They don't grey out (disabled) when out of stock
  2. If the attribute is set but no variation is created or if the variation is set to disabled the label still shows

To test:

Create a variable product

Set 4 variations (black, red, green, blue)

Only create 3 variations for the product (black, red, green)

Set red product as out of stock with backorders disabled

Untick "enabled" on Green variation

Set variation group to label

View product... it will show all colours (black, red, green, blue) as selectable items


To fix

  1. hide opinion for variations not created and variations not enabled
  2. Grey out / disable out of stock with no back order variations

Comments

Sign In or Register to comment.