Re: How to hide unavailable variants?

How to hide unavailable variants?

Shivani3
Explorer
74 0 14

Currently I am using shopify dawn theme, and want to disable the clothing variant which are not available in stock. I want the size to appear little light in colour , so customer will get idea that the size is not available.

Replies 4 (4)

namphan
Shopify Partner
2272 296 333

Hi @Shivani3,

Please go to Actions > Edit code > Assets > base.css file and paste this at the bottom of the file:

.product-form__input--pill input[type=radio]:disabled+label, .product-form__input--pill input[type=radio].disabled+label {
    opacity: 0.5;
}
Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
Shivani3
Explorer
74 0 14

Hello, I tried this code but its not working.

 

namphan
Shopify Partner
2272 296 333

Hi @Shivani3,

Please send me the product link, I will check it

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
Shivani3
Explorer
74 0 14

https://hawbeez.com/collections/clothing - All products from this collection page