[checkout] Hitting "return" empties the cart
picdude
Joined: 2006-06-13
Posts: 176 |
![]() |
Gallery URL = http://www.photosbybailini.com/g2/main.php Hello, While tweaking my checkout for the upcoming season, I noticed that after adding an item to the cart and selecting a product, if someone (a customer) hits "return" after entering a quantity, it empties the cart. Is there a way of changing this so that hitting "return" updates the cart instead of emptying it? My gut is telling me that this is simply due to the position of the buttons at the bottom. If "save changes" was before "empty cart", might it work? Can I swap the placement of these buttons...?? Thanks! |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
so is the empty/reset cart button highlighted by default? -s |
|
picdude
Joined: 2006-06-13
Posts: 176 |
![]() |
That's what I'm guessing, suprsidr, but it's not obvious by looking at it. |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
It would be best to set an onChange event on the select product action to highlight the save changes button. -s |
|
picdude
Joined: 2006-06-13
Posts: 176 |
![]() |
Enjoy your vacation! Thanks! |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Correct me if im wrong suprsidr, but I thought that the first submit button in the form is the default "enter" button? picdude try: <tr> <td align="right"> <input type="submit" class="inputTypeSubmit checkoutButton checkoutShoppingButton1" name="{g->formVar var="form[action][continueshopping]"}" value="{g->text text="Continue Shopping"}"/> </td> </tr> to just below Enjoy the sun and sand. Dave |
|
picdude
Joined: 2006-06-13
Posts: 176 |
![]() |
Success!! I found the "button" section in that template you directed me to, floridave, and just moved the "save changes" line to the top. {* ----------- Buttons ----------- *} Easy as pie once I knew which template to modify. Couldn't find it on my own... Thanks floridave and suprsidr for your help!! |
|