Re: Cart # Starting at 1000
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 30732
interpreted = N
texte = Ok, now, because I'm slow at all of this, I'm getting confused. When you say newOrderName below is that what I want it to be named, or is that like a tag in this code were it has to be newordername? Same thing with lastordername (although I know I have to make an include file called that. Can you give me example using fictitious file names? Also, what if I have, or want .txt extensions for my file name.- Tony the slow dood Frenzel> >> >[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]> >> >> >==>> >Actually it's very easy, you just rename the cart file after it is> >placed into the orders folder. Your webdna code goes at the bottom of> >the thankyou.tpl page. 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:-------------------------------------------------------------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:
Ok, now, because I'm slow at all of this, I'm getting confused. When you say newOrderName below is that what I want it to be named, or is that like a tag in this code were it has to be newordername? Same thing with lastordername (although I know I have to make an include file called that. Can you give me example using fictitious file names? Also, what if I have, or want .txt extensions for my file name.- Tony the slow dood Frenzel> >> >[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]> >> >> >==>> >Actually it's very easy, you just rename the cart file after it is> >placed into the orders folder. Your webdna code goes at the bottom of> >the thankyou.tpl page. 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:-------------------------------------------------------------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:
executive server side java within webDNA (1997)
Re:Change WebDNA-Talk Mail due to no digest for 1wk (1997)
[CART] inside a [LOOP] (1997)
lineitems context in sendmail context (1998)
hmmm (2006)
Random sort is not random at all..... (2000)
international time (1997)
Adding a product from another site (1997)
show all problem (1997)
tag request (1999)
[WriteFile] problems (1997)
E-mailer application times out (1998)
Practice runs ? (1997)
Using EIMS instead of Emailer (1998)
Preserving file creation dates on [copyfile] (2007)
Multiple Pulldowns (1997)
[INCLUDE] Limitations (1998)
Separate SSL Server (1997)
[WebDNA] showif/sendmail question (2008)
[WebDNA] RE: webdna right click protect (2009)