close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Shopping cart update using return key

Thread began 3/25/2010 3:13 am by Badger | Last modified 6/07/2010 11:16 am by Badger | 2562 views | 9 replies |

Badger

Shopping cart update using return key

In the shopping cart, is there a way to update the change to a quantity using the "Return" key as well as clicking on the "update" button?

Sign in to reply to this post

anonymous

What is your payment solution? Paypal provides two ways. I'm not sure about others but they probably do also. Are you refering to a return after payment?

Sign in to reply to this post

Badger

Hi Stan. No, much simpler. When you want to change the quantity in the shopping cart you change the number and click on the "update" button on the screen and the change is made. My clients wants the same thing to happen when you press the "return" key on your keyboard as well as the "update" button on the screen. I've looked around for this obvious change (eg in the server behaviors, the forum etc) but to no avail. B

Sign in to reply to this post

Ray BorduinWebAssist

Hitting return is just like clicking the first submit button that appears in the form. This is just the way HTML works. If you want it to act as if you clicked the update cart button, then simply move the update cart button so that it is the first button in the list, currently it probably acts like you clicked the continue shopping button.

hint: you can move the update button so that it is first in the list, but still make it appear in the same position using something like:

<input type="submit" name="WA_Store_Cart_Update_100" id="WA_Store_Cart_Update_100" value="Update Cart"  alt="Update" class="primaryCompliment" style="float:right;margin-left:3px;"/>



by adding the float, I can move the update to the front but have it still appear on the page at the end.

Sign in to reply to this post
Did this help? Tips are appreciated...

Badger

Works great.

Many thanks

Sign in to reply to this post

Badger

Well the return key was updating the cart but then ......

only updates the cart in Internet Explorer when there is more than one different item. Still works in Safari, Firefox and Chrome.

<input type="submit" name="eCart1_Update_100" id="eCart1_Update_100" value="Update" alt="Update" class="eC_FormButton" style="float:right;margin-left:3px;"/>

This code is still before the checkout, continue and empty buttons code.

Any ideas?

Sign in to reply to this post

Ray BorduinWebAssist

Do you have a url where I can take a look?

Sign in to reply to this post
Did this help? Tips are appreciated...

Badger

Hi Ray

cart.php

Thanks

Sign in to reply to this post

Ray BorduinWebAssist

You could probably try changing the update cart behavior on the page to use Any form post instead of using the update button click trigger.

Another solution may be to add a hidden form element to the form. I think IE doesn't push the button automatically unless there is more than one form field on the page. This has been a problem in IE for ages and I think adding a hidden field will fix it. That is why it works with more than one item in the cart, since that means there is more than one input field. You may have to use type="text" style="display:none" instead of inputy type="hidden" but one or the other should get around the problem.

Sign in to reply to this post
Did this help? Tips are appreciated...

Badger

Adding <input name="submit" type="text" value="update" style="display:none" /> did it.

Tried the Any form post but it killed a SA redirect.

Thanks as ever

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...