Re: Condensing the CART numeric sequence
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 41595
interpreted = N
texte = On the purchase page, I make a OrderNum with the users initial of their lastname and the date. Then search my orders db for other orders with thatstring. If found, I add 1 to the largest order number.[text show=F]OrderNum=[getchars start=1&end=1][header2][/getchars][mathshow=T]{[date]}[/math][search for others...][/text]Then take that number and:[movefile from=shoppingcarts/[cart]&to=orders/[OrderNum]][deletefile file=[shoppingcart/[cart]] incase it copies it instead of movingit![redirect thankyou.tpl?ordernum=[OrderNum]]Forward them to a thank you page with just the OrderNum varaible.This way a new [cart] is made on the thank you page and if they shop again(doesnt happen often) they do not have to worry about their old cart number.On the thank youpage,[orderfile file=orders/[OrderNum]]Now your order numbers are small managable and sortable by last name.-----Original Message-----From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On BehalfOf William DeVaul, Connected Collector, Inc.Sent: Monday, July 15, 2002 3:02 PMTo: WebCatalog TalkSubject: Condensing the CART numeric sequenceHas anyone written some code to condense the cart from 15 plus digitsto a shorter alphanumeric sequence (something like base 36 I guess withthe letters being either all lower or all upper case)? It's gettingpretty long for order numbers for customers to deal with.If not, what are some of the other ways programmers are creating shorterunique SKU's and cart numbers with the tab delimited fields supportedby WebCatalog?Thanks,Bill-------------------------------------------------------------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 toWeb 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:
On the purchase page, I make a OrderNum with the users initial of their lastname and the date. Then search my orders db for other orders with thatstring. If found, I add 1 to the largest order number.[text show=F]OrderNum=[getchars start=1&end=1][header2][/getchars][mathshow=T]{[date]}[/math][search for others...][/text]Then take that number and:[movefile from=shoppingcarts/[cart]&to=orders/[OrderNum]][deletefile file=[shoppingcart/[cart]] incase it copies it instead of movingit![redirect thankyou.tpl?ordernum=[OrderNum]]Forward them to a thank you page with just the OrderNum varaible.This way a new [cart] is made on the thank you page and if they shop again(doesnt happen often) they do not have to worry about their old cart number.On the thank youpage,[orderfile file=orders/[OrderNum]]Now your order numbers are small managable and sortable by last name.-----Original Message-----From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On BehalfOf William DeVaul, Connected Collector, Inc.Sent: Monday, July 15, 2002 3:02 PMTo: WebCatalog TalkSubject: Condensing the CART numeric sequenceHas anyone written some code to condense the cart from 15 plus digitsto a shorter alphanumeric sequence (something like base 36 I guess withthe letters being either all lower or all upper case)? It's gettingpretty long for order numbers for customers to deal with.If not, what are some of the other ways programmers are creating shorterunique SKU's and cart numbers with the tab delimited fields supportedby WebCatalog?Thanks,Bill-------------------------------------------------------------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 toWeb 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/
Brian Boegershausen
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:
Anyone have an invoicing system? (1999)
WC2b15 - [HTMLx]...[/HTMLx] problems (1997)
Bulletin Board.... (2000)
WebCat2: Items xx to xx shown, etc. (1997)
cybercash (1997)
system crashes, event log (1997)
WC2f3 (1997)
WebCat2b12 - nesting [tags] (1997)
Sort Order on a page search (1997)
File Upload, Browser Timeout (2003)
Security Hole - NetCloak Update (1998)
WebCatalog sales (1997)
Initiating NewCart (1997)
sendmail and accented characters (1998)
tpl pages in dreamweaver (2000)
[WebDNA] Append speed limits (2008)
[Announce] Newest Commerce Site based on WebCatalog (1997)
Using [Showif] tag. Mac (1997)
String manipulation in Webcatalog (2001)
WebCat2b13MacPlugIn - [shownext method=post] ??? (1997)