I'm currently using the superstore, they have an inbuilt stock level indicator. I would like to add code so that the stock level only appears if it appears below a certain threshold. For example when we have less than 15 stock left, the indicator would appear.
This is a link to our underdevelopment shopify store (The live website is a different theme and I don't want to publish an unfinished theme) If you go to products and select one of the quick order forms you will see that all the stock levels are being shown.
If anyone could help, it would be appreciated.
Solved! Go to the solution
Would you mind posting the code for the `quick-order-herbal-international` page here? So we can help to see where to add code to only show the stock indicator if it is below a certain threshold.
I think the code should be located in Theme > Superstore > Edit code > templates > pages.quick-order-herbal-international.liquid
I have made modification to the snippet so that it will only shows the stock inventory number if it is lower than 5, you can try use the updated snippet code :
You can modify the threshold number at the first line of the code.
Hope this helps.
This is an accepted solution.
quick order code-min-threshold.txt (201 KB)