Shopify themes, liquid, logos, and UX
I want to edit the design of the sold out badge that appears on the product card in a collection page. Instead of grey and stating "sold out", I want it to be red, in bigger size and text changed to "Request to source".
Also, on the product page, instead of the badge (beside the price) and button stating "sold out", I want both to state "Sold out. Request to source"."
I can't seem to find where in the codes to make the required text and design changes. And when found, what is the code I should use to make the changes? Anyone able to help? I am using Habitat theme. Thank you!
Solved! Go to the solution
This is an accepted solution.
You can change text of Sold out in Online store > Themes > Edit default theme content. Find Sold out but it will be applied to both product an product card page.
So you can go to your Online store > Themes > Edit code > open card-product.liquid, go to line 128, replace this line of code
{{- 'products.product.sold_out' | t -}}
With Request to source text.
- Found this helpful? Hit "Like" and "Accept as Solution"!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify
Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
send url of the store
Hi, my store url is https://calibre65.com/
I managed to find the places to change the text from "Sold out" to "Request to source", but I can't seem to figure out how to change the design of the badge to red and in bigger size
This is an accepted solution.
You can change text of Sold out in Online store > Themes > Edit default theme content. Find Sold out but it will be applied to both product an product card page.
So you can go to your Online store > Themes > Edit code > open card-product.liquid, go to line 128, replace this line of code
{{- 'products.product.sold_out' | t -}}
With Request to source text.
- Found this helpful? Hit "Like" and "Accept as Solution"!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify
Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Thank you! This is definitely the more elegant solution compared to what I did which was to edit directly on the code.
How would I edit the design of the badge color and size though?
You need to add custom CSS code to do that. Could you send me a list page that has that badge so I can provide the code?
- Found this helpful? Hit "Like" and "Accept as Solution"!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify
Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Here's the page with the badge:
https://calibre65.com/collections/all-watches?filter.v.availability=0&sort_by=created-descending
Hi @calibre65
Please add this code to your theme.liquid file, after <head> tag
<style>
.product-featured-image .badge.out-of-stock {
background: red;
padding: 24px 12px;
font-size: 16px;
}
</style>
- Found this helpful? Hit "Like" and "Accept as Solution"!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify
Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
This works perfectly, thank you!
- Found this helpful? Hit "Like" and "Accept as Solution"!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify
Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Hello Dan,
Can you also help me?
I would like to change how the Sold Out looks on my website: https://diversusoficialsite.myshopify.com/collections/mens-ready-to-wear
I will show you an example:
Hi @HELDERWRLD
Do you mean you want to change it on the product page and display it like this?
- Found this helpful? Hit "Like" and "Accept as Solution"!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify
Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Hello @Dan-From-Ryviu
Yes, on the product page and on the collection page. But i don't want the circle on it, just "Sold Out" letters.
And also when the product or variant is out of stock, appear like "GET NOTIFIED", so people can put their email to join a waitlist. Like the example bellow
Hello @Dan-From-Ryviu
Can you please share the code that you used to place the badge like that please?
I would like to do it with my site also, would you please help me?
tried the code shared, but doesn't work on my.
Shopify and our financial partners regularly review and update verification requiremen...
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