[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
problem with remove checkbox on basket page
Hello,
I am having a problem with the little remove checkbox on the Shopping Cart
page.
The checkbox works fine in the simple demo. If I then copy the whole
checkbox and paste it elsewhere in the document (but still within the same
form that it is supposed to be under), the checkbox stops working (doesn't
remove items from cart).
This is the code for the remove checkbox (same as in simple demo):
<INPUT TYPE=checkbox NAME="[quantity-name]"
onClick="this.form.action='[process-target]',
this.form.submit()"
VALUE=0>
After putting something in the basket I looked at the page source and I see
this:
<INPUT TYPE=checkbox NAME="quantity0"
onClick="this.form.action='http://mysite.com/cgi-bin/subs/process?Jb7c2bbn;;
593',
this.form.submit()"
VALUE=0>
Note that "quantity0" thing (that is zero at the end). Shouldn't it be just
"quantity" ?
The value of quantity ([item-quantity]) in Quantity field is 1.
Does anyone know what could be the sause of this?
If I copy the checkbox code again and paste it back where it was (same
position on the page), the problem continues although the code is the same
as in the original basket page.
Thank you,
Otis