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:
WebCat2 Append problem (B14Macacgi) (1997)
Further tests with the infamous shipCost (1997)
WebCatalog and Filemaker (1996)
[ListFiles] from a remote host (2003)
Serving images from databases (1998)
ListFiles Bug (1998)
includes and cart numbers (1997)
WebCat2_Mac RETURNs in .db (1997)
about this server and links to who (1997)
WebDNA Server Not Running (2005)
Secure Server (1997)
Re[2]: setlineitem quantity to zero? (2000)
Authenticating users without dialog box (1997)
Replace context problem ... (1997)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
b12 cannot limit records returned and more. (1997)
Secure Web Server (1999)
Snake Bites (1997)
[OT] Death Clock (2003)
Another Large Database Questions (1997)