Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Pricing Out-Of-Stock Variants

Pricing Out-Of-Stock Variants

Eugene_RF
Tourist
11 0 0

We are using Jewelias Version 1 and we are trying to make it so that when a variant is out of stock, we are still able to click the variant and see the price, the way the theme is set up you cannot do so.  Out-of=stock variants are displayed with a strike-through ( greyed out ) and are un-clickable.

For example : https://jewelias-demo.myshopify.com/products/nulla-dinterdum-diverra-a-macos?variant=25270971138112

Small and Yellow of this product cannot be priced because they are not in stock.

Please help implement this if possible we have been through lots of conclusions.

Replies 5 (5)
Eugene_RF
Tourist
11 0 0

yes please!

Eugene_RF
Tourist
11 0 0

lets try to do it with an explanation first if i cant succeed maybe i could ask the owner if that would be ok!

 

Eugene_RF
Tourist
11 0 0

I went through and searched for the term " disabled " and tried putting double // in front of all statements and it dousnt seem to do anything.. as you mentioned before, is there a java script disabling the option to click variants ?

 

JayAdra
Shopify Partner
178 15 44

I'm not sure which liquid file would control the rendering of these variants, but find where these "swatch-element" divs are being rendered, and look to delete these 3 things (see screenshot).

 

That should make them selectable - then you can work on making it clear that they're sold out (the button will say "Unavailable" so that's a start).

 

JayAdra_0-1726794720301.png

 

 

Eugene_RF
Tourist
11 0 0

Im having a hard time i have found a couple files when searching the term " swatch-element " insides a .js file and inside my product template liquid, i have tried removing these disabled attributes saving and testing in preview and i have had no luck. Im unsure if this needs to be done properly in multiple locations or if im just overlooking. should i provide the code ?