by Jim » Thu Aug 27, 2009 1:37 pm
Since ShopSite generated pages are static there is no way to automatically do that.
If you have a Pro level store you can turn on inventory tracking and set the quantity of the product. Each order the quantity will be reduced and when there are no more left the shopper will receive a message that the product is out of stock.
You could also create a custom template to check the quantity on hand and if it is 0 to display a Sold Out image or text. You would need to do a publish frequently to have the store up to date with the quantity.
There are also 2 template tags that can display the quantity available to the Shopper.
[-- ProductInventoryPopUp {link name} --] Create a link that will make a pop-up window displaying the Quantity On Hand, where link name is the text for the link.
[-- ProductInventoryActual path_to_shopping_cart_cgi {description text} --] Display current Quantity On Hand on the page using Server Side Includes (SSI), where description text appears before the number.
These options are more advanced. The first one would require the shopper click on a link to see the quantity on hand. The second one requires Server Site Includes to be enabled on the server.