View Single Post
  #1  
Old 10-07-2009, 03:43 AM
 
joannet joannet is offline
 

Senior Member
  
Join Date: Mar 2006
Posts: 105
 

Default Displaying number of items left when product quantity reaches certain level

I would like to display a message on the product page when the quantity of the product reaches a certain level.

For example, when the quantity reaches 10 (but is >0), the following message displays on the product page:

"Only 10 left".

Then, as further items are sold, this message changes as appropriate - i.e. "Only 9 left", "Only X left", etc

When the product quantity reaches 0, then the product will be Out of Stock and will not be displayed.

Thanks in advance for help.

----

Further to this: if the product quantity is above 10, then no text will be shown, i.e. "Quantity in Stock" text does not show and neither does the quantity itself.

----

This is a version 4.2.2 store.
__________________
/joannet/
X-Cart version 4.1.9 and above
Reply With Quote