Display "last One" When Quantity Reaches 1 In Stock


Is there anyway to display "Last One" when product quantity reaches 1 left in stock?

Thank You!

In the required condition looks something like this

{if $product.amount==1}{__('text_last_one')}{/if}

then in Translations add new text_last_one language variable

Thank You very much eCom Labs! Where do I insert this code?

Where do you want to display it?

On the product detail page and on the blocks below the product price. I already made the translation and I tried finding the exact placement in the templates but I was unable to find the path for the product detail page and to add to the blocks.

For example, use the products:prices_block hook here