ShopSite Knowledgebase

Why do my shoppers sometimes get an Empty Shopping Cart message after hitting Enter on the keyboard?

Product: SC
Version: 5.x and prior
Platform: ALL

Why do some shoppers report that they have placed items in their cart, hit the Enter button on the keyboard, and returned to the cart later only to find that it is empty?

Solution ID: S05418

This can happen in IE (and possibly older versions of other browsers) when a shopper places several items in their cart, changes the quantity or a pull-down menu option for one of the products, and then hits the Enter key on their keyboard which then cleared their cart. When the cart is cleared the shoppers are sent back to a store page, possible not knowing the cart was cleared, and only discovering this fact when they go to the checkout link.

This happens because the browser thinks that since the Empty Cart button is the first Submit button encountered on the page, then it must be the default action for the Enter key, even though it is not specified as such. It is also unusual in that it only happens when there are more than one item in the cart, and when some setting in the cart (usually Quantity) has changed.

A workaround is to view the HTML source of the cart screen, copy the HTML for the Recalculate button to one line, and then copy it again and go to Preferences -> Store Text -> Shopping Cart and paste it at the end of the string that is already in the first field (which by default is "Show me my shopping cart every time I order something."). Change the image src to be a small invisible gif, which we already have one that we use for a spacer in the backoffice called screen/dotclear.gif.

So the setting would then look more like this (except all on the same line):


Show me my shopping cart every time I order something.


This basically makes it so that there is an invisible Recalculate button earlier in the page than the Empty Cart button and the problem described above will no longer occur.

This will be fixed in the version of ShopSite.

Related Articles

No related articles were found.


No attachments were found.

Visitor Comments

Article Details

Last Updated
13th of November, 2008

Would you like to...

Print this page  Print this page

Email this page  Email this page

Post a comment  Post a comment

 Subscribe me

Subscribe me  Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF

User Opinions

How would you rate this answer?

Thank you for rating this answer.