Prestige Theme - Cross Out Unavailable Variant

NMalone
Tourist
6 0 4

Hi,

I'm wanting to cross out the unavailable variant similar to below.
Can anyone tell me if this is possible in the Prestige Theme?

Thanks so much!

NMalone_0-1620209322122.png

 

Replies 15 (15)

dmwwebartisan
Shopify Partner
12289 2547 3698

@NMalone 

Please share your website URL and password if any. I will check and provide a solution here.

Thanks!

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | #1 Product Filter & Search app on Shopify | The most powerful Shopify page builder app
NMalone
Tourist
6 0 4

Thank you so much!

It's www.shanetafashion.com

dmwwebartisan
Shopify Partner
12289 2547 3698

@NMalone 

You should create a class for strikethrough and add this class for variants where variant. available is false in the liquid template.
 
The CSS for the class would be something as simple as:
Add the following at the bottom of your assets/theme.css file.

 

.unavailable-variant {
text-decoration: line-through;
}

 

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | #1 Product Filter & Search app on Shopify | The most powerful Shopify page builder app
NMalone
Tourist
6 0 4

Thank you. I have added the CSS to asset file, but not sure how to find the variant returning as false in the liquid.
Are you able to help any further? 
Thanking you.

dmwwebartisan
Shopify Partner
12289 2547 3698

@NMalone 

If you see the above CSS code it only targets the unavailable variants so no need to go and check in liquid. 

As you said you added code in CSS file. Is this working for you?

If this works then no need to change in liquid.

Let me know.

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | #1 Product Filter & Search app on Shopify | The most powerful Shopify page builder app
NMalone
Tourist
6 0 4

Hi,

No it hasn't made any changes to the website - all variants are still showing as normal.

okw
Excursionist
31 0 2

In the product page liquid, there' no variant.unavailable code, it only has something along the lines of "if variant available". Is it possible to work around that?

hailkody
Tourist
5 0 2

@dmwwebartisan 

Hello,

I would like to add a strike through for out of stock items.

Currently on the prestige theme.

Could you please help me out.

 

Thank You

dmwwebartisan
Shopify Partner
12289 2547 3698

@hailkody 

Please share your store URL and a screenshot.

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | #1 Product Filter & Search app on Shopify | The most powerful Shopify page builder app
hailkody
Tourist
5 0 2

@dmwwebartisan 

I sent you a PM

hailkody
Tourist
5 0 2

@dmwwebartisan 

 

I sent you and email and a PM.

Could you let me know if you can help me out.

thanks

davinder
Tourist
13 1 2

Hi,

I'm wanting to cross out the unavailable variant.
Can anyone tell me if this is possible in the Prestige Theme?

Thanks so much!

dimanoclothing
Visitor
1 0 0

Can you also help me with this issue? I want to show the unavailable sizes crossed out and if possible in red.

My website is dimano-clothing.com and theme is prestige

Starin
Excursionist
14 0 6
Starin
Excursionist
14 0 6

@dmwwebartisan 

Hello,

I would like to add a strike through for sold out products.

Currently on prestige theme, could you please help me out.

URL: https://www.starin.in/products/ivory-backless-ruched-dress

 

Thank You