Re: Cleaning up all the shopping carts
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 27141
interpreted = N
texte = See an older post I saved from a few weeks ago below(thanks to Micheal O Shea for the code)-JohnBrian Boegershausen wrote:> Not sure if that is a bug or a bad setting, but your easiest solution is to> put a [deletefile file=shoppingcarts/[cart]]> at the bottom of the thankyou page. The shoppingcart has already become an> order so unless you like to keep them on file for a few days, you might as> well force it to delete. It keeps your files down. If you do like to keep> them on file for a bit, set up a trigger to manually delete carts that are> over a few days old.>> Brian Boegershausen> WebCatalog Programmer> www.orderbywire.com> ->that is my understanding. But I am also experiencing that cart>files never get deleted>from the ShoppingCarts folder... even after days. Maybe it is a>bug. ? I am finding>this phenomenon with Linux webcat 3.06. Others with this also on>unix? In december Grant>(head engineer for webcat) asked the beta list for a quick>workaround for getting rid of>old shoppingcart files. He said one of his clients on unix had the>same problem we are.>So I assume it is a bug that he hasn't had time to deal with.>>-John Butler>AH HA, SO I am not the only one with this problem. Yes on our MacOSXServers the shopping carts never get Deleted. This has been mentionedto SM / PCS several times but they have no Solution for it.SO Every night I run this trigger to delete them.Trigger calls this page.[Protect ADMIN][Text]del_date=[Math]{[Date]}[/Math][/Text][ListFiles ../../][Showif [IsFolder]=T][Include del_carts.inc][/Showif][/ListFiles]This is the include file that is used,[ListFiles [FullPath]][Showif [FileName]=ShoppingCarts] [ListFiles [FullPath]][Showif[Math]{[CreateDate]}[/Math]![del_date]][DELETEFILEfile=[FullPath]][/Showif][/ListFiles][/Showif][Hideif [FileName]=ShoppingCarts][Showif [IsFolder]=T] [Includedel_carts.inc][/Showif][/Hideif][/ListFiles]Bear in mind that this is recursive and will decend into all your folders!Hope this is useful for someone.Micheal O Shea Email:micheal@com4u.chcom4u.ch http://www.com4u.chBreitistrasse 7B PGP key available upon request.CH-5506 Maegenwil Tel: +41 62 896 46 26Switzerland--------------------------------------------------------------------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to
.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
Associated Messages, from the most recent to the oldest:
See an older post I saved from a few weeks ago below(thanks to Micheal O Shea for the code)-JohnBrian Boegershausen wrote:> Not sure if that is a bug or a bad setting, but your easiest solution is to> put a [deletefile file=shoppingcarts/[cart]]> at the bottom of the thankyou page. The shoppingcart has already become an> order so unless you like to keep them on file for a few days, you might as> well force it to delete. It keeps your files down. If you do like to keep> them on file for a bit, set up a trigger to manually delete carts that are> over a few days old.>> Brian Boegershausen> WebCatalog Programmer> www.orderbywire.com> ->that is my understanding. But I am also experiencing that cart>files never get deleted>from the ShoppingCarts folder... even after days. Maybe it is a>bug. ? I am finding>this phenomenon with Linux webcat 3.06. Others with this also on>unix? In december Grant>(head engineer for webcat) asked the beta list for a quick>workaround for getting rid of>old shoppingcart files. He said one of his clients on unix had the>same problem we are.>So I assume it is a bug that he hasn't had time to deal with.>>-John Butler>AH HA, SO I am not the only one with this problem. Yes on our MacOSXServers the shopping carts never get Deleted. This has been mentionedto SM / PCS several times but they have no Solution for it.SO Every night I run this trigger to delete them.Trigger calls this page.[Protect ADMIN][text]del_date=[math]{[date]}[/Math][/Text][ListFiles ../../][Showif [IsFolder]=T][Include del_carts.inc][/Showif][/ListFiles]This is the include file that is used,[ListFiles [FullPath]][Showif [FileName]=ShoppingCarts] [ListFiles [FullPath]][Showif[math]{[CreateDate]}[/Math]![del_date]][DELETEFILEfile=[FullPath]][/Showif][/ListFiles][/Showif][Hideif [FileName]=ShoppingCarts][Showif [IsFolder]=T] [Includedel_carts.inc][/Showif][/Hideif][/ListFiles]Bear in mind that this is recursive and will decend into all your folders!Hope this is useful for someone.Micheal O Shea Email:micheal@com4u.chcom4u.ch http://www.com4u.chBreitistrasse 7B PGP key available upon request.CH-5506 Maegenwil Tel: +41 62 896 46 26Switzerland--------------------------------------------------------------------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .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
John Butler
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:
Purchase Plugin Missing (1996)
Scope of variables in multi include files (2000)
Email...Thanks (1997)
WebCat2b13MacPlugin - [math][date][/math] problem (1997)
Can't test the beta (2000)
[SearchString] problem with [search] context (1997)
Referrer field to header field conversion (1997)
Hiring: Web programmer in Seattle area (2000)
Maybe off topic but how to charge (1997)
Max Record length restated as maybe bug (1997)
[Announce] WebCatalog 2.1 Released (1998)
WebCat Error Log problem (2.0.1, acgi, Mac) (1997)
Passing Cart variable to subdirectory files? (1997)
Commitdatabase tag (1998)
problems with 2 tags (1997)
[WebDNA] passing a variable in an include - precedence (2017)
[WebDNA] Some WebDNA news (2014)
Code BabelFish (was: I've been thinking) (2002)
WebDNA FAQ or FAQs (2004)
Re[2]: Webcatalog 4.0 - When will we be able to beta test it (2000)