Re: Trigger to empty shopping cart folder

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 60774
interpreted = N
texte = Paul Berman wrote: > Hi > > Is there an example of this or a snippet that I can start with Hi Paul, Its pretty straight forward and only becomes a little more complicated when dealing with seconds since epoch. Here is a start based on days old (off the top of my head).... -- [!]set current date (outside of orderfile)[/!] [text]today=[math]{[date]}[math][/text] [!]Set how old the orderfiles can be before deletion (days)[/!] [text]deleteage=1[/text] [listfiles path=] [orderfile file=[filename]] [!]set orderfile date[/!] [text]ofiledate=[math]{[date]}[/math][/text] [showif [math][today]-[ofiledate][math]>[deleteage]] [deletefile file=[filename]] [/showif] [/orderfile] [/listfiles] -- The code above was typed quickly and not tested so.... To get timing down to the second you can look at a test page I created based off of some code provided by Tom Duke a while back.. http://www.euca.us/admin/tests/sectodays.html Donovan -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <- Graphic Design, Custom Tags and Labels -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- 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: Trigger to empty shopping cart folder ( "Paul Berman" 2005)
  2. Re: Trigger to empty shopping cart folder ( Pat Holliday 2005)
  3. Re: Trigger to empty shopping cart folder ( Donovan Brooke 2005)
  4. Re: Trigger to empty shopping cart folder ( "Paul Berman" 2005)
  5. Re: Trigger to empty shopping cart folder ( Donovan Brooke 2005)
  6. Trigger to empty shopping cart folder ( "Paul Berman" 2005)
Paul Berman wrote: > Hi > > Is there an example of this or a snippet that I can start with Hi Paul, Its pretty straight forward and only becomes a little more complicated when dealing with seconds since epoch. Here is a start based on days old (off the top of my head).... -- [!]set current date (outside of orderfile)[/!] [text]today=[math]{[date]}[math][/text] [!]Set how old the orderfiles can be before deletion (days)[/!] [text]deleteage=1[/text] [listfiles path=] [orderfile file=[filename]] [!]set orderfile date[/!] [text]ofiledate=[math]{[date]}[/math][/text] [showif [math][today]-[ofiledate][math]>[deleteage]] [deletefile file=[filename]] [/showif] [/orderfile] [/listfiles] -- The code above was typed quickly and not tested so.... To get timing down to the second you can look at a test page I created based off of some code provided by Tom Duke a while back.. http://www.euca.us/admin/tests/sectodays.html Donovan -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <- Graphic Design, Custom Tags and Labels -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- 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/ Donovan Brooke

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:

Shopping Cart Page (1997) Cross-platform file names? (2000) re: How can I record purchases to a database? (1998) searchable list archive (1997) [SHOWIF AND/OR] (1997) Help! WebCat2 bug (1997) Setting up shop (1997) Target wit redirect (1998) What am I missing (1997) Re:Copyright ? (1997) Unknown error: OrderNotCreated (1997) synching databases on multiple servers (1997) WCf2 and nested tags (1997) Database field limit? (1998) Search in 2 or more catalogs (1997) [url] (1997) $Quit, $CloseDatabase corrections (1997) WebCat2.0 [format thousands .0f] no go (1997) Erotic Sites (1997) Search for dates greater than [date] (1997)