Interchange Developer Resource


[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date ][Interchange by thread ]

[ic] Interchange basket problem



Hi

I' ve encoutered a little problem with the shopping basket while
constructing the site template. When i order a product two or more times
(quantity not relevant), for each order-click a new entry in the shopping
basket gets created. I want to update the amount of the ordered product and
not to add a new item when i order the same product a second time.

I'm using the following entry on flypage.html to order a product:

######## flypage.html ########
<FORM ACTION="[process-target]" method=post target=box>
<INPUT TYPE=hidden  NAME="mv_todo" VALUE="refresh">
<INPUT TYPE=hidden  NAME=mv_order_item  VALUE="[item-code]">
Amount: <INPUT NAME=mv_order_quantity SIZE=3 VALUE="">
<INPUT TYPE=submit VALUE="Add to shopping basket">
</FORM>
###########################

To list the products in basket.html i'm using currently the following data:

####### ord/basket.html ######
[item-list]
<tr height=1%>
<td align=left><font size=-1>[item-field description]</font></td><td
align=right><font size=-1>[item-quantity]</font></td>
</tr>
[/item-list]
############################

My question is what i have to change when i want to update the amount with
the click on the "order" button.

thanx
mike

_______________________________________________
interchange-users mailing list
interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users


Search for: Match: Format: Sort by: