Enter key (instead of mouse click) doubles 'Add to Cart' qty

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
jasonhendee
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 42
Joined: Fri Apr 15, 2011 11:04 pm

Enter key (instead of mouse click) doubles 'Add to Cart' qty

Post by jasonhendee » Thu Jun 23, 2011 10:19 am

I have done some mods to the 'BuyProductDialog' control, so I'm curious if this is a bug I've introduced, or if it's something that anyone else can re-create.

Scenario:
- Version: 7.0.7.14481
- Only appears to happen in Google Chrome
- On a product display page, click the "Add to Cart" button; it adds whatever quantity you have in the Quantity textbox to your cart
- On that same page, put your cursor in the Quantity text box, and hit the enter key (as opposed to clicking the "Add to Cart" button); on my site, it doubles whatever value is in the Quantity textbox when added to the cart

In my testing, removing DefaultButton="AddToBasketButton" from the BuyProductPanel tag makes this problem go away.
Jason Hendee
Cables for Less

Post Reply