simora
02 Feb 2007, 03:00 AM
Hi:
Need help with sample code to set pricing on Order form based on quantity, then, write out the unit price that is actually given. Here's my sample bit of code. Cant get a workable funtion to make 'getHVUnitPrice() work.
<P><font color=""#FFA0CC" font size="2" face="Verdana">
Here is the break down;<BR>
<P>
0-99: CANT TAKE YOUR ORDER!<br>
100-499: Per Unit PRICE IS $4.25 <br>
500-999: Per Unit PRICE IS $3.25 <br>
1000-4999: Per Unit PRICE IS $1.25 <br> </font>
<P><P>
<B> GOT IT ? </B> <p><p>
<table>
<td width="275" height="20"><b>
<span style="font-family: Verdana">
<font size="1">Stuff For Sale</font></span></b>
</td>
<td align="center" width="90" height="20"><b>
<span style="font-family: Verdana"><font size="1">
<!-- The Unit Price goes here. Need document write Javascript to write out
"Stuff For Sale" && Unit $price here. --->
</font></span></b></td>
<td align="center" width="90" height="20"><font size="1" face="Verdana">
<input type="Text" name="HVqty" size="4" value=0 tabindex="1" onchange='getHVUnitPrice()'>
</font></td>
<td width="124" align="center" height="20">
<font size="1" face="Verdana">$
<input class="cur" type="Text" name="HVtotal" size="9" value=0 readonly="true" onfocus="this.blur()">
</font></td>
</tr>
</table>
Need help with sample code to set pricing on Order form based on quantity, then, write out the unit price that is actually given. Here's my sample bit of code. Cant get a workable funtion to make 'getHVUnitPrice() work.
<P><font color=""#FFA0CC" font size="2" face="Verdana">
Here is the break down;<BR>
<P>
0-99: CANT TAKE YOUR ORDER!<br>
100-499: Per Unit PRICE IS $4.25 <br>
500-999: Per Unit PRICE IS $3.25 <br>
1000-4999: Per Unit PRICE IS $1.25 <br> </font>
<P><P>
<B> GOT IT ? </B> <p><p>
<table>
<td width="275" height="20"><b>
<span style="font-family: Verdana">
<font size="1">Stuff For Sale</font></span></b>
</td>
<td align="center" width="90" height="20"><b>
<span style="font-family: Verdana"><font size="1">
<!-- The Unit Price goes here. Need document write Javascript to write out
"Stuff For Sale" && Unit $price here. --->
</font></span></b></td>
<td align="center" width="90" height="20"><font size="1" face="Verdana">
<input type="Text" name="HVqty" size="4" value=0 tabindex="1" onchange='getHVUnitPrice()'>
</font></td>
<td width="124" align="center" height="20">
<font size="1" face="Verdana">$
<input class="cur" type="Text" name="HVtotal" size="9" value=0 readonly="true" onfocus="this.blur()">
</font></td>
</tr>
</table>