Support » Plugin: Stock Locations for WooCommerce » Disable the selector of a variation Out of Stock

  • Resolved fedehrc

    (@fedehrc)


    Hello, the plugin is spectacular, thank you!

    I wanted to know if it is possible to disable the selector of a variation when the stock is Out of Stock in all locations.

    For example: I have a size 45 shoe, no stock available, however let you select the size.

    This is how I would like it to look:
    https://snipboard.io/wqP1nj.jpg

    Thank you!

Viewing 1 replies (of 1 total)
  • Plugin Author Fahad Mahmood

    (@fahadmahmood)

    @fedehrc I have checked your screenshot, actually you are not using dropdown selector which is a default selection method in basic WooCommerce on product page. Please check the following screenshot, you will notice that the out of stock locaiton cannot be added to the cart as that option is disabled. In your case, some JavaScript snippet will be added to adopt the same functionality for div/li or whatever html element you are using for size attribute selection.

    https://i2.paste.pics/51a6dfebc0a4cea31718c0b458615fab.png

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.