Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
I've been looking around on how to add the low stock display to my product page when my stock gets low to create urgency, but so far all the coding I've found doesn't work with my page or displays the low stock feature in the wrong spot. I want the low stock feature to display beside quantity or beside the price. Can anyone help me out?
Store url: https://monteithoutfitters.com/
Hi @TM_Outfitters,
You can modify product section. Liquid example code below:
{% if
current_variant.inventory_quantity < 5
and current_variant.inventory_management == 'shopify' %}
<p>Almost Sold Out!</p>
{% endif %}
Regards,
Sam - Owner Lead Developer
Achieve Applabs
Hi there, if you do not want to do coding by yourself, you can check for low stock apps in the app store. One of them is Hey! Low Stock Counter which does not require any coding on your end.