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?
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?
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?
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
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.
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?
Do you have a url where I can take a look?
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.
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
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.