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:
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
Director 7 (1999)
Tiny Store (1998)
db access problem after switching to SSL (2001)
[WebDNA] How to test whether JPEG file is valid in WebDNA? (2011)
Setting up shop (1997)
[WebDNA] math date issues? (2013)
World Address Info (2003)
Privacy Issue (LEGIT QUESTION) (2003)
fieldnamesdir=ra equivalent for [sql] (2002)
searchable list archive (1997)
How true is this? (1999)
Bug or syntax error on my part? (1997)
Formatting of email on NT (1998)
PCS Frames (1997)
QuantityPrice computed? (1998)
Multiple catalog databases and showcart (1997)
Question re: FlushDatabases (1997)
WebMerchant Q (2000)
[WebDNA] WebDNA 7 multiple fcgid processes (2012)