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 Solution11770 Bernardo Plaza Court, #453 | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
>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 Solution11770 Bernardo Plaza Court, #453 | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/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:
Apache suffix mapping for .tpl (2000)
How to find 100 most recent additions. (1997)
customizing the color of user's pages (1997)
Execute Applescript (1997)
[WebDNA] products.db (2013)
Not really WebCat (1997)
can I get formvariables for an include? (1999)
randomness (1997)
Random sort is not random at all..... (2000)
WebDNA Solutions ... (1997)
Talk List Suggestions (1997)
XML Parse with XML WebDNA Syntax... (2004)
RedHat Linux glibc version 2.1.2 or higher required (2000)
show me your store ! (2003)
Bug or syntax error on my part? (1997)
[OT] ODBC between IIS and remote Access problem (2000)
[SearchString] usage (1997)
Not really WebCat (1997)
Error Lob.db records error message not name (1997)
All choices on IE different than Netscape (1997)