I don't want to display the number of items in stock unless it falls below a critical level (say 10).
If there are more items in stock than 10, I want to display "In Stock" instead of the actual number. Only when item level falls to 10 or below I want to show "Only X items left".
Where and how do I have to change the scripts? Or is there a built-in functionality for this?