Hello all. I'm putting together a site that deals in energy efficient products. In an effort to incent sales I'd like to create a simple calculation that dynamically works out stuff based on the content of the shopper's basket.
One of the pieces of information on all of our product records is the power rating of the item in question, I'd like to be able to do some maths with this number and the quantity in the basket and display my answers in a sidebox.
Unfortunately my skills in javascript are pretty limited. I found some free scripts which I managed to modify to do the maths I want given inputs to an html table, and with the output written back to that table, so the maths part is doable.
Thing is I'm not sure how I might a) get variables from the cart application or b) put the output numbers in a sidebox.
Can anyone help?
Cheers,
Alex
Bookmarks