Re: Cart Numbers
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 14482
interpreted = N
texte = >Ken asked What are you referring to when you say the random system?>>My message was intended to convey that I have noted a problem with>WebCatalog in that it is assigning the same Cart number to different>buyers. This creates problems with the ViewOrder template.>>On 10/31/97 WebCatalog assigned Cart # 296028824111745 to one buyer. On>11/1/97 it assigned to same Cart # to a different buyer. In both cases, I>was using a modified version of the General Store.>>I thought that Cart numbers were suppose to unique?Hi John,Newly-created [cart] values *are* unique!But you referred to the random system in your previous post, so Ithought you were using the ra (random) search prefix in some customcode on your site, in an effort to create your own random SKUvalues ... and that's what puzzled me.The fact is, creating a [cart] is not a random task at all, it donewith a hard-coded formula that's built into WebCat and creates a verypredictable sequential number based on the date, time, and otherstuff that's guaranteed NOT to create the same [cart] value overagaain.One way to give WebCat an opportunity to create a duplicate [cart]value is by setting the computer's clock back, which will make itpossible (but very unlikely) that a new user *might* create a new[cart] value that's the same as a previous one. But I don't think youcould make this happen if you tried, it's almost impossible becauseyou'd have to request a particular page at EXACTLY the right time,down to a fraction of a second.The other way to get duplicate [cart] values, of course, is to passthem to WebCat from the [referrer] page or from a typed in (orbookmarked) URL. It doesn't make any difference where the [referrer]page is located, because when WebCat sees an URL withcart=123456789 in it, it's going to set the [cart] value to123456789 on that page ... and every page linked to that page whenthose links have cart=[cart] in them ... :)Sincerely, Ken GromeWebDNA Solutionshttp://www.smithmicro.com/webdnasolutions/.
Associated Messages, from the most recent to the oldest:
>Ken asked What are you referring to when you say the random system?>>My message was intended to convey that I have noted a problem with>WebCatalog in that it is assigning the same Cart number to different>buyers. This creates problems with the ViewOrder template.>>On 10/31/97 WebCatalog assigned Cart # 296028824111745 to one buyer. On>11/1/97 it assigned to same Cart # to a different buyer. In both cases, I>was using a modified version of the General Store.>>I thought that Cart numbers were suppose to unique?Hi John,Newly-created
[cart] values *are* unique!But you referred to the random system in your previous post, so Ithought you were using the ra (random) search prefix in some customcode on your site, in an effort to create your own random SKUvalues ... and that's what puzzled me.The fact is, creating a
[cart] is not a random task at all, it donewith a hard-coded formula that's built into WebCat and creates a verypredictable sequential number based on the date, time, and otherstuff that's guaranteed NOT to create the same
[cart] value overagaain.One way to give WebCat an opportunity to create a duplicate
[cart]value is by setting the computer's clock back, which will make itpossible (but very unlikely) that a new user *might* create a new
[cart] value that's the same as a previous one. But I don't think youcould make this happen if you tried, it's almost impossible becauseyou'd have to request a particular page at EXACTLY the right time,down to a fraction of a second.The other way to get duplicate
[cart] values, of course, is to passthem to WebCat from the
[referrer] page or from a typed in (orbookmarked) URL. It doesn't make any difference where the
[referrer]page is located, because when WebCat sees an URL withcart=123456789 in it, it's going to set the
[cart] value to123456789 on that page ... and every page linked to that page whenthose links have cart=
[cart] in them ... :)Sincerely, Ken GromeWebDNA Solutionshttp://www.smithmicro.com/webdnasolutions/.
Kenneth Grome
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:
math a various prices (1997)
redirect with more than 256 characters (1999)
BBEdit and WebCatalog 2.0? (1997)
FAX orders (1996)
[format xs] freeze (1997)
RAM variables (1997)
Field lenght (1998)
Where has WebDNA shown up in your life? (2003)
Some Questions (1997)
Too many wrong answers! (1998)
UPS uber integration (2007)
foreign character sets and conversions (1998)
Exclamation point (1997)
random images (1997)
Cart# (1997)
Practice runs ? (1997)
WebDNA Programming question - Help Please (2001)
[writefile] and CR's (2001)
PIXO with cometsite ... and/or other plugins (1998)
Updating a database once per day - An example (1998)