Re: delete fails

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 35508
interpreted = N
texte = 1. You should be using command not action. 2. You should be using remove to remove a lineitem not delete. Delete is used for deleting records in a database not lineitems in a cart file.-RWChristopher Mackay wrote:> Hi, > > I've asked about this before, but no one's even nibbled at it. > > Remove > > This command is embedded in a [lineitems] context. It works great, > most of the time. Inexplicably, it will *sometimes* fails to delete > items from the cart, even though it is precisely the same code in the > same [lineitems] loop that works most of the time! It's failure > doesn't seem to depend on any condition I can spot -- number of items > in the cart, [index] value, etc. Can someone point me to a condition > that might cause this to sporadically fail? > > For what it's worth, this is in Netscape 4.7 on a Mac running OS > 9.0.4. The server's WebSTAR 4.2 under Mac OS 9.0 running WebCat > 3.0.7. Here's the code from the template, minus font tags for > readability (the HTML above was taken from the browser's source): > > [lineitems] > > > href=results.tpl?cart=[cart]&--eqSKUdatarq=[url][sku][/url]>[sku] > > [lookup > db=admin/products.db&lookinfield=SKU&value=[url][sku][/url]&returnfield=TITLE] > > > [search > db=admin/related.db&eqR_SKUdatarq=[url][sku][/url]&eqR_CTYPEdatarq=O&R_CATEGORYsumm=T&R_CRANKtype=number&asR_CRANKsort=1][founditems] > [lookup > db=admin/categories.db&lookinfield=C_ID&value=[R_CATEGORY]&returnfield=C_NAME] > > [/founditems][/search] > > > > > [lookup > db=admin/prefs.db&lookinfield=pref&value=CURRENCY&returnfield=value][price] > > [lookup > db=admin/prefs.db&lookinfield=pref&value=CURRENCY&returnfield=value][format > .[lookup > db=admin/prefs.db&lookinfield=pref&value=CURRENCY_ACCURACY&returnfield=value]f][math][quantity]*[price][/math][/format] > > href=checkout.tpl?cart=[cart]&action=Delete&index=[lineindex]>Remove > > > [/lineitems] > > -- > > Regards, > > Christopher Mackay, Director of Technical Services > Tantramar Interactive, http://www.tantramar.com/ > Tantramar Publishing, http://www.tantramarpublishing.com/ > phone: 506/364-1097 cell: 364-7659 fax: 536-2409 > > ------------------------------------------------------------- > 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/-- Robert Wade ====================== CABIN6 Design================================================ |[ //\ ||} || ||\| V| ================================================www.cabin6.com =============== robert@cabin6.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: delete fails (Christopher Mackay 2000)
  2. Re: delete fails (John Butler 2000)
  3. Re: delete fails (John Butler 2000)
  4. Re: delete fails (ShrPAUL1@aol.com 2000)
  5. Re: delete fails (WebDNA Support 2000)
  6. Re: delete fails (Robert Wade 2000)
  7. delete fails (Christopher Mackay 2000)
1. You should be using command not action. 2. You should be using remove to remove a lineitem not delete. Delete is used for deleting records in a database not lineitems in a cart file.-RWChristopher Mackay wrote:> Hi, > > I've asked about this before, but no one's even nibbled at it. > > Remove > > This command is embedded in a [lineitems] context. It works great, > most of the time. Inexplicably, it will *sometimes* fails to delete > items from the cart, even though it is precisely the same code in the > same [lineitems] loop that works most of the time! It's failure > doesn't seem to depend on any condition I can spot -- number of items > in the cart, [index] value, etc. Can someone point me to a condition > that might cause this to sporadically fail? > > For what it's worth, this is in Netscape 4.7 on a Mac running OS > 9.0.4. The server's WebSTAR 4.2 under Mac OS 9.0 running WebCat > 3.0.7. Here's the code from the template, minus font tags for > readability (the HTML above was taken from the browser's source): > > [lineitems] > > > href=results.tpl?cart=[cart]&--eqSKUdatarq=[url][sku][/url]>[sku] > > [lookup > db=admin/products.db&lookinfield=SKU&value=[url][sku][/url]&returnfield=TITLE] > > > [search > db=admin/related.db&eqR_SKUdatarq=[url][sku][/url]&eqR_CTYPEdatarq=O&R_CATEGORYsumm=T&R_CRANKtype=number&asR_CRANKsort=1][founditems] > [lookup > db=admin/categories.db&lookinfield=C_ID&value=[R_CATEGORY]&returnfield=C_NAME] > > [/founditems][/search] > > > > > [lookup > db=admin/prefs.db&lookinfield=pref&value=CURRENCY&returnfield=value][price] > > [lookup > db=admin/prefs.db&lookinfield=pref&value=CURRENCY&returnfield=value][format > .[lookup > db=admin/prefs.db&lookinfield=pref&value=CURRENCY_ACCURACY&returnfield=value]f][math][quantity]*[price][/math][/format] > > href=checkout.tpl?cart=[cart]&action=Delete&index=[lineindex]>Remove > > > [/lineitems] > > -- > > Regards, > > Christopher Mackay, Director of Technical Services > Tantramar Interactive, http://www.tantramar.com/ > Tantramar Publishing, http://www.tantramarpublishing.com/ > phone: 506/364-1097 cell: 364-7659 fax: 536-2409 > > ------------------------------------------------------------- > 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/-- Robert Wade ====================== CABIN6 Design================================================ |[ //\ ||} || ||\| V| ================================================www.cabin6.com =============== robert@cabin6.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/ Robert Wade

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:

Webcat run amuk (2002) Webcat Installation Problem? (2000) Re:no template caching (1997) Talk List Admin Page? (2000) WC2b15 File Corruption (1997) Database (2002) quantity minimum problem (1997) Re1000001: Setting up shop (1997) limit to listwords (2001) We are searching (2005) Fwd: Protect Tag and Groups (1998) [WebDNA] Old Problem, the exclamation point (2014) Ghostly cached webpage (2000) [price] maddness (2002) WebDNA Book? (2003) New public beta available (1997) Inventory lookup & display... (2003) For those of you not on the WebCatalog Beta... (1997) [OT] Friendly URL's (2004) Email within tmpl ? (1997)