[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Creating a search page need some help and pointers re-calculating costs
Hi,
I have created a search page that does the following: (modification of the
results page)
It displays a product picture and description then it searches another
database and does a match of products that are associated with the main
product. In this example it is a pager and the options are 3 months
service, 6 months service and 12 months service. Other optional services
include more storage, 1800 number attached, etc. Each pager has a set price
and then the user must choose the service. I achieve this by using Radio
buttons, for options and check boxes for optional service.
When the user press "Buy" the correct skus gets submit to the cart.
However, what I would like to do is have user either click on re-calculate
button or the forum to auto-adjust the price. Can any one point me in the
right direction? Links, samples, anything. :-) You either send the
information to the list or to me privately.
Here is the code that I have modified:
<table width="600" border="1" cellspacing="0" cellpadding="0"
bordercolor="0099ff">
<tr bgcolor="ffffff" valign="middle">
<td align=center height="5">
<div align="left">
<table border="0" cellspacing="0" cellpadding="3" bordercolor="#FFFFFF"
align="center" width="100%">
<INPUT TYPE=hidden NAME="mv_order_item" VALUE="[item-code]">
<tr>
<td valign="top" width="180"><img border="0" src="[item-field image]"
align="left"><P>
<td valign="top" width="280">[item-field comment]</p>
</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="3" bordercolor="#FFFFFF"
align="center" width="100%">
<tr>
Please Choose the Service you wish:<br>
<td width="500">
[loop search="
fi=pager
st=db
co=1
sf=dil
se=A
op=eq
nu=0
sf=productsku
se=[item-code]
op=eq
nu=0
ml=50
"]
<input align="left" type="radio" type=hidden name="mv_order_item"
value="[loop-field sku]" checked> [loop-field comment] @ $[loop-field price]
<INPUT NAME="mv_order_item" type=hidden><BR>
[/loop]
<P>Add optional features to you your pager:<br>
[loop search="
fi=pager
st=db
co=1
sf=dil
se=B
op=eq
nu=0
sf=productsku
se=[item-code]
op=eq
nu=0
ml=50
"]
<input align="left" type="checkbox" type=hidden name="mv_order_item"
value="[loop-field sku]">
[loop-field comment] <BR>
<INPUT NAME="mv_order_item" type=hidden >
[/loop]
<P>
</td>
<td width="100">
<font __FFACE__ size="2"><B>[item-price]<B></font>
<input type=hidden name=mv_order_quantity size=2 value="1">
<input type=hidden name="mv_doit" value="refresh">
<input type=submit name="mv_junk" value="Order These Items">
</form>
****
ttyl,
Allen Armstrong
_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users