RE: Purchased cart being overwritten

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 13193
interpreted = N
texte = Rob ->On a store I am just completing, when the customer clicks purchase after >entering his credit card info a thankyou.tmpl page is returned and the cart >file is transferred to the Orders folder. A context on the top of the >thankyou.tmpl logs the order into an orders database from which the order >can then be managed. >After performing a purchase, I backed up in my browser, both IE and >Netscape to a shopping page. Admittedly my cart was empty but the same cart >number was in the url. I then continued shopping, and another cart file was >generated with the same number as the previous one (now residing in the >Orders folder). I then shopped around and concluded my purchase and this >new cart was then transferred to the orders folder and overwrote the >earlier one. This is a serious problem which could cause a serious loss if >someone did this. Can anyone point me to a solution for this?If you are worried about people backing up this far and reordering, you can just use some [showif] checks to present them with a message that this cart has already been submitted, and give them a $newcart link instead of allowing them to shop with that cart again. You could either use [showif] in conjunction with [listfiles] to check for the existence of that cart in the Orders folder, or, more conveniently (since you already have the orders database set up) you can do a [lookup] in your orders database to see if that cart number has already been ordered.Alternatively, you could make all links between pages form buttons using METHOD=POST; this wouldn't prevent them from backing up and using the same cart, but it would make it more difficult.I hope this helps,Marc Eagle StarNine Technologies http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. RE: Purchased cart being overwritten (Rob Schmidt 1997)
  2. Re: Purchased cart being overwritten - still !?? (Grant Hulbert 1997)
  3. Re: Purchased cart being overwritten - still !?? (Kenneth Grome 1997)
  4. Re: Purchased cart being overwritten - still !?? (Grant Hulbert 1997)
  5. RE: Purchased cart being overwritten - still !?? (Marc Eagle 1997)
  6. RE: Purchased cart being overwritten (Marc Eagle 1997)
Rob ->On a store I am just completing, when the customer clicks purchase after >entering his credit card info a thankyou.tmpl page is returned and the cart >file is transferred to the Orders folder. A context on the top of the >thankyou.tmpl logs the order into an orders database from which the order >can then be managed. >After performing a purchase, I backed up in my browser, both IE and >Netscape to a shopping page. Admittedly my cart was empty but the same cart >number was in the url. I then continued shopping, and another cart file was >generated with the same number as the previous one (now residing in the >Orders folder). I then shopped around and concluded my purchase and this >new cart was then transferred to the orders folder and overwrote the >earlier one. This is a serious problem which could cause a serious loss if >someone did this. Can anyone point me to a solution for this?If you are worried about people backing up this far and reordering, you can just use some [showif] checks to present them with a message that this cart has already been submitted, and give them a $newcart link instead of allowing them to shop with that cart again. You could either use [showif] in conjunction with [listfiles] to check for the existence of that cart in the Orders folder, or, more conveniently (since you already have the orders database set up) you can do a [lookup] in your orders database to see if that cart number has already been ordered.Alternatively, you could make all links between pages form buttons using METHOD=POST; this wouldn't prevent them from backing up and using the same cart, but it would make it more difficult.I hope this helps,Marc Eagle StarNine Technologies http://www.smithmicro.com/ Marc Eagle

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

[WebDNA] Help with iTools 9/WebDNA setup MacTel (2009) How to include weather (2000) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) RequiredFields notes ... (1997) reading a email (2000) New commands in Final candidate (1997) Server Load (2000) [math] variable question (1997) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) off topic - dna snipets (1997) [OT] Quick Java Question (2007) ShowNext and random sort (1998) WebCat2b15MacPlugin - showing [math] (1997) Complex replace Q-not for the timid!! (2000) A little help on e-mail (HELP!!! :-) ) (1998) Web Catalog 2 demo (1997) [WebDNA] Dynamic vertical columns (2008) checking for [ and ] in form fields ... (1997) [OT] Appropriate Signature??? (2003) show if date < expiry date (small corrections) (2002)