Re: Cart # Starting at 1000
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 30627
interpreted = N
texte = Where would this code go? On my last page after the initial cartfile is written?- TonyAt 12:05 PM 4/19/00 -0600, you wrote:>Kenneth Grome answered that yesterday with the following>>In order to know the next>sequentially-numbered file name, you'll need to store the last one in>an include file named lastOrderName so you can use this code to set>the new file name and to update the lastOrderName value:>>[waitforfile file=Orders/[cart]]>>[math show=f]newOrderName=1+[include file=lastOrderName][/math]>>[movefile from=Orders/[cart]&to=Orders/[newOrderName]]>>[writefile file=lastOrderName][newOrderName][/writefile]>>[/waitforfile]>>> > From: Tony Frenzel
> > Reply-To: (WebCatalog Talk)> > Date: Wed, 19 Apr 2000 12:57:48> > To: (WebCatalog Talk)> > Subject: Re: Cart # Starting at 1000> >> >> >> I'll take a swing at this question... I'm guessing that the client wants a> >> _human-compatible_ invoice number. Oh sure, 37 digit numeric session > IDs are> >> a wonderful way to keep browsing sessions unique, but they make LOUSY> >> invoice numbers. Call an customer service number sometime, and tell them> >> your order was 3 0 0 6 8 34 75 6 45 ummm where was I, let me start > over 300> >> 6 8 3 4 756 4 5 87 ... Are you seeing the point yet?> >>> >> :)> >> >> > EXACTLY - Ok, let me ask you this - screw the number that the cart> > generates... Since I'm doing a writefile tag anyway after I get all the> > info my client inputs, how can I name the file it writes so that each time> > a new file is written it goes up by on in numerical value? For example,> > 1000.txt, 1001.txt, 10002.txt, etc...> >> >> > Mr. Moo> >> >> > -------------------------------------------------------------> > 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> > >>>------------------------------------------------------------->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 >-------------------------------------------------------------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
Associated Messages, from the most recent to the oldest:
Where would this code go? On my last page after the initial cartfile is written?- TonyAt 12:05 PM 4/19/00 -0600, you wrote:>Kenneth Grome answered that yesterday with the following>>In order to know the next>sequentially-numbered file name, you'll need to store the last one in>an include file named lastOrderName so you can use this code to set>the new file name and to update the lastOrderName value:>>[waitforfile file=Orders/[cart]]>>[math show=f]newOrderName=1+[include file=lastOrderName][/math]>>[movefile from=Orders/[cart]&to=Orders/[newOrderName]]>>[writefile file=lastOrderName][newOrderName][/writefile]>>[/waitforfile]>>> > From: Tony Frenzel > > Reply-To: (WebCatalog Talk)> > Date: Wed, 19 Apr 2000 12:57:48> > To: (WebCatalog Talk)> > Subject: Re: Cart # Starting at 1000> >> >> >> I'll take a swing at this question... I'm guessing that the client wants a> >> _human-compatible_ invoice number. Oh sure, 37 digit numeric session > IDs are> >> a wonderful way to keep browsing sessions unique, but they make LOUSY> >> invoice numbers. Call an customer service number sometime, and tell them> >> your order was 3 0 0 6 8 34 75 6 45 ummm where was I, let me start > over 300> >> 6 8 3 4 756 4 5 87 ... Are you seeing the point yet?> >>> >> :)> >> >> > EXACTLY - Ok, let me ask you this - screw the number that the cart> > generates... Since I'm doing a writefile tag anyway after I get all the> > info my client inputs, how can I name the file it writes so that each time> > a new file is written it goes up by on in numerical value? For example,> > 1000.txt, 1001.txt, 10002.txt, etc...> >> >> > Mr. Moo> >> >> > -------------------------------------------------------------> > 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> > >>>------------------------------------------------------------->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 >-------------------------------------------------------------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
Tony Frenzel
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:
[WAY OFF TOPIC] anybody live in Kansas? (2003)
cart info (1998)
$adminput doesn't allow [include] files (1997)
Wanted: More Math Functions (or, Can You Solve This?) (1997)
Multiple Merchant Accounts? (1997)
Nested search index (2000)
$Quit, $CloseDatabase corrections (1997)
WebCatalog for Dummies part 2 (2000)
RE: E-mailer error codes (1997)
Convert Chars Q (2000)
Trailing carriage returns (2002)
listfiles, moving files (1998)
Reserved Words (2003)
Math (1997)
[WebDNA] Sorting -- Dealing with Blanks (2008)
WebCommerce: Folder organization ? (1997)
tcp connect includes (1999)
Associative lookup style? + bit more (1997)
absolute paths for databases? (1997)
A little syntax help (1997)