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:
using showpage and showcart commands (1996)
Passing Cart variable to subdirectory files? (1997)
Nested tags count question (1997)
HTML encoding in URLs (1997)
What's a domain? (2003)
[WebDNA] Has anyone used 'bootstrap' as their base to create a (2016)
Multiple cart additions (1997)
Search design (1997)
Shopping problems with 2.1b3 acgi (1997)
WebCatalog for Postcards ? (1997)
Max Record length restated as maybe bug (1997)
Customer login feature (2004)
Problems with shopping cart (1997)
Using Plug-In while running 1.6.1 (1997)
[ot] html question (2000)
WebMerchant & Online CC Auths (1999)
I'm new be kind (1997)
[WebDNA] EMailFolder/ (2016)
Potential Conflicts? (1997)
[FoundItems] solved - thanks (1997)