Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2002
    Location
    San Jose
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question resetting cookie values

    I have been working on a shopping cart with 4 simple items. On my order page, I have been able to include a "Reset" button that clears the person's order and resets the cookie values to 0.

    However, once the user gets to my checkout counter, I want them to be able to change, add, delete, or cancel the displayed order.

    I created a "Change My Order" button, but the only way I could think of to accomplish this was to link it back to the original order page with a location.href.

    I'm really like to use this button to let the user enter new values or completely cancel the order, thus resetting the imported cookie values to either new numbers or zero.

    Can anyone give me a hint as to where to start so that the user can change the order AT THE CHECKOUT COUNTER and rewrite the checkout counter page to display the new order?

    Order page: http://www.geocities.com/bevcuria/571.htm

    Checkout Counter page: http://www.geocities.com/bevcuria/checkout.htm

    Last edited by bcuria; 08-04-2002 at 01:16 AM.

  • #2
    New Coder
    Join Date
    May 2004
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Macintosh

    I did this before. Make the cells with the information in the No. column text boxes with the value set to a default of what they already ordered. Then you can dynamically multiply price and quantity when the user demands to recalculate the stuff (or you can use onblur() or onfocus() so that every time elements change focus the script recalculates). I put mine on a popup page so it looked cool. Its at: http://www.freewebtown.com/shrinesit...49/buynow.html. Hope that helps!
    Last edited by JSgamer2049; 12-02-2004 at 06:14 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •