Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Hardware>>problems with JS trying to get all quantity

problems with JS trying to get all quantity

elviscat
11-20-2004, 10:49 PM
lo guy's and dolls,

I'm having trouble with a small shop senario, which you add products to a basket, you can view the basket, with the item, the price & the quantity.

I have managed to get the quantity from one of the first product and create postage and update this with how many are in the quantity, however if someone selects another product and this is added below, I cannot work out how to get this out of what looks like and array and either add them both together and then work out the total quantity so i can work out the postage properly.

The situation with the postage is, if someone orders 1-3 cds it cost ? each if they order 4 then there is a discount and only costs ?.50. so i need to know totals.

Can somebody have a look at the code below and help me to pinpoint what i need to either write or test for to get all quantities, rather than just one.

i have attached the two pages i have been working with in a zip, the is called change.html, this is where i have added the postage script, but as i said cannot work out how to get all the quantity.

Any help would be much appreciated

Thanks

Regards

Kev :thumbsup:


 

TOP

For more info

setting a minimum size
Auto Preview of Image 
Refresh with a query s
JS Validation obsolete
Javascript Pop up func
Slide show transitions
I'm a newbie...please!
how to write coding in
Advanced Debug Info 
.js file doesn't work 

News Archive

Adding Graphic To Text
re-direct form after s
pop up window controls
Clock on homepage - He
passing a param from a
Password Procection wi
document.title in same
focus onload 
Counting Wrong from Ri
Help needed on how to 

Related stories:

Find on Page
Fso
Need help, Seeking for menu script
Setting Length of Button?
Editing Certain Areas through a message box
using one function on several, unpredictable items
I need Help

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics