Re: Trapping already submitted carts

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34723
interpreted = N
texte = There's no single tag, no...Since there are two different scenarios here, I'm guessing you're trying to trap the person who has bookmarked your site, along with the cart info. When they go to add a new order to the previously submitted cart, *poof*, the shopper gets the dreaded message...right?You'll need to write your submitted carts to an orders.db, ala[append db=orders.db]orderid=[cart][/append]Then, when a shopper enters your site, check the current cart verses your orders.db, like so:[search db=orders.db&eqorderidrq=[cart]] [founditems] [hideif [numfound]=0][redirect newcart.tpl][/hideif] [/founditems] [/search]newcart.tpl has simply in the [redirect index.tpl?command=showpage&cart=[cart]]That's it. Of course, there are tens if not hundreds of other ways to do it (like using cookies for example), but this'll give you the idea... -- Will Starck Product and Technical Support NovaDerm.com http://www.novaderm.com techs@novaderm.com Toll free support line: 800-378-1740> From: Kevin Lippert > Reply-To: (WebCatalog Talk) > Date: Fri, 14 Jul 2000 18:19:31 > To: (WebCatalog Talk) > Subject: Trapping already submitted carts > > Is there an elegant way to check whether a cart has already been > submitted (e.g., some hits refresh on a final checkout page)? As it > stands now, you get a rather plain looking page with this msg: > > Error: this shopping cart has already been submitted and is pending > approval > > Is there something like [showif [cart_not_already_submitted]]? > > Thanks, > > Kevin Lippert > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://search.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Trapping already submitted carts (Will Starck 2000)
  2. Re: Trapping already submitted carts (WebDNA Support 2000)
  3. Trapping already submitted carts (Kevin Lippert 2000)
There's no single tag, no...Since there are two different scenarios here, I'm guessing you're trying to trap the person who has bookmarked your site, along with the cart info. When they go to add a new order to the previously submitted cart, *poof*, the shopper gets the dreaded message...right?You'll need to write your submitted carts to an orders.db, ala[append db=orders.db]orderid=[cart][/append]Then, when a shopper enters your site, check the current cart verses your orders.db, like so:[search db=orders.db&eqorderidrq=[cart]] [founditems] [hideif [numfound]=0][redirect newcart.tpl][/hideif] [/founditems] [/search]newcart.tpl has simply in the [redirect index.tpl?command=showpage&cart=[cart]]That's it. Of course, there are tens if not hundreds of other ways to do it (like using cookies for example), but this'll give you the idea... -- Will Starck Product and Technical Support NovaDerm.com http://www.novaderm.com techs@novaderm.com Toll free support line: 800-378-1740> From: Kevin Lippert > Reply-To: (WebCatalog Talk) > Date: Fri, 14 Jul 2000 18:19:31 > To: (WebCatalog Talk) > Subject: Trapping already submitted carts > > Is there an elegant way to check whether a cart has already been > submitted (e.g., some hits refresh on a final checkout page)? As it > stands now, you get a rather plain looking page with this msg: > > Error: this shopping cart has already been submitted and is pending > approval > > Is there something like [showif [cart_not_already_submitted]]? > > Thanks, > > Kevin Lippert > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://search.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Will Starck

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:

frames & carts (1997) PHP Live (2005) more on prefs not being written (2000) Version f1 status (1997) WebCatalog Eating 200% of the CPU (2002) ListFiles (1998) Include Not Including (2000) Reversed words (1997) bug urgent, [protect admin ] and .max work wrong (2003) Email (1998) E-mailer application times out (1998) Order not created error (1997) Re:No Data (1997) Can't load tmpl files (1997) Price and Formula.db (2002) [WebDNA] WebDNA used in US Government work? (2013) What's New In WebCatalog 3.0.7 (2000) Subtotal Not Calculated on Invoice.html (1998) Country & Ship-to address & other fields ? (1997) [WebDNA] PayPal Integration (2017)