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

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 35625
interpreted = N
texte = I would display the [numfound] to see if your search is finding anything, if the search doesn't find something your founditems code will never get executed. If your search doesn't find something then I would display the searchstring in the page to see if you can figure out what's wrong: search db=adstorage.db&eqSKUdatarq=[url][GetChars start=1&end=8&from=end][cart][/GetChars][/url]&max=1If your search is finding something I would isolate the appenfile and make sure it works all by itself. 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/------------------------------------------------------------- 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 would display the [numfound] to see if your search is finding anything, if the search doesn't find something your founditems code will never get executed. If your search doesn't find something then I would display the searchstring in the page to see if you can figure out what's wrong: search db=adstorage.db&eqSKUdatarq=[url][GetChars start=1&end=8&from=end][cart][/GetChars][/url]&max=1If your search is finding something I would isolate the appenfile and make sure it works all by itself. 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/------------------------------------------------------------- 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/ John Jakovich

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:

Bug or syntax error on my part? (1997) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) NT BETA BUG???? (1997) WebCatalog can't find database (1997) Requiring that certain fields be completed (1997) Games (1998) Fufillment e-mail? (1998) Listserver problem (1997) Introduction/Tutorial/QuickStart (1997) Smart caching problems with 2.1b3? (1997) Am I going senile? (Price recalc based on quantity) (1997) [REPLACE] inside [FOUNDITEMS] (1998) Grouping fields help (2004) [WebDNA] Stop hacking (2013) expired beta (1997) emailer suddenly stops (1998) Re:2nd WebCatalog2 Feature Request (1996) A few questions. . . (1997) Nested tags count question (1997) [protect admin] (1997)