Out of stock on product page (Dawn Theme)

I am using Down Theme, I want help regarding (out of stock) inside the products page, when there is a specific size that is not available, I want the customer not to be able to choose it or changing the font color to a light color that makes it appear that it is not available.

Please check the attached picture, I choose one of my products that the size 35-36 is not available (out of stock) but the customers are still able to select the size, but in the down its showing that this size is SOLD OUT.

How I can make the sold-out also on the size column (mean with the mentioned size 35-36) so the customer can’t select it.

Thank You!

@nanzbee - we will need code editing for it, we need to check when option is selected whether it has stock and if no then change color.

@suyash1 Thank you for your reply, yes I think so we need someone expert on this solution, hope to find an expert soon.

While Dawn will disable that in the html https://github.com/Shopify/dawn/blob/main/sections/main-product.liquid#L262

But it will only behave that way when javascript is disabled(see screenshot)

Javascript then later builds new dropdowns(

Hello friend, @suyash1

Can you guide me on how to add you as a collaborator, please?

Any solution please !

@nanzbee - hi, can you please send your site link? i will send you collab request

Hello friend,

My site is protected right now because I am working on it, should I remove the password, or it’s fine u can access it?

this is my site www.nanzbee.com

@nanzbee - sent request

Accepted

@nanzbee - can you please share product link which has out of stock variant?

1 Like

https://www.nanzbee.com/products/spider-slipper?variant=41212138160281

For example: Red

Size: from 35 until 41 is out of stock and from 42 and above is available

I have many the same on other collections

@nanzbee - your theme already have this functionality, hence i did not add custom code, used existing one, but the issue is it connects the variants, please check page link

https://www.nanzbee.com/products/spider-slipper?variant=41212138127513

1 Like

No, this thing is not compatible with me, I don’t want it like that, I want the same list “EU Size” out of stock to be like a highlight that the customer can’t able to select it.

is there any solution for this request friend?

I will keep looking for the solution, please give me sometime

1 Like

No problem dear take your time, I hope you will find a good solution, appreciate your support.

@suyash1 Hello Friend, Good day

Any good news please, I hope you find a solution :0

Any one can help please!

I think you should hire some expert code developer to do this task,it is
not as easy as it seems, i tried code but it did not work, sorry for this.