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 I thought you were using the ra (random) search prefix in some custom code on your site, in an effort to create your own random SKU values ... and that's what puzzled me.The fact is, creating a [cart] is not a random task at all, it done with a hard-coded formula that's built into WebCat and creates a very predictable sequential number based on the date, time, and other stuff that's guaranteed NOT to create the same [cart] value over agaain.One way to give WebCat an opportunity to create a duplicate [cart] value is by setting the computer's clock back, which will make it possible (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 you could make this happen if you tried, it's almost impossible because you'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 pass them to WebCat from the [referrer] page or from a typed in (or bookmarked) URL. It doesn't make any difference where the [referrer] page is located, because when WebCat sees an URL with cart=123456789 in it, it's going to set the [cart] value to 123456789 on that page ... and every page linked to that page when those links have cart=[cart] in them ... :)Sincerely, Ken Grome WebDNA Solutions http://www.smithmicro.com/webdnasolutions/. Associated Messages, from the most recent to the oldest:

    
  1. Re: WebDNA creates DUPLICATE SHOPPING CART NUMBERS ( Donovan Brooke 2004)
  2. Re: WebDNA creates DUPLICATE SHOPPING CART NUMBERS ( citizen 2004)
  3. Re: WebDNA creates DUPLICATE SHOPPING CART NUMBERS ( Bob Minor 2004)
  4. Re: WebDNA creates DUPLICATE SHOPPING CART NUMBERS ( Donovan Brooke 2004)
  5. Re: WebDNA creates DUPLICATE SHOPPING CART NUMBERS ( John Peacock 2004)
  6. Re: WebDNA creates DUPLICATE SHOPPING CART NUMBERS ( citizen 2004)
  7. Re: WebDNA creates DUPLICATE SHOPPING CART NUMBERS ( John Peacock 2004)
  8. WebDNA creates DUPLICATE SHOPPING CART NUMBERS ( citizen 2004)
  9. Re: duplicate cart numbers - New P3P Rule (Terry Nair 2002)
  10. Re: duplicate cart numbers - New P3P Rule (Michael Davis 2002)
  11. Re: duplicate cart numbers - New P3P Rule (Alain Russell 2002)
  12. Re: duplicate cart numbers - New P3P Rule (Clement Ross 2002)
  13. Re: duplicate cart numbers - New P3P Rule (Frank Nordberg 2002)
  14. Re: duplicate cart numbers - New P3P Rule (Alain Russell 2002)
  15. Re: duplicate cart numbers - New P3P Rule (Terry Nair 2002)
  16. Re: duplicate cart numbers (Michael Davis 2002)
  17. Re: duplicate cart numbers (Michael Davis 2002)
  18. Re: duplicate cart numbers (Glenn Busbin 2002)
  19. Re: duplicate cart numbers (WJ Starck 2002)
  20. Re: duplicate cart numbers (WJ Starck 2002)
  21. Re: duplicate cart numbers (Glenn Busbin 2002)
  22. Re: duplicate cart numbers (Frank Nordberg 2002)
  23. Re: duplicate cart numbers (WJ Starck 2002)
  24. Re: duplicate cart numbers (WJ Starck 2002)
  25. Re: duplicate cart numbers (Glenn Busbin 2002)
  26. Re: duplicate cart numbers (Glenn Busbin 2002)
  27. Re: duplicate cart numbers (WJ Starck 2002)
  28. Re: duplicate cart numbers (Glenn Busbin 2002)
  29. Re: To Cookie or Not to Cookie? Was: Re: duplicate cart numbers (Bob Minor 2002)
  30. To Cookie or Not to Cookie? Was: Re: duplicate cart numbers (WJ Starck 2002)
  31. Re: duplicate cart numbers (Gary Krockover 2002)
  32. Re: duplicate cart numbers (WJ Starck 2002)
  33. Re: duplicate cart numbers (Bob Minor 2002)
  34. Re: duplicate cart numbers (catalogs 2002)
  35. Re: duplicate cart numbers (Bob Minor 2002)
  36. duplicate cart numbers (catalogs 2002)
  37. Re: Almost There But? WebCat Keeps Changing Cart Numbers onMe! (Michael Davis 2002)
  38. Re: Almost There But? WebCat Keeps Changing Cart Numbers onMe! (NovaDerm Skincare Science 2002)
  39. Re: Almost There But? WebCat Keeps Changing Cart Numbers onMe! (charles kline 2002)
  40. Almost There But? WebCat Keeps Changing Cart Numbers on Me! (citizen 2002)
  41. Re: LIstFiles - filnames are cart numbers. (Bob Minor 2000)
  42. Re: LIstFiles - filnames are cart numbers. (WebDNA Support 2000)
  43. LIstFiles - filnames are cart numbers. (Bob Minor 2000)
  44. Re: Duplicate Cart Numbers (Robert Kudrle 1999)
  45. Re: Duplicate Cart Numbers (John Butler 1999)
  46. Duplicate Cart Numbers (Robert Kudrle 1999)
  47. Re: Botched cart numbers in webmerchant 2.1x email with webcat 3 (John Reginald Harris Jr 1998)
  48. Re: Botched cart numbers in webmerchant 2.1x email with webcat 3 (PCS Technical Support 1998)
  49. Botched cart numbers in webmerchant 2.1x email with webcat 3 (John Reginald Harris Jr 1998)
  50. Re: Cart Numbers (John Hill 1997)
  51. Re: Cart Numbers (Janna S. Kohen 1997)
  52. Re: Cart Numbers (Kenneth Grome 1997)
  53. Re: Cart Numbers (Grant Hulbert 1997)
  54. Cart Numbers (John Benn/PetsForum Group 1997)
  55. Re: Cart Numbers (Kenneth Grome 1997)
  56. Cart Numbers (John Benn/PetsForum Group 1997)
  57. Re: includes and cart numbers (Jay Van Vark 1997)
  58. Re: includes and cart numbers (Jay Van Vark 1997)
  59. RE: includes and cart numbers (Marc Eagle 1997)
  60. Re: includes and cart numbers (Josh Knauer 1997)
  61. Re: includes and cart numbers (Josh Knauer 1997)
  62. Re: includes and cart numbers (Grant Hulbert 1997)
  63. Re: includes and cart numbers (Kenneth Grome 1997)
  64. Re: includes and cart numbers (Kenneth Grome 1997)
  65. Re: includes and cart numbers (John Hill 1997)
  66. includes and cart numbers (Josh Knauer 1997)
>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 I thought you were using the ra (random) search prefix in some custom code on your site, in an effort to create your own random SKU values ... and that's what puzzled me.The fact is, creating a [cart] is not a random task at all, it done with a hard-coded formula that's built into WebCat and creates a very predictable sequential number based on the date, time, and other stuff that's guaranteed NOT to create the same [cart] value over agaain.One way to give WebCat an opportunity to create a duplicate [cart] value is by setting the computer's clock back, which will make it possible (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 you could make this happen if you tried, it's almost impossible because you'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 pass them to WebCat from the [referrer] page or from a typed in (or bookmarked) URL. It doesn't make any difference where the [referrer] page is located, because when WebCat sees an URL with cart=123456789 in it, it's going to set the [cart] value to 123456789 on that page ... and every page linked to that page when those links have cart=[cart] in them ... :)Sincerely, Ken Grome WebDNA Solutions http://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)