You could display the stock in product pages in a more friendlier way. For example, instead of displaying the stock quantity, it will simply display "more than 10".
To display this information, please follow these steps:
1. Open product template files (eg. tmp_product.htm & tmp_productinvent.htm).$ <span class="productinfolabel">[getlang langproductstock]</span><span class="productinfodetails">[cstock]</span><div class="cb"></div>
3. Change it into the following code:$ <span class="productinfolabel"></span><span class="productinfodetails">[formatproductcstock]</span><div class="cb"></div>
4. Save the file and open shopfileio.asp.
end select
end sub
case "FORMATPRODUCTCSTOCK"
Handle_productstock value,parsearray, parseRS
rc=0
end select
end sub
%>
8. Change it into the following code:
sub Handle_productstock (value, parsearray,parseRS)
dim cstockvalue
dim cstock
cstockvalue = parseRS("cstock")
if isnull(cstockvalue) then cstockvalue = 0
if cdbl(cstockvalue) >= 10 then
response.write "  more than 10"
else
response.write cstockvalue
end if
end sub
%>