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 withHi Paul, Its pretty straight forward and only becomes a little morecomplicated when dealing with seconds since epoch. Here is a startbased 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 pageI created based off of some code provided by Tom Duke a whileback..http://www.euca.us/admin/tests/sectodays.htmlDonovan-- =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:
Paul Berman wrote:> Hi> > Is there an example of this or a snippet that I can start withHi Paul, Its pretty straight forward and only becomes a little morecomplicated when dealing with seconds since epoch. Here is a startbased 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 pageI created based off of some code provided by Tom Duke a whileback..http://www.euca.us/admin/tests/sectodays.htmlDonovan-- =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:
WebCatalog can't find database (1997)
Emailer setup (1997)
WebDNA maxing out processor (2008)
Search Folder? (1998)
Correct Linux Version for WC 6 (2006)
[ModDate] & [ModTime] ? (1997)
[WebDNA] OT? - how to get webdna to tell browser to open SWF directly in the browser? (2009)
How To question on setting up downloads (1997)
Emailer (WebCat2) (1997)
webdelivery.tmpl???? (1997)
SetHeader (1997)
WebCatalog Plug-in for Webstar. (1997)
Pithy questions on webcommerce & siteedit (1997)
WebCat2b12plugin - [search] is broken ... not! (1997)
Possible Bug in 2.0b15.acgi (1997)
5.0 Preview Promotion Extension (2003)
RE: textA and Title? (1997)
[WebDNA] possible bug? (db field named [width]) (2012)
search problem (2002)
[shownext] and descending order (1997)