MiniVend Akopia Services

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

Quantity Boxes? Help...



Is it possible to make a page that allows you to enter quantities for
multiple items and add them all at once?

For example, here is one I did using Selena Sol's WebStore:
http://www2.acadia.net/cgi-bin/Worcester_Wreath/web_store.cgi?product=ring

Note that you can change multiple quantities, then press "Add to Cart" to
add all of them.

Does anyone have any example code of how this would work in MiniVend?

I came up with this code, which works, but has multiple "submit" buttons.
I want just one at the bottom of the list.  

<div align=center>
<table>
<tr>
	<td><B>Item</B></td>
	<td><B>Quantity</b></td>
	<td>&nbsp;</td>
</tr>
[tag each products]
	<FORM ACTION="[process-target]" METHOD=POST>
		<tr>
			<td>[loop-field title]</td>
			<td><INPUT SIZE=3 NAME=mv_order_quantity VALUE="1"></td>
			<td>
				<INPUT TYPE=SUBMIT VALUE="[L]Add to cart[/L]">
				<INPUT TYPE=hidden NAME=mv_todo VALUE=refresh>
				<INPUT TYPE=hidden NAME=mv_order_item VALUE="[loop-code]">
				<INPUT TYPE=hidden NAME=mv_separate_items VALUE="1">
			</td>
		</tr>
	</form>
[/tag]
</table>
</div>

+-------------------------+
| Tev Kaber, Web Designer |
|       AcadiaNet         |
|  http://www.acadia.net  |
+-------------------------+


Search for: Match: Format: Sort by: