Re: 2cd pare of eyes.

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 39395
interpreted = N
texte = thanks, you are probably right. see below:Samuel Renkert wrote:> [snip]> Donovan, I don't see any syntax errors, their might be some logic > errors, what are you trying to do (with context)?Basically I'm trying to first update a few form input values that are all called SKUsomething by verifying that the value is in our products.db. If all of them are valid then a flag ([valid]=yes) allows the update to proceed to adding these skus to the cart. Funny thing is this kind of worked a couple times when I had some misplaced showif's... then I changed some things and now I can't figure it out. Though I don't have time to work on in the next couple hours I sure would appreciate any ideas. One logical error I just noticed is that if I have more than one SKU and the first one is not valid and the second is, it looks like it will give [valid] a value of yes in the end which is not what I want. I have some text on this page that is triggered by a valid=no to let the user know that one or more items is not listed. Also, NL replaces the value of the inappropriate SKU's they typed in. :-) I won't go into a novel here just thought I'd explain a lil. This is for an alternative (quick order) way of ordering.you can see it here. (damadged as it is.) http://216.81.241.229/proforms/quickorder.html 10-M is a valid product. D [showif [qo]=update] [!]to decide if the items listed are ready to add to the cart[/!] [formvariables name=SKU&exact=F] [hideif [url][value][/url]=] [text]valid=no[/text] [search db=admin/products.db&neSKUdatarq=[blank]] [founditems] [showif [url][value][/url]=[SKU]] [text]valid=yes[/text] [text]theSKU=[SKU][/text] [/showif] [/founditems] [showif [numfound]=0] [text][name]=NL[/text] [/showif] [/search] [showif [valid]=yes] [!]verifies if item is already in cart[/!] [orderfile cart=[cart]] [lineitems] [showif [url][theSKU][/url]=[SKU]] [text]incart=T[/text] [/showif] [hideif [incart]=T] [text]shop=put[/text] [/hideif] [/lineitems] [/orderfile] [!]this adds the item[/!] [showif [shop]=put] [addlineitem cart=[cart]&db=admin/products.db&sku=[url][theSKU][/url]][/addlineitem] [/showif] [/showif] [/hideif] [/formvariables] [/showif]-- Donovan D. Brooke Systems Administrator/ Assc. Art Director Epsen Hillmer Graphics I know I'm making progress when I look at the questions I have asked in the past and think to myself... how stupid was that ------------------------------------------------------------- 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: 2cd pare of eyes. (Donovan Brooke 2001)
  2. Re: 2cd pare of eyes. (Donovan Brooke 2001)
  3. Re: 2cd pare of eyes. (Gene Beljaeff 2001)
  4. Re: 2cd pare of eyes. (Donovan Brooke 2001)
  5. Re: 2cd pare of eyes. (Samuel Renkert 2001)
  6. Re: 2cd pare of eyes. (Jeroen de Wijn 2001)
  7. 2cd pare of eyes. (Donovan Brooke 2001)
thanks, you are probably right. see below:Samuel Renkert wrote:> [snip]> Donovan, I don't see any syntax errors, their might be some logic > errors, what are you trying to do (with context)?Basically I'm trying to first update a few form input values that are all called SKUsomething by verifying that the value is in our products.db. If all of them are valid then a flag ([valid]=yes) allows the update to proceed to adding these skus to the cart. Funny thing is this kind of worked a couple times when I had some misplaced showif's... then I changed some things and now I can't figure it out. Though I don't have time to work on in the next couple hours I sure would appreciate any ideas. One logical error I just noticed is that if I have more than one SKU and the first one is not valid and the second is, it looks like it will give [valid] a value of yes in the end which is not what I want. I have some text on this page that is triggered by a valid=no to let the user know that one or more items is not listed. Also, NL replaces the value of the inappropriate SKU's they typed in. :-) I won't go into a novel here just thought I'd explain a lil. This is for an alternative (quick order) way of ordering.you can see it here. (damadged as it is.) http://216.81.241.229/proforms/quickorder.html 10-M is a valid product. D [showif [qo]=update] [!]to decide if the items listed are ready to add to the cart[/!] [formvariables name=SKU&exact=F] [hideif [url][value][/url]=] [text]valid=no[/text] [search db=admin/products.db&neSKUdatarq=[blank]] [founditems] [showif [url][value][/url]=[SKU]] [text]valid=yes[/text] [text]theSKU=[SKU][/text] [/showif] [/founditems] [showif [numfound]=0] [text][name]=NL[/text] [/showif] [/search] [showif [valid]=yes] [!]verifies if item is already in cart[/!] [orderfile cart=[cart]] [lineitems] [showif [url][theSKU][/url]=[SKU]] [text]incart=T[/text] [/showif] [hideif [incart]=T] [text]shop=put[/text] [/hideif] [/lineitems] [/orderfile] [!]this adds the item[/!] [showif [shop]=put] [addlineitem cart=[cart]&db=admin/products.db&sku=[url][theSKU][/url]][/addlineitem] [/showif] [/showif] [/hideif] [/formvariables] [/showif]-- Donovan D. Brooke Systems Administrator/ Assc. Art Director Epsen Hillmer Graphics I know I'm making progress when I look at the questions I have asked in the past and think to myself... how stupid was that ------------------------------------------------------------- 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/ Donovan Brooke

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:

Re[4]: Problem with new formvariables (2000) Maybe off topic but how to charge (1997) Search results templates (1996) Emailer setup (1997) SET (1998) WebCat2.0b15-to many nested [xx] tags (1997) Purchased cart being overwritten - still !?? (1997) Resume Catalog ? (1997) Different Drive (2003) Beta 18 (1997) ANYONE (1999) Re:my First Ship table (1998) File info on files with funky characters in their names (2003) Tab Delimited Files / FM Pro (1997) problems with 2 tags (1997) problems with 2 tags (1997) Execute Applescript (1997) Credit card processing - UK (1997) Running 2 two WebCatalog.acgi's (1996) page redirect in webDNA (1997)