Variation swatches when out of stock - by robertsenuk

This topic has 3 replies, 2 voices, and was last updated 5 years, 5 months ago ago by robertsenuk

  • Avatar: robertsenuk
    robertsenuk
    Participant
    June 24, 2020 at 11:56

    Hello,

    We would like variation swatches to have a different design when that variation is out of stock. However I cannot find in the options where this is possible.
    Also I can’t seem to adjust with CSS as the HTML classes look the same to me whether the variation is in stock or out of stock.

    Is there a way to achieve this in the theme?

    Thanks
    Rob

    Please, contact administrator
    for this information.
    2 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 24, 2020 at 13:45

    Hello,

    WooCommerce > Settings > Products > Inventory > Hide out of stock products from catalog

    Regards

    Avatar: robertsenuk
    robertsenuk
    Participant
    June 26, 2020 at 16:45

    Hi Rose,

    Ah thank you, I didn’t realise that option would achieve this.

    At least now we have a CSS class we can play around with.

    I’ll close this topic.

    Thank you for your help.

    Rob

  • Viewing 3 results - 1 through 3 (of 3 total)

The issue related to '‘Variation swatches when out of stock’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.