Re: Reloading adds items - how to prevent??

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 20886
interpreted = N
texte = >We are using a button that has a url that does command=add, and passes >an item number to add to the users cart, and have found that if the users >clicks their reload button on the itemadded.tpl page that it goes to, >it re-adds the item, so they now have TWO of that item...You can put some WebDNA into the ShoppingCart.tpl page that looks thru the existing lineitems, and if the incoming SKU matches one of those, then do a [RemoveLineItem] to take it back out.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Reloading adds items - how to prevent?? (PCS Technical Support 1998)
  2. Reloading adds items - how to prevent?? (Scott Szretter 1998)
>We are using a button that has a url that does command=add, and passes >an item number to add to the users cart, and have found that if the users >clicks their reload button on the itemadded.tpl page that it goes to, >it re-adds the item, so they now have TWO of that item...You can put some WebDNA into the ShoppingCart.tpl page that looks thru the existing lineitems, and if the incoming SKU matches one of those, then do a [removelineitem] to take it back out.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

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:

Listfiles on network with NT (2000) Country & Ship-to address & other fields ? (1997) [WebDNA] some WebDNA news (2015) Loop context to replace items (1998) Country & Ship-to address & other fields ? (1997) question: webmerchant connection (1997) [WebDNA] Error 500 with SUMM=T (2017) Add to Cart & List of Products (1997) PCS Frames-Default page is solution! (1997) Deleting Orders (1997) Using [Include] Context (1999) Date Bug (1998) Email Line Breaks [OT] (2003) [OT] Linux Vs. OSX (leopard) server (2007) carriage returns in data (1997) test don't read (1998) Help Please WebDNA 6 Secure Forms Problem (2004) Kaaaaahhhhhhhnnnnnnn! (1997) Alpha List for Catagory (1998) [SHOWIF] (1997)