Forums / Customization from the Admin / Auto update shopping cart

Auto update shopping cart

Views: 1,175

Results 1 to 3 of 3
20 Nov 2011, 10:39 AM
#1
jewelsnpearls avatar

jewelsnpearls

New Zenner

Join Date:
Feb 2011
Location:
Hong Kong
Posts:
29
Plugin Contributions:
1

Auto update shopping cart

Currently, the shopping cart shows the following:

If a customer changes the quantity, then they ALSO have to push the update button to get the updated price; if they forget, or press [back to shopping] or [go to checkout] the changes are lost.

What I want to achieve is that if the customer changes the quantity, that the price is updated automatically; either upon typing a number, upon hitting the [enter] key or the [tab] key.

.

Anyone can help me with this?

20 Nov 2011, 2:29 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Auto update shopping cart

You should already be able to type a new quantity and hit enter to update the quantity ...

Let's say I have 3 Products in the shopping cart with quantity 1 ...

I then change the quantities to to 2, 5, 3 and hit enter ... the product quantities should update all 3 of the products when I hit enter from any of the quantity fields ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

20 Nov 2011, 2:34 PM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,721
Plugin Contributions:
56

Re: Auto update shopping cart

jewelsnpearls:

...
What I want to achieve is that if the customer changes the quantity, that the price is updated automatically; either upon typing a number, upon hitting the [enter] key or the [tab] key.

You will have to hit enter to make it go back to the server. It doesn't update in Javascript in the user's browser; you need to do a new pageload.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.