Passing values

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 23663
interpreted = N
texte = I'm having trouble getting some extea name/value pairs from my shopping cart to my invoice.I have a product that requires custom engraving, so I created three name value pairs, [persname], [option1], and [option2] that take input from the shopper on the results template. I can get the values from there into the shopping cart line item no problem. But no matter what I try I can't get them to the invoice.I've tried putting &[textB]=[persname] into the [setlineitems] context on the invoice, then adding [textB] down in the invoice description, but that doesn't work. Nor do all the variations I can think of.Do I need to do this on the shopping cart, before it gets to the invoice? What am I missing?Also, one more newbie question: Is there a way to use an empty field as a value? I'd like to use the equivalent of hide if field is empty... something like: [hideif [fieldname]=] I can't find anything about this in the manual. Can it be done?Thanks... sorry if these are really obvious...ph. Associated Messages, from the most recent to the oldest:

    
  1. Re: Passing values - never mind (Kenneth Grome 1999)
  2. Re: Passing values (Kenneth Grome 1999)
  3. Passing values - never mind (Phil Herring 1999)
  4. Passing values (Phil Herring 1999)
I'm having trouble getting some extea name/value pairs from my shopping cart to my invoice.I have a product that requires custom engraving, so I created three name value pairs, [persname], [option1], and [option2] that take input from the shopper on the results template. I can get the values from there into the shopping cart line item no problem. But no matter what I try I can't get them to the invoice.I've tried putting &[textB]=[persname] into the [setlineitems] context on the invoice, then adding [textB] down in the invoice description, but that doesn't work. Nor do all the variations I can think of.Do I need to do this on the shopping cart, before it gets to the invoice? What am I missing?Also, one more newbie question: Is there a way to use an empty field as a value? I'd like to use the equivalent of hide if field is empty... something like: [hideif [fieldname]=] I can't find anything about this in the manual. Can it be done?Thanks... sorry if these are really obvious...ph. Phil Herring

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:

Need help with emailer- 2 issues (1997) Help! WebCat2 bug (1997) Secure server question (1997) Format question WC Mac f3 (1997) truncating email part II (1997) URL for Discussion Archive (1997) Include a big block of text (1997) Shopping with Accounts (2003) [math date] with non-US date format (2000) How to include weather (2000) Faxing orders in place of email (1997) RE: Upload (1998) WebCatalog f2 Installation (1997) GuestBook example (1997) Emailer (WebCat2) (1997) [searchString] (1997) Further tests with the infamous shipCost (1997) Special delete ... (1997) WebCat2 several catalogs? (1997) remotely creating and populating a stock inventory db -almostthere! (1999)