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:

Webcatalog error, Plug-in for Webstar (1996) unable to launch acgi in WebCat (1997) Stability complaints (2002) ErrorMessages.db suggestion (1997) Looking for a Manual (1997) WebSite vs. IIS (1997) WebCatalog can't find database (1997) Re:trouble (1997) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) Just Testing (1997) GuestBook example (1997) serial number generation (1997) Weird bug, or is there something amiss? (1997) [WebDNA] OT - does anyone know how to get Fetch/BBedit to leave my last line-ending char intact? (2009) webcat2b12 CGI -- Date comparisons (1997) time + (1998) Server crash (1997) WebCatb15 Mac CGI -- [purchase] (1997) Sami (1998) Online reference (1997)