Re: Simple way to create unique SKU

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 11105
interpreted = N
texte = >Using sku=[DATE %y%j%H%M%S] on my template for adding items to the >catalog, I generate a unique number (such as 97132110236) that will not be >duplicated and that serves as a kind of time stamp as well. I considered >not using the year or seconds, but if something were to be added at the >same hour and minute of the same day of the year next year, or if two items >were added during the same minute, it could be a problem.You might consider using sku=[cart] as well. On any page that is not 'told' what cart to use, you may put [cart], and WebCatalog will generate a guaranteed-unique number. This is guaranteed even if two people hit the page inside the same second.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors ===== Pacific Coast Software | WebCatalog Pro, WebCommerce Solution 11770 Bernardo Plaza Court, #453 | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. Re: Simple way to create unique SKU (Grant Hulbert 1997)
  2. Re: Simple way to create unique SKU (Kenneth Grome 1997)
  3. Simple way to create unique SKU (Ed Trefzger 1997)
>Using sku=[DATE %y%j%H%M%S] on my template for adding items to the >catalog, I generate a unique number (such as 97132110236) that will not be >duplicated and that serves as a kind of time stamp as well. I considered >not using the year or seconds, but if something were to be added at the >same hour and minute of the same day of the year next year, or if two items >were added during the same minute, it could be a problem.You might consider using sku=[cart] as well. On any page that is not 'told' what cart to use, you may put [cart], and WebCatalog will generate a guaranteed-unique number. This is guaranteed even if two people hit the page inside the same second.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors ===== Pacific Coast Software | WebCatalog Pro, WebCommerce Solution 11770 Bernardo Plaza Court, #453 | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Grant Hulbert

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:

Summing a field full of numbers ... (1997) Country & Ship-to address & other fields ? (1997) Encryption of E-mail (1998) Word search (1997) alternatives for WebDNA (2004) syntax question, not in online refernce (1997) Sendmail (2000) [WebDNA] WebDNA on W2k3 (2009) Opinion: [input] should be called [output] ... (1997) RE: template security preferences????? (1998) Code for Accessing E-mail Accounts (2005) Web*3 virtual hosting Webcatalog problem (1998) error in online 3.x docs - makes it impossible to read aboutfile formats (2000) How long until WebDNA makes the list? :( (2004) [WriteFile] problems (1997) Information on Vieworders.tpl (1998) Re:2.1 pricing? (1998) FRAMES and CART tags problem??!? (1999) $Replace with [founditems] (1997) [WebDNA] [OT] Domain GolfingLadies.com (2014)