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:

Showif for mulitple variations (1997) Remote stockroom ? (1998) Web Browser %Numbers - A must read for web developers (2003) Dynamic Form - Shipping Country / State/ Province (2006) Mac: LModelDirector bug fix (1997) RE: [isfolder] and [filename] (1997) RE: IIS4b2 and WebCatalog b19 (1997) Use WebCat to search files in a folder like a search engine? (2001) [WebDNA] WebDNA & VPS (2009) WebCatalog2 Feature Feedback (1996) Odd search results, or odd programmer, not sure which... (2002) [SHOWIF]s and empty arguments (1997) foreign languages, email, webcat (1998) WebDelivery downloads alias, not original ? (1997) UPS Shipping Docs (Where To Go) (1999) Updating Prices in DB (working) (1999) setting cookies with [setcookie] (1998) PSC recommends what date format yr 2000??? (1997) Discounting prices across a site (1997) Mac 2.1b4 unknown error: BadSuffix (1997)