[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
RE: [mv] problem with remove checkbox on basket page
More about this problem - I put the same remove checkbox in two places on
the basket.html page (the original spot plus another one).
...
<INPUT TYPE=checkbox NAME="quantity0"
onClick="this.form.action='http://mysite.com/cgi-bin/subs/processJb7c2bbn;;6
30',
this.form.submit()" VALUE=0>
...
<INPUT TYPE="text" NAME=quantity0 VALUE="1" SIZE=1 MAXLENGTH="1">
...
<INPUT TYPE=checkbox NAME="quantity0"
onClick="this.form.action='http://mysite.com/cgi-bin/subs/process?Jb7c2bbn;;
632',
this.form.submit()" VALUE=0>
...
The first "quantity0" checkbox works, the second one does not.
Ooooh, just figured it out.
The problem is the "quantity0" text (not checkbox) field. I guess the CGI
takes takes the value of first quantity0 param (which is first checkbox), so
putting the checkbox after the quantity0 text field doesn't have any effect
on the CGI.
This limits the layout a bit, but I guess asking people to enter 0 (zero)
for the quantity if they want to remove the item from their shopping cart is
common?
Yes/No?
Thanks,
Otis
> 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.