Re: Passing values

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 23674
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.Anything that actually gets written to the shopping cart file is already there when the visitor gets to the invoice page. Either the data is NOT getting written to the cart file as you think it is -- perhaps because you're not using Header1 - Header40 field names or TextA - TextE field names, which are the ONLY available fields you can use to add extra data to your cart files, or else that data is in the cart file and you're not using those same field names to view the data ...>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.That's because you should be using using &textB=[persname]. Remember, put the textB inside brackets when you're using a previously-created textB value for display or in a math calculation, but use the field name without the brackets when you're setting that value in the cart file. >Also, one more newbie question: Is there a way to use an empty field as a >value?Yes!>I'd like to use the equivalent of hide if field is empty... >something like: [hideif [fieldname]=]Try this: [hideif [fieldname]=]Sincerely, Ken Grome WebDNA Consultant 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.Anything that actually gets written to the shopping cart file is already there when the visitor gets to the invoice page. Either the data is NOT getting written to the cart file as you think it is -- perhaps because you're not using Header1 - Header40 field names or TextA - TextE field names, which are the ONLY available fields you can use to add extra data to your cart files, or else that data is in the cart file and you're not using those same field names to view the data ...>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.That's because you should be using using &textB=[persname]. Remember, put the textB inside brackets when you're using a previously-created textB value for display or in a math calculation, but use the field name without the brackets when you're setting that value in the cart file. >Also, one more newbie question: Is there a way to use an empty field as a >value?Yes!>I'd like to use the equivalent of hide if field is empty... >something like: [hideif [fieldname]=]Try this: [hideif [fieldname]=]Sincerely, Ken Grome WebDNA Consultant Kenneth Grome

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:

writefile and deletefile (1998) Talk List Suggestions (1997) Include remote? (1998) Upgrading old WebCat Database Files (1997) Error -108 (1997) (2000) unsubscribe me (2000) Showif, Hideif reverse logic ? (1997) WebCat2b12--[searchstring] bug (1997) Simple way to create unique SKU (1997) syntax question, not in online refernce (1997) WebDNA creates DUPLICATE SHOPPING CART NUMBERS (2004) help on brickwalls (2003) [date format] w/in sendmail (1997) PayFlow Pro - Changing the Amount that was Authorized (2003) question: webmerchant connection (1997) Kill the webcat process (2000) I think WebDNA-Talk died ... :( (1997) WebCat2 - [format thousands] (1997) Whats wrong with this code? (1998)