Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I have a quick order section on my website that lists variants available in a certain product. This is a b2b website so it is very important that ordering in bulk is very easy. The only issue with this section is that it does not display the live inventory of every variant I have online.
I have attached the most basic example of this. I have a pair of socks that come in Youth size and Adult size. The customer can see I have 34 TOTAL socks, but they do not know how much of each size I have (Example 20 Youth and 14 Adult). On top of this, it seems like it does not give any kind of error message to the customer until checkout, which means in my example, if they added 20 adult socks to their cart, they would not know we did not have enough stock until the very end of the order process.
Any help is appreciated
I cannot tell you about the error stuff as that is doable but a little more advanced. But showing the stock of individual variants is i would not say easy but little less advanced than the error one. Both of them do involve looking up code and adding/modifying code.
Please reach out via mail for a convenient conversation and solution.
Thanks
Shadab Ali
I'm in the same scenario and need the same fixes (show variant inventory / warn the customer if selection is past available qty).
Did you guys manage to get this working with some custom code and if so is anyone able to share the solution? 🙏
I was able to implement this showing quantity for each variant. We did not implement the functionality of warning the customer if selection is past quantity as that would require more effort and the guy was happy with just showing the inventory.
Please reach out via personal links below for a convenient conversation and collaboration.
Best
Shadab
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey 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, 2025