Re: duplicate cart numbers
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45358
interpreted = N
texte = I do it a little bit different FWIW.I set a session cookie called SessionID that's equal to cart. At the end of a session, it's value is set to expired, or is expired when the user closes the browser.Then at the top of *every* page on the site I have an include at the top of every web page called checkcookies.inc[showif [GetCookie SessionID]=expired] [SetCookie name=SessionID&value=[cart]&path=/&domain=.novaderm.com][/showif][showif [GetCookie SessionID]=] [SetCookie name=SessionID&value=[cart]&path=/&domain=.novaderm.com][/showif][showif [GetCookie SessionID]=] [redirect index.html][/showif][showif [GetCookie SessionID]=expired] [redirect index.html][/showif]I should say that I don't pass [cart] from page to page, but rely on the session cookie for this. My site is also a command free zone.No duplicate carts here, as far as I can tell. If the cookie has a cart number, then it's still an ongoing session. If it doesn't then I'm setting a new cart number.-WillThen at the top of *every* page on the site I have a bit of code at the top of every web page called checkcookies.incOn Sunday, November 17, 2002, at 09:56 AM, Bob Minor wrote:> Actually all generated cart numbers are unique, problems only arise > when people follow bookmarks with the cart stored in them. I don't > like how webdna handles such occurrences and so I wrote the routine to > take care of those situations so I could avoid the ugly errors that > webdna produces by default. The cart number is a machination of the > date and time along with other factors and so is unique by default. If > you still want the other code bits I can share, but its fairly simple > to check and use your own database names, filenames etc.>> ie:> start final check out> test for duplicate ip> if duplicate> then got to cartcleaner.tpl?file=[cart]> on the cartcleaner page copy data from [file] to [cart]> redirect to invoice.tpl?cart=[cart]> else> redirect to invoice.tpl?cart=[cart]> end if>>> On Sunday, November 17, 2002, at 01:45 AM, catalogs wrote:>>> are you checking then if there is a duplicate, it randomizes again and>> double checks, then loops until clear.>>>> can I get the code from you? It sound like you have taken care of >> what I am>> looking for. Why do you think web cat store builder have not taken >> care of>> these issues, there is so many things that the store could use but >> does not>> address?> Robert Minor> Director of Internet Services> ------------------------------------------------------------> Cybermill Communications> http://www.cybermill.com http://www.merchantmaker.com>> Providing Ecommerce and interactive website development and> hosting services on Macintosh, Windows NT, Unix, and AS/400.>> All your websites are belong to us!>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://search.smithmicro.com/>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
I do it a little bit different FWIW.I set a session cookie called SessionID that's equal to cart. At the end of a session, it's value is set to expired, or is expired when the user closes the browser.Then at the top of *every* page on the site I have an include at the top of every web page called checkcookies.inc[showif [GetCookie SessionID]=expired] [SetCookie name=SessionID&value=[cart]&path=/&domain=.novaderm.com][/showif][showif [GetCookie SessionID]=] [SetCookie name=SessionID&value=[cart]&path=/&domain=.novaderm.com][/showif][showif [GetCookie SessionID]=] [redirect index.html][/showif][showif [GetCookie SessionID]=expired] [redirect index.html][/showif]I should say that I don't pass [cart] from page to page, but rely on the session cookie for this. My site is also a command free zone.No duplicate carts here, as far as I can tell. If the cookie has a cart number, then it's still an ongoing session. If it doesn't then I'm setting a new cart number.-WillThen at the top of *every* page on the site I have a bit of code at the top of every web page called checkcookies.incOn Sunday, November 17, 2002, at 09:56 AM, Bob Minor wrote:> Actually all generated cart numbers are unique, problems only arise > when people follow bookmarks with the cart stored in them. I don't > like how webdna handles such occurrences and so I wrote the routine to > take care of those situations so I could avoid the ugly errors that > webdna produces by default. The cart number is a machination of the > date and time along with other factors and so is unique by default. If > you still want the other code bits I can share, but its fairly simple > to check and use your own database names, filenames etc.>> ie:> start final check out> test for duplicate ip> if duplicate> then got to cartcleaner.tpl?file=[cart]> on the cartcleaner page copy data from [file] to [cart]> redirect to invoice.tpl?cart=[cart]> else> redirect to invoice.tpl?cart=[cart]> end if>>> On Sunday, November 17, 2002, at 01:45 AM, catalogs wrote:>>> are you checking then if there is a duplicate, it randomizes again and>> double checks, then loops until clear.>>>> can I get the code from you? It sound like you have taken care of >> what I am>> looking for. Why do you think web cat store builder have not taken >> care of>> these issues, there is so many things that the store could use but >> does not>> address?> Robert Minor> Director of Internet Services> ------------------------------------------------------------> Cybermill Communications> http://www.cybermill.com http://www.merchantmaker.com>> Providing Ecommerce and interactive website development and> hosting services on Macintosh, Windows NT, Unix, and AS/400.>> All your websites are belong to us!>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://search.smithmicro.com/>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
WJ Starck
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:
Req: Array Tags Explained, simple and clear (2003)
.. more on sliding discounts... (1997)
Protect (1997)
Are [CART]'s always > Previous [CART]'s (2000)
WebMerchant 1.6 and https (1997)
Something Simple (1998)
WC Database Format (1997)
NT vs Mac (1997)
Is this possible, WebCat2.0 and checkboxes (1997)
PCS Frames (1997)
Configuring E-mail (1997)
WC2b15 File Corruption (1997)
Re:WebCatalog/WebMerchant III (1998)
WebCatalog for guestbook ? (1997)
WebCatalog Hosting (1996)
Re:Saving/Looking Up customer numbers (1998)
RE: [WebDNA] Searching JSON in database.. (2019)
Snake Bites (1997)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
Getting Total Quantity (1997)