Bad/GoodPath.inc and value of [cart]?

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 35596
interpreted = N
texte = I need to have an [appendfile] context in my BadPath.inc and GoodPath.inc files (I actually need it in the GoodPath.inc file only eventually, but i want it in BadPath.inc for testing purposes). I've got it set up right now, but it doesn't seem to work, as it's not outputting any file.One problem may be that I'm searching my products db using [cart] as a value. Is [cart] still available at this point in DoPurchases.tpl? Do I need to make sure to pass it from my Invoice.tpl and ThankYou.tpl pages to make sure it gets sent to DoPurchases.tpl?I could also search on [SKU], as I generate the value of [SKU] early on, based on the value of [cart] (same getChars code as in the search below). The code in question in BadPath.inc is below, and I just added it after the other code that's already in that file (sends emails, overwrites the processing file generated by ThankYou.tpl, etc.): ----------------- CODE -------------------------[!] **** This is the code that exports the info to the cgioutput.txt file for BaseView to import **** [/!][search db=adstorage.db&eqSKUdatarq=[url][GetChars start=1&end=8&from=end][cart][/GetChars][/url]&max=1][founditems] [AppendFile file=cgioutput.txt] B| A|[ADCLASS]|||||||||||| N| T|[AD_BODY] S|[EDITION]|[AD_START]|[AD_DAYS]|| C||||[NAME_FIRST]|[NAME_LAST]|[COMPANY]||[AREACODE]|[PHONENUM]|[ADDRESS1]|[A DDRESS2]|[CITY]|[STATE]|[ZIP]|[EMAIL]| E|[/appendfile] [/founditems] [/search]----------------- CODE -------------------------This is really the lynchpin of this app, and what I thought would be an easy thing to do, isn't. I can successfully do the AppendFile earlier in the process, but I need to wait until the GoodPath.inc actions to do so in the final product.Any advice would be appreciated!Thanks,Steve ------------------------------------------------ Steven Jarvis Web Developer sjarvis@nwaonline.netMorning News of Northwest Arkansas http://www.nwaonline.net ------------------------------------------------------------------------------------------------------------- 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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Bad/GoodPath.inc and value of [cart]? (John Jakovich 2000)
  2. Bad/GoodPath.inc and value of [cart]? (Steven Jarvis 2000)
I need to have an [appendfile] context in my BadPath.inc and GoodPath.inc files (I actually need it in the GoodPath.inc file only eventually, but i want it in BadPath.inc for testing purposes). I've got it set up right now, but it doesn't seem to work, as it's not outputting any file.One problem may be that I'm searching my products db using [cart] as a value. Is [cart] still available at this point in DoPurchases.tpl? Do I need to make sure to pass it from my Invoice.tpl and ThankYou.tpl pages to make sure it gets sent to DoPurchases.tpl?I could also search on [SKU], as I generate the value of [SKU] early on, based on the value of [cart] (same getChars code as in the search below). The code in question in BadPath.inc is below, and I just added it after the other code that's already in that file (sends emails, overwrites the processing file generated by ThankYou.tpl, etc.): ----------------- CODE -------------------------[!] **** This is the code that exports the info to the cgioutput.txt file for BaseView to import **** [/!][search db=adstorage.db&eqSKUdatarq=[url][GetChars start=1&end=8&from=end][cart][/GetChars][/url]&max=1][founditems] [AppendFile file=cgioutput.txt] B| A|[ADCLASS]|||||||||||| N| T|[AD_BODY] S|[EDITION]|[AD_START]|[AD_DAYS]|| C||||[NAME_FIRST]|[NAME_LAST]|[COMPANY]||[AREACODE]|[PHONENUM]|[ADDRESS1]|[A DDRESS2]|[CITY]|[STATE]|[ZIP]|[EMAIL]| E|[/appendfile] [/founditems] [/search]----------------- CODE -------------------------This is really the lynchpin of this app, and what I thought would be an easy thing to do, isn't. I can successfully do the AppendFile earlier in the process, but I need to wait until the GoodPath.inc actions to do so in the final product.Any advice would be appreciated!Thanks,Steve ------------------------------------------------ Steven Jarvis Web Developer sjarvis@nwaonline.netMorning News of Northwest Arkansas http://www.nwaonline.net ------------------------------------------------------------------------------------------------------------- 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://search.smithmicro.com/ Steven Jarvis

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:

eq (2000) Navigator 4.0 & tables (1997) Problem with version 4 browsers (1998) numfound=0 for a search after going into the SSL (2003) WebCatalog Hosting (1998) Using Cookie for client specific info? (1997) search same field twice??? (1999) Not really WebCat (1997) [WebDNA] Pinterest kinda site? (2013) Include a big block of text (1997) Error 11 (1996) Weird bug, or is there something amiss? (1997) PCS Frames (1997) OK, here goes... (1997) I'm new be kind (1997) log files (1998) Saving Text Areas with Orders (1997) Exchange rates (2004) WebCat2 - storing unformatted date data? (1997) Beta and new version questions? (1998)