[ic] Is this a known issue/bug? Problems removing items from cart.

Steven Morrison interchange-users@lists.akopia.com
Mon Jun 4 08:07:01 2001


Hello group,

I am having some problems with my templates.  It seems I cannot remove items
from my cart if there is more than one item there.  If I attempt to remove
an item except for the first one (quantity0) it does not do so.  If I
attempt to remove the first item, I am left with two errors, one right after
the other:

64.X.XXX.XXX ktcKC7Ka:64.X.XXX.XXX - [04/June/2001:11:54:53 +0000] cartname
/cgi-bin/tlink/process.html Difficulty interacting with browser: Variable ''
not passed from form
>
64.X.XXX.XXX ktcKC7Ka:64.X.XXX.XXX - [04/June/2001:11:54:54 +0000] cartname
/cgi-bin/tlink/process.html Difficulty interacting with browser: quantities

Here is what I am posting to IC:

<FORM ACTION="[process-target]" METHOD=POST>
<INPUT TYPE=hidden NAME=mv_session_id VALUE="[data session id]">
<INPUT TYPE=hidden NAME=mv_doit      VALUE=refresh>
<INPUT TYPE=hidden NAME=mv_checkout  VALUE="ord/checkout">
<INPUT TYPE=hidden NAME=mv_orderpage VALUE=index>
<INPUT TYPE=hidden NAME=mv_nextpage  VALUE=ord/basket>

..and the remove item checkbox...

<INPUT TYPE=checkbox NAME="[quantity-name]"
			   onClick="this.form.action='[process-target]',
			   			this.form.submit()"
			   VALUE=0>

I even tried making a dummy page with nothing but:

<FORM ACTION="[process-target]" METHOD=POST>
<INPUT TYPE=hidden NAME=mv_session_id VALUE="[data session id]">
<INPUT TYPE=hidden NAME=mv_doit      VALUE=refresh>
<INPUT TYPE=hidden NAME=mv_checkout  VALUE="ord/checkout">
<INPUT TYPE=hidden NAME=mv_orderpage VALUE=index>
<INPUT TYPE=hidden NAME=mv_nextpage  VALUE=ord/basket>
<INPUT TYPE=hidden NAME="quantity0" VALUE=0>
<input type="submit" name="Work Damn You" value="OK">
</FORM>

...with exactly the same results, with every [quantity-name].

However, if I remove ALL items using this snippet of code, it works.

<FORM ACTION="[process-target]" METHOD=POST>
<INPUT TYPE=hidden NAME=mv_session_id VALUE="[data session id]">
<INPUT TYPE=hidden NAME=mv_doit      VALUE=refresh>
<INPUT TYPE=hidden NAME=mv_checkout  VALUE="ord/checkout">
<INPUT TYPE=hidden NAME=mv_orderpage VALUE=index>
<INPUT TYPE=hidden NAME=mv_nextpage  VALUE=ord/basket>
[item-list]
<input type=hidden name="[quantity-name]" value=0>
[/item-list]
</FORM>


I am adding the items initially to the cart with:

<A HREF="[area form="
                    mv_order_item=[loop-code]
                    mv_order_quantity=4
		   	  mv_todo=refresh"]">Add to cart</a>

It will remove all items with no problem.  Please give me a hand, I've been
banging my head against a wall for a while now.  A scan of the mailing list
archives shows many others with similar issues, but no clear resolution. I'm
using Interchange 4.6.1, and can duplicate this across any browser.

Thanks folks!