[ic] Problems with stacking mv_order_item

D Zhang - msi interchange-users@interchange.redhat.com
Sat Feb 16 21:40:00 2002


Something in your form is not that understandable to me. Why did you use
TYPE=hidden  NAME="mv_click"
but not type=submit

I don't see input type=submit in your form.

Two documents may be helpful:

http://interchange.redhat.com/cgi-bin/ic/docfly.html?mv_arg=ictemplates10.03
(for One-click Multiple Variables
you may need to set a scratch variable first. Also, in the document example,
the input type of mv_click is submit rather than hidden)


http://interchange.redhat.com/cgi-bin/ic/docfly.html?mv_arg=ictemplates10.07
address the issue of Stacking Variables on the Form, with examples.

David
mtspring.com


type=
----- Original Message -----
From: "Dave Weiner" <davew-ic@webmast.com>
To: <interchange-users@interchange.redhat.com>
Sent: Saturday, February 16, 2002 5:32 PM
Subject: [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 -&gt;"></td>
> </tr>
> </table>
> </form>
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users
>
>