All things Shopify and commerce
Hi does anyone know the code so I can make SOLD OUT product images fade out on collection pages? Im using Dawn theme. TIA 🙂
Solved! Go to the solution
This is an accepted solution.
@JP1704 YOu can achieve it with a little bit of coding.
.fade_img{
opacity: 0.5;
}
<div class="card__media">
<div class="card__media {%- if card_product.selected_or_first_available_variant.available -%} {% else %} fade_img {%- endif -%} ">
Find attached screenshots for reference
This is an accepted solution.
@JP1704 Did the solution, I posted above work for you?
This is an accepted solution.
@JP1704 YOu can achieve it with a little bit of coding.
.fade_img{
opacity: 0.5;
}
<div class="card__media">
<div class="card__media {%- if card_product.selected_or_first_available_variant.available -%} {% else %} fade_img {%- endif -%} ">
Find attached screenshots for reference
I love this! Could you modify it for the Story theme? We've been looking for a way to do this for awhile now. Thank you!
BGA
can you please share store url so i will check and let you know
This is an accepted solution.
@JP1704 Did the solution, I posted above work for you?
hi mate, i tried just now and didn't work for Dawn12.0.
I'll keep looking. thank you though
oh sorry for that issue
can you please share your store url and issue image
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025