Shopify themes, liquid, logos, and UX
Hey all! I figured out how to turn on Inventory Status for the Dawn theme, but it doesn't show on items where inventory is not tracked. I would like the "in stock" option to show for those items as well. Any help with this would be greatly appreciated. Thanks!
A bit of liquid coding to just check if the items is in stock or not would do it.
Yeah I'm just looking for help with the code there to be sure the in stock notification shows up when inventory is not tracked.
Please share your store url for reference, I will try sharing the code with you
I just DM'd you as I don't post my site here and the theme is inactive.
got it. but where does the in-stock badge show now? i wanted to see the reference of how your badge is showing up
This is how i am showing it on my dev store just as an example regardless of quantity is being tracked or not
This is on the product page. I'll send you some links.
okay so just check by doing this.
Open your customizer and select the product template from the dropdown. And under product information add a custom liquid block and paste the code. Drag the custom liquid block where you want to show the in stock thing
{% if product.variants.first.inventory_management == nil and product.available %}
<div style="background: lightgrey;
border-radius: 50px;
width: fit-content;
padding: 5px 12px;" class="in-stock">In Stock</div>
{% endif %}
for every product whose inventory is not tracked you will get this grey badge. Check and let me know
Thanks! However, I prefer it to show like the default that's in the images/links I DM'd you.
Honestly man, i just wanted to check if it was working for you. I would have taken care of the part to make it look like the ones you have now, but i guess you can take care of it. At least do let me know if the code works out for you or not.
Thanks
Ah, okay. It does indeed work! However...it just creates more padding between the other elements there. If you look at the screenshots I sent you, you'll see the one that's *not* showing IN STOCK still has the space and padding where it should be. That's why I'm just trying to get whatever the liquid is for this that's already built into Shopify to show the message when inventory isn't tracked as well.
Thanks for the update.
Yeah I see the space that's been left out. I am not on my system now. Will check may be they are using css to hide it. If they are just removing it would do but if it involves liquid inside the code editor then I might need collaborator access to your store.
Thanks
Cheers. I did reach out to them as well but I'm still awaiting an answer from escalation. I can wait for that if you want to before you spend time on it.
Will definitely take a look
I'll DM you the site and you can request access. Thanks!
I know how to put this right. I need few things from you as you have a lot of products. Tell me 2 or 3 products That are atleast 9 in number in your inventory since that is the threshold you are using to show the in-stock option. Hope you get the point
Sending you a DM now.
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025