Re: Cart date/time

This WebDNA talk-list message is from

2006


It keeps the original formatting.
numero = 66565
interpreted = N
texte = Marko You can use [cart] to give you a unique number and provided you do not put anything into the cart via [SetHeader] or [AddLineItem] a file will never be produced. In Mark's original question he was wanting to find carts that were more than 24 hours old, therefore he had info stored in them and were a physical file on the server. To find out how old the files are you could reverse engineer the [Cart] algorithm or simply do as Donovan suggested: [orderfile file=./[cart]] Cart was created on the day: [date] and the time: [time] [/orderfile] You can also alter the sweep value in the prefs file if all you want to do is delete the abandoned cart. Stuart Tremain idfk web developments, sydney, australia On 29 Mar 2006, at 12:31 PM, Marko Bernyk wrote: > Trying not to step on your toes... but in your use of [Cart] it is > defined in part a)... my use is in Part b) > > [CART] > a) Putting [CART] in your template will automatically create a > unique shopping cart identifier that can be used in eCommerce > commands such as Add, Remove, Purchase, etc. If no cart value is > specified when you arrive at a page, then a new unique value is > created. If you pass in a cart value in the URL or form > (propagating the same value from page to page), then that same cart > value is used throughout the page. > b) [CART] is also handy for times when you just need a guaranteed- > unique value somewhere, such as a record identifier or even a > product SKU. For this reason, [cart] works in Typhoon as well as > WebCatalog. > > -- > Regards, > Marko > > > On Wednesday, 29 March 2006 12:28 PM, Marko Bernyk > wrote: > Only if you are using the shopping part - and want to create a file... > > [orderfile file=./[cart]] creates a file with date and time as > fields.... which I don't want! > so now I have to delete the files! > > Dan good thinking though :) > > -- > Regards, > Marko > > > On Wednesday, 29 March 2006 12:15 PM, Dan Strong > wrote: > Works. Once again, I overthought a solution. > -Dan > > > On Tue, 28 Mar 2006 17:09:36 -0800 > "Dan Strong" wrote: >> Let me see if I understand... if I do the following: >> >> [text] myVar=[cart][/text] >> >> Then I follow it up with a: >> >> [orderfile file=./[cart]] >> Cart was created on the day: [date]
>> and the time: [time] >> [/orderfile] >> >> I'll get the correct date/time? I'll test now. >> -Dan >> >> >> >> >> On Tue, 28 Mar 2006 17:04:58 -0800 >> "Dan Strong" wrote: >>> Where? >>> >>> On Wed, 29 Mar 2006 11:54:50 +1100 >>> Stuart Tremain wrote: >>>> If the file is created, the date and time are recorded. >>>> >>>> Stuart Tremain >>>> idfk web developments, sydney, australia >>>> >>>> >>>> On 29 Mar 2006, at 11:59 AM, Dan Strong wrote: >>>> >>>>> Unless, of course, someone uses [cart] as a unique ID separate and >>>>> apart from the e-commerce functions and does not include date & >>>>> time in the record. >>>>> -Dan >>>>> >>>>> >>>>>> Yes Stuart, >>>>>> This is why there is no reason in my mind to reverse engineer the >>>>>> CART number.. other than for academics sake. Its already there. >>>>>> Donovan >>>>> >>>>> ------------------------------------------------------------- >>>>> 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 >>>> digest@talk.smithmicro.com> >>>>> Web Archive of this list is at: http://webdna.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 >>> digest@talk.smithmicro.com> >>>> Web Archive of this list is at: http://webdna.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 >> digest@talk.smithmicro.com> >>> Web Archive of this list is at: http://webdna.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 > digest@talk.smithmicro.com> >> Web Archive of this list is at: http://webdna.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 digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.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 digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.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 digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Cart date/time ( John Peacock 2006)
  2. Re: Cart date/time ( "Palle B. Nielsen (PowerPalle)" 2006)
  3. Re: Cart date/time ( John Peacock 2006)
  4. Re: Cart date/time ( "Palle B. Nielsen (PowerPalle)" 2006)
  5. Re: Cart date/time ( Donovan Brooke 2006)
  6. Re: Cart date/time ( "David Bastedo" 2006)
  7. Re: Cart date/time ( Mark Derrick 2006)
  8. Re: Cart date/time ( Stuart Tremain 2006)
  9. Re: Cart date/time ( Marko Bernyk 2006)
  10. Re: Cart date/time ( Marko Bernyk 2006)
  11. Re: Cart date/time ( "Dan Strong" 2006)
  12. Re: Cart date/time ( Marko Bernyk 2006)
  13. Re: Cart date/time ( "Dan Strong" 2006)
  14. Re: Cart date/time ( "Dan Strong" 2006)
  15. Re: Cart date/time ( "Dan Strong" 2006)
  16. Re: Cart date/time ( Stuart Tremain 2006)
  17. Re: Cart date/time ( "Dan Strong" 2006)
  18. Re: Cart date/time ( Donovan Brooke 2006)
  19. Re: Cart date/time ( Stuart Tremain 2006)
  20. Re: Cart date/time ( Donovan Brooke 2006)
  21. Re: Cart date/time ( Stuart Tremain 2006)
  22. Re: Cart date/time ( Marko Bernyk 2006)
  23. Re: Cart date/time ( Stuart Tremain 2006)
  24. Re: Cart date/time ( Mark Derrick 2006)
  25. Re: Cart date/time ( "Dan Strong" 2006)
  26. Re: Cart date/time ( "Dan Strong" 2006)
  27. Re: Cart date/time ( Donovan Brooke 2006)
  28. Re: Cart date/time ( John Peacock 2006)
  29. Re: Cart date/time ( Donovan Brooke 2006)
  30. Re: Cart date/time ( John Peacock 2006)
  31. Re: Cart date/time ( Matthew Bohne 2006)
  32. Re: Cart date/time ( Pat Holliday 2006)
  33. Cart date/time ( Mark Derrick 2006)
Marko You can use [cart] to give you a unique number and provided you do not put anything into the cart via [setheader] or [addlineitem] a file will never be produced. In Mark's original question he was wanting to find carts that were more than 24 hours old, therefore he had info stored in them and were a physical file on the server. To find out how old the files are you could reverse engineer the [cart] algorithm or simply do as Donovan suggested: [orderfile file=./[cart]] Cart was created on the day: [date] and the time: [time] [/orderfile] You can also alter the sweep value in the prefs file if all you want to do is delete the abandoned cart. Stuart Tremain idfk web developments, sydney, australia On 29 Mar 2006, at 12:31 PM, Marko Bernyk wrote: > Trying not to step on your toes... but in your use of [cart] it is > defined in part a)... my use is in Part b) > > [cart] > a) Putting [cart] in your template will automatically create a > unique shopping cart identifier that can be used in eCommerce > commands such as Add, Remove, Purchase, etc. If no cart value is > specified when you arrive at a page, then a new unique value is > created. If you pass in a cart value in the URL or form > (propagating the same value from page to page), then that same cart > value is used throughout the page. > b) [cart] is also handy for times when you just need a guaranteed- > unique value somewhere, such as a record identifier or even a > product SKU. For this reason, [cart] works in Typhoon as well as > WebCatalog. > > -- > Regards, > Marko > > > On Wednesday, 29 March 2006 12:28 PM, Marko Bernyk > wrote: > Only if you are using the shopping part - and want to create a file... > > [orderfile file=./[cart]] creates a file with date and time as > fields.... which I don't want! > so now I have to delete the files! > > Dan good thinking though :) > > -- > Regards, > Marko > > > On Wednesday, 29 March 2006 12:15 PM, Dan Strong > wrote: > Works. Once again, I overthought a solution. > -Dan > > > On Tue, 28 Mar 2006 17:09:36 -0800 > "Dan Strong" wrote: >> Let me see if I understand... if I do the following: >> >> [text] myVar=[cart][/text] >> >> Then I follow it up with a: >> >> [orderfile file=./[cart]] >> Cart was created on the day: [date]
>> and the time: [time] >> [/orderfile] >> >> I'll get the correct date/time? I'll test now. >> -Dan >> >> >> >> >> On Tue, 28 Mar 2006 17:04:58 -0800 >> "Dan Strong" wrote: >>> Where? >>> >>> On Wed, 29 Mar 2006 11:54:50 +1100 >>> Stuart Tremain wrote: >>>> If the file is created, the date and time are recorded. >>>> >>>> Stuart Tremain >>>> idfk web developments, sydney, australia >>>> >>>> >>>> On 29 Mar 2006, at 11:59 AM, Dan Strong wrote: >>>> >>>>> Unless, of course, someone uses [cart] as a unique ID separate and >>>>> apart from the e-commerce functions and does not include date & >>>>> time in the record. >>>>> -Dan >>>>> >>>>> >>>>>> Yes Stuart, >>>>>> This is why there is no reason in my mind to reverse engineer the >>>>>> CART number.. other than for academics sake. Its already there. >>>>>> Donovan >>>>> >>>>> ------------------------------------------------------------- >>>>> 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 >>>> digest@talk.smithmicro.com> >>>>> Web Archive of this list is at: http://webdna.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 >>> digest@talk.smithmicro.com> >>>> Web Archive of this list is at: http://webdna.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 >> digest@talk.smithmicro.com> >>> Web Archive of this list is at: http://webdna.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 > digest@talk.smithmicro.com> >> Web Archive of this list is at: http://webdna.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 digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.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 digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.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 digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.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://webdna.smithmicro.com/ Stuart Tremain

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:

WebCat2final1 crashes (1997) Restart of DBserver (1997) Possible to reset Linux file permissions w/in webcat [shell] ? (2000) Security Tip (1996) Here's how to kill a Butler Database. (1997) unitshipcost vs shipcosts (1997) taxrate - off by 1 cent (1997) Warning: Mac OS X 10.2.4 Update Overwrites Apache'shttpd.con (2003) Thanks Grant (1997) I have observed and I am gone. (1998) WebCatalog occasionally stopping (2001) Exclamation point (1997) Search design (1997) WebMerchant (2000) Search design (1997) [WebDNA] Cacheing include files (2015) RE: Languages (1997) fresh eyes needed. Append won't work. (2000) Help with ShowNext (1998) 2.0Beta Command Ref (can't find this instruction) (1997)