Shopify how-to June 16, 2026 4 min read
How to Show Size-Specific Inventory Warnings on Shopify
"Only 2 left in size M" — urgency + clarity, both drive conversion.
Three Setup Methods
Theme-native: Modern Shopify 2.0 themes show inventory under variant pickers. Enable in theme customizer.
Apps: Hextom Stock Counter, BSS Inventory Status, Notify! All show "Only X left" badges + low-stock thresholds.
Custom Liquid:
{% if variant.inventory_quantity > 0 and variant.inventory_quantity < 5 %}
<p class="low-stock">Only {{ variant.inventory_quantity }} left!</p>
{% elsif variant.inventory_quantity == 0 %}
<p>Sold out — back in stock soon</p>
{% endif %}FAQs
How to show inventory by size?
Theme native, apps, or custom Liquid.
Why?
Urgency 10-15% lift; reduces checkout disappointment.
Pair size + inventory data
Tailor Size Guide displays variant inventory inside the size chart automatically.