Multipage combobox calculations
Last Post 07-17-2008 01:23 PM by Logan Crisafulli. 1 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages
Logan CrisafulliUser is Offline
new to the springs
new to the springs
Posts:4
Avatar

--
07-17-2008 11:19 AM

    I really need some help here. What I am trying to do is set up a multipage order form that takes items from the combo boxes, and adds the price into a total box on the last form. The first form lets the user select the products and shipping. The second page is for user info such as name and address. The third page is a order review that displays the selected option in read only boxes and shows the total. THe problem Im having is that I cannot figure out how to set specific options prices, I assume you can do it somehow with a JS variable but I just cannot figure out how to do it.

    I have these forms set up on betasprings at these URLS.

    Form1: http://www.betasprings.com/Dynamic-...fault.aspx

    Form2: http://www.betasprings.com/Dynamic-...fault.aspx

    Form3: http://www.betasprings.com/Dynamic-...fault.aspx

     

     

    Logan CrisafulliUser is Offline
    new to the springs
    new to the springs
    Posts:4
    Avatar

    --
    07-17-2008 01:23 PM

    would a custom JS like this work, Im having trouble with getting object form the dynamic form I dont know the syntax.

    function calculatecombobox()
    {
    var mediaprice;
    var dfprice;
    var insertprice;
    var packagingprice;
    var quantity;
    var orderprice;
    var shippingprice;
    var totalprice;

    if ($(media)=='CD ($0.20)') {
    mediaprice = .20;
    }else {
    mediaprice = .40;
    }

    if ($(discface =='None'))
    {
    dfprice = 0;
    }
    else
    {
    dfprice = .10;
    }

    if ($(Caseinsert == '2 page ($.50ea)'))
    {
    insertprice = .50;
    }
    else if ($(Caseinsert == '4 page ($.70ea)'))
    {
    insertprice = .70;
    }
    else if ($(Caseinsert == '6 page ($1.00ea)'))
    {
    insertprice = 1;
    }
    else if ($(Caseinsert == '8 page ($1.20ea)'))
    {
    insertprice = 1.20;
    }
    else if ($(Caseinsert == '10 page ($1.50ea)'))
    {
    insertprice = 1.50;
    }

    if ($(Packagaing) == 'Std CD case (black) ($.50ea)')
    {
    packagingprice = .50;
    }
    else if ($(Packagaing) == 'Std CD case (clear) ($.50ea)')
    {
    packagingprice = .50;
    }
    else if ($(Packagaing) == 'Std DVD case (black) ($1.00ea)')
    {
    packagingprice = 1;
    }
    else if ($(Packagaing) == 'Slim DVD case (clear) ($1.00ea)')
    {
    packagingprice = 1;
    }
    else if ($(Packagaing) == 'Slim DVD case (clear) ($1.00ea)')
    {
    packagingprice = 1;
    }
    else if ($(Packaging) =='Paper envelope (window) ($.20ea)')
    {
    packagingprice = .20;
    }
    else if ($(Packaging) ==Paper envelope (without window) ($.10ea)')
    {
    packagingprice = .10;
    }
    else if ($(Packaging) =='None')
    {
    packagingprice = 0;
    }

    $(total) = mediaprice + dfprice + insertprice + packagingprice;

    }



    ---
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi