View Full Version : resetting cookie values at checkout

08-03-2002, 09:13 AM
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


05-24-2004, 04:41 PM
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/shrinesite/haku2049/buynow.html. Hope that helps!

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum