Re: forming a SKU

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 23527
interpreted = N
texte = I believe you are right!Then a curiousity question...Is there any documentation on when WebCat is Switching Thread, or can you force webcat to use 1 thread per page?/Martin >>The only real safe sku would be >> >>[date %Y%m%d][time %h%m%s][showif >>[lastrandom]=[random]][math][random]+[random][/math][/showif][showif >>[lastrandom]![random][lastrandom][/showif][ordersku][productsku][sizeSKU][shap >>eS >>KU][colorSKU] > > >I disagree. >This will not work the way you think it will ... > >You have to remember that the [lastrandom] and [random] tags are relative >to the thread they are called in, they have no connection with any other >threads. Therefore, the same [random] and [lastrandom] values could >theoretically be created at the exact same time in two or more completely >separate threads. > >The most reliable and 'practical' way to create a unique SKU value across >*all* active webcat threads is by using the [cart] tag. That's why >WebCat's internal [cart] calculation code uses date, time *AND* a special >'index' value that's never used in two different threads to generate a >guaranteed-unique [cart] value every time. > >If your goal is to create a unique SKU value that *also* has some code to >indicate size, color, etc. the best solution is to use something like this: > >[cart][size][color][etc] > >Where the size, color, etc. values are simply *appended* to the end of the >guaranteed-unique [cart] value. > >Sincerely, >Ken Grome Associated Messages, from the most recent to the oldest:

    
  1. Re: forming a SKU (Larry Hewitt 1999)
  2. Re: forming a SKU (Kenneth Grome 1999)
  3. Re: forming a SKU (Martin Bech 1999)
  4. Re: forming a SKU (Peter Ostry 1999)
  5. Re: forming a SKU (Joseph Pugh 1999)
  6. Re: forming a SKU (Martin Bech 1999)
  7. Re: forming a SKU (Kenneth Grome 1999)
  8. Re: forming a SKU (Kenneth Grome 1999)
  9. Re: forming a SKU (Jan Kinzler 1999)
  10. Re: forming a SKU (Joseph Pugh 1999)
  11. Re: forming a SKU (Martin Bech 1999)
  12. Re: forming a SKU (Joseph Pugh 1999)
  13. Re: forming a SKU (Peter Ostry 1999)
  14. Re: forming a SKU (Martin Bech 1999)
  15. Re: forming a SKU (Joseph Pugh 1999)
  16. Re: forming a SKU (Peter Ostry 1999)
  17. Re: forming a SKU (Joseph Pugh 1999)
  18. forming a SKU (Jan Kinzler 1999)
I believe you are right!Then a curiousity question...Is there any documentation on when WebCat is Switching Thread, or can you force webcat to use 1 thread per page?/Martin >>The only real safe sku would be >> >>[date %Y%m%d][time %h%m%s][showif >>[lastrandom]=[random]][math][random]+[random][/math][/showif][showif >>[lastrandom]![random][lastrandom][/showif][ordersku][productsku][sizeSKU][shap >>eS >>KU][colorSKU] > > >I disagree. >This will not work the way you think it will ... > >You have to remember that the [lastrandom] and [random] tags are relative >to the thread they are called in, they have no connection with any other >threads. Therefore, the same [random] and [lastrandom] values could >theoretically be created at the exact same time in two or more completely >separate threads. > >The most reliable and 'practical' way to create a unique SKU value across >*all* active webcat threads is by using the [cart] tag. That's why >WebCat's internal [cart] calculation code uses date, time *AND* a special >'index' value that's never used in two different threads to generate a >guaranteed-unique [cart] value every time. > >If your goal is to create a unique SKU value that *also* has some code to >indicate size, color, etc. the best solution is to use something like this: > >[cart][size][color][etc] > >Where the size, color, etc. values are simply *appended* to the end of the >guaranteed-unique [cart] value. > >Sincerely, >Ken Grome Martin Bech

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:

problems with 2 tags shakur (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997) help (2000) Hiding HTML and breaking the page (1997) iBill (2001) Kill the webcat process (2000) Help name our technology! (1997) Emailer setup (1997) cart info (1998) MasterCounter and capitalization (1997) ReturnRaw Returns (2000) Emailer (WebCat2) (1997) Large Database Options? (1999) Plugin or CGI or both (1997) [WebDNA] checking for mixed case text (2009) GuestBook example (1997) Variable Math (1998) Re:no [search] with NT (1997) [WebDNA] OT: length of an HTML form input's 'name' parameter? (2010) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)