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 MacOSX Servers the shopping carts never get Deleted. This has been mentioned to 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]][DELETEFILE file=[FullPath]][/Showif][/ListFiles][/Showif] [Hideif [FileName]=ShoppingCarts][Showif [IsFolder]=T] [Include del_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.ch com4u.ch http://www.com4u.ch Breitistrasse 7B PGP key available upon request.CH-5506 Maegenwil Tel: +41 62 896 46 26 Switzerland------------------------------------------------------------- ------------------------------------------------------------- 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:

    
  1. Re: Cleaning up all the shopping carts (Nicolas Verhaeghe 2000)
  2. Re: Cleaning up all the shopping carts (Brian Boegershausen 2000)
  3. Re: Cleaning up all the shopping carts (John Butler 2000)
  4. Re: Cleaning up all the shopping carts (John Butler 2000)
  5. Re: Cleaning up all the shopping carts (Brian Boegershausen 2000)
  6. Cleaning up all the shopping carts (Britt T. 2000)
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 MacOSX Servers the shopping carts never get Deleted. This has been mentioned to 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]][DELETEFILE file=[FullPath]][/Showif][/ListFiles][/Showif] [Hideif [FileName]=ShoppingCarts][Showif [IsFolder]=T] [Include del_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.ch com4u.ch http://www.com4u.ch Breitistrasse 7B PGP key available upon request.CH-5506 Maegenwil Tel: +41 62 896 46 26 Switzerland------------------------------------------------------------- ------------------------------------------------------------- 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:

Configuration Q (1998) [WebDNA] Problem running Webdna with IIS7 (2008) [WAY OFF TOPIC] anybody live in Kansas? (2003) Fwd: Apache/Mod-SSL & WebCatalog (UNIX)! module bug? (2000) newbie ?: splitting webcat files between ssl and non-ssl sites (1999) Protect vs Authenicate (1997) document contains no data (1999) CyberCash Transaction Cost (1999) show all problem (1997) WebCat2: Items xx to xx shown, etc. (1997) No comment (1997) Need relative path explanation (1997) Protecting webdelivery (1997) Error Messages Returned to User (1997) using showpage and showcart commands (1996) Where is f2? (1997) [OT] Brain Switching (2004) Attention all list readers (1997) I figured it out (1999) Cant open pages generated by Webcat (2004)