ecommerce adding up thingys

Associate
Joined
7 Sep 2009
Posts
464
Location
Manchester
Hi, I have a website that I sell customisable stuff on, I have added drop down menus that have various money values, but I'd like them to add up the total automatically (OCUK does it for there PCs).

But how do I do it? I have no idea. Or does anyone at least know what it's called so I can google it?

Thanks
 
If you mean on say this http://www.overclockers.co.uk/showproduct.php?prodid=fs-030-op page then that's done client side usign javascript.

on the page when the slect box is changed you pass a function called selectother - code can bee seen in http://www.overclockers.co.uk/js/showproduct2.js and looks a lot more complicated than it really is - it basically changes the price of the price on the webpage with an id of "prodprice".

edit: made the beginning of a simpler one ages ago (would try to to use jquery nowadays, but this example was for a uni course yonks ago) at http://www.apwi32.dsl.pipex.com/ocuk/price.html
 
Last edited:
Back
Top Bottom