View Single Post
  #4  
Old 02-09-2007, 04:58 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Display Out of Stock message in product_t.tpl

Well you can't copy it directly, as the code for the product page and the products pages are different. A simple way is to just add this bit of code which will display an in-stock or out of stock message:

{if $products[product].avail le 0}Out of Stock{else}In Stock{/if}

You can use the same {if} statement to hide the price or buy now button as well.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote