Hi hoping someone can help I’m looking to implement a solution similar to the attached image where I can include inventory count within the variant selector so essentially you can see live stock levels per variant within the product page.
I remember, I have done something similar like this on this website so I would be happy to help you out with this as well. Of course, it’s not only possible with CSS and would require custom coding in your theme files so please share your store URL and collaborator request code in my private messages and then from there we can get this started.
Hi @Moeed appreciate the offer but I’m more looking for a point in the right direction so I can learn myself, fairly handy with code already but great to know there is a solution out there
Hi! Yes, it’s definitely possible to show inventory counts within the variant selector on the product page, even with the Dawn theme.
To implement this, you’ll need to customize your product page template and add a bit of JavaScript and Liquid code to pull and display the live inventory data for each variant.
If you’re comfortable with code, I can guide you through the steps — or if you’d prefer, I can recommend a Shopify app that handles it more easily without coding.
Hey @faitmafaitma343 thanks for your response! Awesome, I’m comfortable with all of that, haven’y added much JS before but I’m pretty handy if you could guide me through the steps I’d really appreciate it
Hi @Moeed after some digging I’m almost certain it should be placed within this body of code, from the main product liquid, any advice as I’m struggling to find the right place I can see it displaying when posting around the selector but not within the drop down field, thanks alot!
Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.