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 last name and the date. Then search my orders db for other orders with that string. If found, I add 1 to the largest order number. [text show=F]OrderNum=[getchars start=1&end=1][header2][/getchars][math show=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 moving it! [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 Behalf Of William DeVaul, Connected Collector, Inc. Sent: Monday, July 15, 2002 3:02 PM To: WebCatalog Talk Subject: Condensing the CART numeric sequence Has anyone written some code to condense the cart from 15 plus digits to a shorter alphanumeric sequence (something like base 36 I guess with the letters being either all lower or all upper case)? It's getting pretty long for order numbers for customers to deal with.If not, what are some of the other ways programmers are creating shorter unique SKU's and cart numbers with the tab delimited fields supported by 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 to Web 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:

    
  1. Re: Condensing the CART numeric sequence (Brian Boegershausen 2002)
  2. Condensing the CART numeric sequence (William DeVaul, Connected Collector, Inc. 2002)
On the purchase page, I make a OrderNum with the users initial of their last name and the date. Then search my orders db for other orders with that string. If found, I add 1 to the largest order number. [text show=F]OrderNum=[getchars start=1&end=1][header2][/getchars][math show=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 moving it! [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 Behalf Of William DeVaul, Connected Collector, Inc. Sent: Monday, July 15, 2002 3:02 PM To: WebCatalog Talk Subject: Condensing the CART numeric sequence Has anyone written some code to condense the cart from 15 plus digits to a shorter alphanumeric sequence (something like base 36 I guess with the letters being either all lower or all upper case)? It's getting pretty long for order numbers for customers to deal with.If not, what are some of the other ways programmers are creating shorter unique SKU's and cart numbers with the tab delimited fields supported by 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 to Web 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)