I'm setting up an online apparel store and would like to set up a conditional that will check the item count in a particular sku number and output something like this "Hurry, only 9 left!!" when the count is equal or less than say 10.

I tried

{if store_product_stock <= 10}
<p>Hurry, only <em><span class="store_product_stock"></span></em> left!</p>

But that doesn't work. Any help would be great!

1 Answer 1


According to the store docs your can use total_stock for that.


{if total_stock > 0} In Stock {if:else} Out of Stock {/if}


  • Thank you, but that only applies to the item as a whole. I have different skus for a single product (tshirts with different sizes)
    – ninjaroll
    Commented Apr 12, 2015 at 0:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.