Re: calculating time

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 46480
interpreted = N
texte = thanks, yes we should be sleeping, your help is getting me closer to that goal!will this code create a new cart number but keep the existing cart variables if a duplicate cart number is already written to the db.bob> From: Jesse Williams-Proudman > Reply-To: (WebCatalog Talk) > Date: Wed, 25 Dec 2002 22:57:21 -0800 > To: (WebCatalog Talk) > Subject: Re: calculating time > > On 12/25/02 8:45 PM, catalogs wrote: > >> Any ideas how I can go about verifying the cart number to the orders.db and >> if one is in existance it will convert the number without loosing the cart >> info? > > Does storebuilder have an orders database? If so then this code should > work. You'll need to modify the search, to match your database but it > should do ya. Please keep in mind that I have extra code on checkout.html > that won't let the user place an order twice but will show them their > receipt if they refresh so if you don't have that, then you need to remove > the [hideif [thisurl]^checkout.html part. > > [!] ---------- Prevent Dupe Orders ---------- [/!] > [showif [search > db=data/dailyorders.db&eqORDER_NUMBERdatarq=[cart]][numfound][/search]>0] > [hideif [url][thisurl][/url]^checkout.html] > [redirect [thisurl]?[formvariables][hideif > [url][name][/url]=cart][name]=[url][value][/url]&[/hideif][/formvariables]] > [/hideif] > [/showif] > > Merry Christmas. :) (Ya, I'm working too) :) > > > -- > > Jesse Williams-Proudman || CEO > NineWire Digital Solutions || +1.888.873.6199 > jesse@ninewire.com || http://ninewire.com > Mac Web Hosting & Colocation || Mac Nationwide Dialup > > Xserve Colocation Special, $75 / Month > http://www.ninewire.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://webdna.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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Calculating times in a different zone ... (Kenneth Grome 2003)
  2. Re: Calculating times in a different zone ... (Michael Davis 2003)
  3. Calculating times in a different zone ... (Kenneth Grome 2003)
  4. Re: calculating time (Jesse Williams-Proudman 2002)
  5. Re: calculating time (catalogs 2002)
  6. Re: calculating time (Jesse Williams-Proudman 2002)
  7. Re: calculating time (catalogs 2002)
  8. Re: calculating time (Gary Krockover 2002)
  9. Re: calculating time (catalogs 2002)
  10. Re: calculating time (Gary Krockover 2002)
  11. calculating time (catalogs 2002)
thanks, yes we should be sleeping, your help is getting me closer to that goal!will this code create a new cart number but keep the existing cart variables if a duplicate cart number is already written to the db.bob> From: Jesse Williams-Proudman > Reply-To: (WebCatalog Talk) > Date: Wed, 25 Dec 2002 22:57:21 -0800 > To: (WebCatalog Talk) > Subject: Re: calculating time > > On 12/25/02 8:45 PM, catalogs wrote: > >> Any ideas how I can go about verifying the cart number to the orders.db and >> if one is in existance it will convert the number without loosing the cart >> info? > > Does storebuilder have an orders database? If so then this code should > work. You'll need to modify the search, to match your database but it > should do ya. Please keep in mind that I have extra code on checkout.html > that won't let the user place an order twice but will show them their > receipt if they refresh so if you don't have that, then you need to remove > the [hideif [thisurl]^checkout.html part. > > [!] ---------- Prevent Dupe Orders ---------- [/!] > [showif [search > db=data/dailyorders.db&eqORDER_NUMBERdatarq=[cart]][numfound][/search]>0] > [hideif [url][thisurl][/url]^checkout.html] > [redirect [thisurl]?[formvariables][hideif > [url][name][/url]=cart][name]=[url][value][/url]&[/hideif][/formvariables]] > [/hideif] > [/showif] > > Merry Christmas. :) (Ya, I'm working too) :) > > > -- > > Jesse Williams-Proudman || CEO > NineWire Digital Solutions || +1.888.873.6199 > jesse@ninewire.com || http://ninewire.com > Mac Web Hosting & Colocation || Mac Nationwide Dialup > > Xserve Colocation Special, $75 / Month > http://www.ninewire.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://webdna.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://webdna.smithmicro.com/ catalogs

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:

Dummy Credit Card Number for debug? (1997) Help! WebCat2 bug (1997) WebCat2: Items xx to xx shown, etc. (1997) Forms Search Questions (1997) Today's suggestions (1998) How do you hide [math]stuff[/math] (1997) RAM variables (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Credit card types (1997) Help formatting search results w/ table (1997) subscribe (2002) Is this possible, WebCat2.0 and checkboxes (1997) WebCatalog Mac 2.1b3 (1997) WebCat2 Append problem (B14Macacgi) (1997) RequiredFields template (1997) [URGENT] Different Results From Math Tag Depending On OS (2006) Fields/Forms Processing (1998) Limitations on fields? Server is crashing (1997) WebDNA-Talk Digest mode broken (1997) Spontaneous Errors (2004)