All things Shopify and commerce
Hi!
For "continue selling when out of stock" products it shows green light and "in stock" as for those items that are in stock.
I would like to differentiate this with different color (orange maybe) and with text "order in advance" or something.
How to do this?
I have tried Kaktus, but it doesn't work that well. Sometimes it shows pre-order button for product, sometimes it doesn't. Also it does not change that green "in stock" announcement.
Hi @Pelikrypta
You can achieve this by following the instructions below.
.product__inventory circle {
fill: orange;
}
.product__inventory {
color: orange;
}
5. Next, under the Section folder, open the "main-product.liquid" file
6. Find the code {{- 'products.product.inventory_out_of_stock' | t -}} and replace it to your text "Order in advance".
See image below for reference
7. Click SAVE
Result:
Can you show the what code looks like after replacing it with the text “order in advance”? Thank you
How would I apply this to the grey "out of stock" text on a product page? The admin shows the selection as "inventory status" but I don't see that as an asset. I do see "out of stock" on my sold-furniture template page. Can I actually change this text color? I want to go from grey to a hot pink (vs. red). Oh and can I specify the hex#?
Hey, @CaseyGrace.
Thanks for joining the thread.
If you're using a Shopify-supported theme, then changing the colors of the texts is something that our Theme Support team can help you with. While we're unable to provide account-specific support via the Shopify Community, we'd be happy to continue assisting you through live chats. Simply visit the Shopify Help Center and login to your account to create a support request. On the other hand, if you're using a third-party or custom theme, then we'd recommend getting support for your theme from the theme developers. If the theme developers don't offer customization support, then you can also consider hiring a certified developer from Shopify Partners.
If you have any other questions on this topic, then don't hesitate to let us know.
Elias | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
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