Superstore stock level indicator

Solved
chile888
Excursionist
13 0 4

Hello,

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.

https://6l2qbi7da143xht2-51262226586.shopifypreview.com

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.

Regards

0 Likes

Hi chile888,

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

 

Spent too much support time dealing with order cancellation request from customer? Wouldn't it be good if customer can cancel order on their own without bugging your support? Try out Cancellable app! https://apps.shopify.com/cancellable . I also write articles about store customization that can improve your customer shopping experience here : Yagi Software Blog
chile888
Excursionist
13 0 4

The Quickorder form was created by an outside app, but they told me they couldn't do anything, i found this code in the snippet, would this work?

0 Likes

Hi chile888,

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.

Spent too much support time dealing with order cancellation request from customer? Wouldn't it be good if customer can cancel order on their own without bugging your support? Try out Cancellable app! https://apps.shopify.com/cancellable . I also write articles about store customization that can improve your customer shopping experience here : Yagi Software Blog

This is an accepted solution.

quick order code-min-threshold.txt (201 KB)

Spent too much support time dealing with order cancellation request from customer? Wouldn't it be good if customer can cancel order on their own without bugging your support? Try out Cancellable app! https://apps.shopify.com/cancellable . I also write articles about store customization that can improve your customer shopping experience here : Yagi Software Blog
chile888
Excursionist
13 0 4

Worked beautifully, very appreciated!

0 Likes