Shopping Cart

Hi,

I would like to build a shopping cart in flash Mx, can you guys give me an idea how to go about doing it?

My catalog of the product has already been done and
now my problem is to allow user to add/del the item to the shopping cart and calculate the total purchase amount.

my catalog details are all dynamically loaded from the database, The description and price are 2 different variable.

what I do now is to send the price into a dynamic text box say “price” and the description to another dynamic text area called “info” when user select the item, I am able to add them correctly but how am I going to know how much to substract from the total “price” when the item is remove from the shopping cart?
There is already no linkage between the item description and the price!!

Thanks

no one got any solution? or I did not explain myself clearly?
Let me know…

Thanks

if I were to use array to collect the data…

the data I need are the file ID, the description and the price

I am not very good with array…

Question is

  1. how do I create an array that collect the above set of data

  2. and how do I make use of the price column to do a total calculation

  3. can I simply remove a row of data from the array, so that when the user remove the item… the total will be affected accordingly

All help is greatly appreciated.

:slight_smile:

see my post… http://www.kirupaforum.com/showthread.php?s=&threadid=1187

although they are being used in a completely different way, i think we’re both needing about the same code. maybe the reply i got will help you out too.

matt

thanks…

will try it out…

=)

Would the fla for THIS help you? (uses text files, no db…)

well i don’t know if it would help gordian out, but the fla for that whole download cart deal would help me out a lot. please upload if you would be so kind.

matt

looks like what I want…could you kindly guide me on how you create the cart itself…or provide me with a sample on the cart creation…

:rambo:

Sorry, hadn’t read this sooner…
Cart is based on sourcecodes available with the book
“Flash site workshop” (Sams)
just added/changed a few things…
I’ll try and find my fla, else I’ll upload the original piece…
just gimme a day or two… :wink:

ok…thanks…