Loz86
November 16, 2023, 4:10am
1
Hi guys,
As per my title, just looking to remove/hide the Sold out Badge on the collection page for products that are out of stock.
Collection example page: https://onlinebeautyessentials.com/collections/aveeno
The above image (where the red arrow is pointing to) is the sold out badge I had just changed the text to Coming soon.
I don’t want to hide/remove the “Sale” badges just the sold out ones.
Hi @Loz86
Go to your Online store > Themes > Edit code > Assets, open base.css file, add this code at the bottom
.grid__item .card-wrapper:has(.price--sold-out) .card--media .card__badge { display: none !important; }
Loz86
November 16, 2023, 4:35am
3
Much appreciated @Dan-From-Ryviu !
I managed to remove it from the product page myself in about 2 minutes but just couldn’t remove that collection page one.
Sent you a little donation on buymeacoffee
Loz86
November 16, 2023, 3:18pm
5
My pleasure.
If you wouldn’t mind, would you briefly explain your snippet so I can better understand why the ones I was writing wasn’t working.
My code checks what product “price–sold-out” class and points to class to need to hide
Loz86
November 17, 2023, 2:17am
7
Ahh yes I understand now,
I think users being able to understand the snippets provided on here is just a important as the snippets themselves so thank you much for the explanation