[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Problems with stacking mv_order_item
I'm stumped guys. I've done this before with IC 4.6.5 without *ANY*
problems. I've just installed IC 4.8 on a brand new system. I've searched
the docs and the mailing list, and I haven't been able to find a solution.
Here's what I'm trying to do - the catalog only has 8 items in it. So I
want a single page where the end user can check a box next to each item they
want to order, enter a quantity for each item they want to order (except for
3 that are always a quantity of 1), click a single button, and order all the
items.
I'm getting very wierd results - depending on the combinations of what I
order, I either get only sku 1, or multiple's. I'm stumped. Anybody got
any clues? Here's the code that I'm using. The onclick calls is a little
bit of javascript that makes sure there aren't any invalid combinations, and
all it does it pop an alert box, and uncheck boxes.
TIA,
Dave
<FORM NAME=orderform ACTION="[process]" METHOD=POST>
<INPUT TYPE=hidden NAME="mv_todo" VALUE="refresh">
<INPUT TYPE=hidden NAME="mv_separate_items" VALUE="1">
<input type=hidden name="mv_session_id" value="[data session id]">
<INPUT TYPE=hidden NAME="mv_click" VALUE="munge_quantity">
<table border="0" width="80%">
<tr><td colspan="2"><img src="__IMAGE_DIR__/memberships.gif"
alt="Memberships"></td></tr>
[loop 1 2 3]
<tr>
<td><input type="checkbox" name="mv_order_item" value="[loop-code]"
onclick="check_req();">
<strong>[loop-description]</strong></td><td align="right">Price:
[loop-price]</td>
</tr>
<tr>
<td colspan="2">[loop-field comment]</td>
</tr>
<tr>
<td align="right" colspan="2">How many would you like?
<input size="3" name="mv_order_quantity" value="0"></td>
</tr>
<tr>
<td colspan="2"><br></td>
</tr>
[/loop]
<tr>
<td colspan="2"><img src="__IMAGE_DIR__/options.gif" alt="Membership
Options"></td>
</tr>
[loop 4]
<tr>
<td><input type="checkbox" name="mv_order_item" value="[loop-code]"
onclick="check_req();">
<strong>[loop-description]</strong></td><td align="right">Price:
[loop-price]</td>
</tr>
<tr>
<td colspan="2">[loop-field comment]</td>
</tr>
<tr>
<td align="right" colspan="2">How many would you like?
<input size="3" name="mv_order_quantity" value="0"></td>
</tr>
<tr>
<td colspan="2"><br></td>
</tr>
[/loop]
[loop 5]
<tr>
<td colspan="2"><input type="checkbox" name="mv_order_item"
value="[loop-code]" onclick="check_req();">
<strong>[loop-description]</strong></td>
</tr>
<tr>
<td colspan="2">[loop-field comment]</td>
</tr>
<tr>
<td align="right" colspan="2">How much would you like to donate?
<input size="3" name="mv_order_quantity" value="0"></td>
</tr>
<tr>
<td colspan="2"><br></td>
</tr>
[/loop]
<tr><td colspan="2"><img src="__IMAGE_DIR__/publications.gif"
alt="Publications"></td></tr>
[loop 6 7 8]
<tr>
<td><input type="checkbox" name="mv_order_item" value="[loop-code]"
onclick="check_req();"><input type="hidden" name="mv_order_quantity"
value="1">
<strong>[loop-description]</strong></td><td align="right">Price:
[loop-price]</td>
</tr>
<tr>
<td colspan="2">[loop-field comment]</td>
</tr>
<tr>
<td colspan="2"><br><br></td>
</tr>
[/loop]
<tr>
<td colspan="2" align="center"><input type="image"
src="__IMAGE_DIR__/next.gif" border="0" value="Next ->"></td>
</tr>
</table>
</form>