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 cartto my invoice.I have a product that requires custom engraving, so I created three namevalue pairs, [persname], [option1], and [option2] that take input from theshopper on the results template. I can get the values from there into theshopping cart line item no problem. But no matter what I try I can't getthem to the invoice.I've tried putting &[textB]=[persname] into the [setlineitems] context onthe invoice, then adding [textB] down in the invoice description, but thatdoesn'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 avalue? I'd like to use the equivalent of hide if field is empty...something like: [hideif [fieldname]=] I can't find anything about thisin the manual. Can it be done?Thanks... sorry if these are really obvious...ph.
Associated Messages, from the most recent to the oldest:
I'm having trouble getting some extea name/value pairs from my shopping cartto my invoice.I have a product that requires custom engraving, so I created three namevalue pairs, [persname], [option1], and [option2] that take input from theshopper on the results template. I can get the values from there into theshopping cart line item no problem. But no matter what I try I can't getthem to the invoice.I've tried putting &[textB]=[persname] into the [setlineitems] context onthe invoice, then adding [textB] down in the invoice description, but thatdoesn'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 avalue? I'd like to use the equivalent of hide if field is empty...something like: [hideif [fieldname]=] I can't find anything about thisin 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)