Show "Last one" on product item without entire inventory visible

New Member
1 0 0

Is there a way to have "Last One" or similar wording appear on item pages without having inventory quantity available for all products or manually type in description of each product when they are close to selling out?

Reply 1 (1)
Shopify Partner
5189 464 1125

For single variant products on the initial page load for OS2.0 themes like dawn in the product template form settings add a custom-liquid block and the following code.

{% if product.selected_variant.inventory_quantity == 1 %}
 <p>Last One</p>
{% endif %} 


Note it's a bit more advanced to have it update without reload when different variants are selected and depends on theme.


If you need this customization you can contact me , info in signature and please provided context(this forum post, store url ,theme, details).


Finally Combinable Discounts - EARLY ACCESS ONLY - Use Free Shipping With Other Discounts

Answers powered by coffee Buy Paul a Coffee for more answers or donate to
Problem Solved? ✔Accept and Like solutions to help future merchants
Confused? Busy? Buy a custom solution