View Single Post
  #2  
Old 11-04-2002, 03:13 PM
 
syddos syddos is offline
 

eXpert
  
Join Date: Sep 2002
Location: London, England, UK
Posts: 259
 

Default

Hi Bluecat,

The code below is taken from v3.2.1. /customer/main/product.tpl

Quote:
<tr><td COLSPAN=2></td></tr>
{if $config.General.show_in_stock eq "Y" and $product.distribution eq ""}
<tr>
<TD WIDTH=30%>
{$lng.lbl_quantity}
</td><td nowrap>
{if $product.avail gt 0}
{$product.avail}
{else}
{$lng.txt_no}
{/if}
{$lng.txt_items_available}</td></tr>
{/if}

The highlighted variable holds the number of items available, you could replace this with or without a language database txt variable, to say "In Stock" or what ever, when
Quote:
{if $product.avail gt 0}
(when available products are greater than zero), and
Quote:
{$lng.txt_no}
could be replaced with "Out of Stock" or what ever you prefer.
Quote:
{$lng.txt_no}
{/if}
{$lng.txt_items_available}
you could removed one of these language txt variables, or change $lng.txt_no in the language dB to Not and $lng.txt_items_available to in Stock

Regards,
__________________
Syddos

Nothing is impossible, We just don't know how to do it ........Yet!

Xcart 4.1.X PRO (Testing Platform: winXP Pro)
Perl 5.8.7 (win32)
WINAMP 1.6.3 (win32 server package. Includes the following)
- phpMyAdmin v2.8.03
- MySql 5.0.21
- Apache 2.0.55 (win32)
- php 5.1.4
- SQLitemanager 1.2.0
Reply With Quote