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:
|
|
|
|
|