Re: Adding Header Values with [SetHeader]

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 16315
interpreted = N
texte = Reply to: Re: Adding Header Values with [SetHeader]Grant Hulbert wrote: >>I would like to use the [SetHeader] context to place the above >>information into the header field. >> >> >>Where do I put the [SetHeader] context? >> >>I assume that it should be something like this: >>[SetHeader >>cart=[cart]&db=d2mcust.db]Header2=[building]&Header3=[faxareacode]&Header3 >=[suite] >>[/SetHeader] > >Yes, that looks like the correct syntax. You can put this WebDNA right >next to your [Append] stuff as long as WebCatalog knows a couple of things at that >instant: > >1) The cart# must be known (I'm assuming you're doing this in a template >that has cart=xxx passed in)The template has: I can print out the cart on top of the page, and it matches the cart on the referring page. >2) Realize the order file might actually have moved into the Orders folder >by this point (after a purchase), so you may need to do [SetHeader >file=Orders/[cart]... instead. Using cart= assumes it's in the ShoppingCarts folder, but using >file= lets you find it anywhere. >I haven't finalized the purchase at this time. When I try and use the following:[clearlineitems cart=[cart]] Cart Number for testing purposes is [cart] [orderfile cart=[cart]] The building number is [header2]
[/orderfile]I see the words 'The building number is ', but nothing is returned for the cart header2 field. I can print out the cart, and it matches the cart on the referring page. Associated Messages, from the most recent to the oldest:

    
  1. Re: Adding Header Values with [SetHeader] (Larry Orchier 1998)
  2. Re: Adding Header Values with [SetHeader] (Grant Hulbert 1998)
  3. Re: Adding Header Values with [SetHeader] (Kenneth Grome 1998)
  4. Adding Header Values with [SetHeader] (Larry Orchier 1998)
Reply to: Re: Adding Header Values with [setheader]Grant Hulbert wrote: >>I would like to use the [setheader] context to place the above >>information into the header field. >> >> >>Where do I put the [setheader] context? >> >>I assume that it should be something like this: >>[SetHeader >>cart=[cart]&db=d2mcust.db]Header2=[building]&Header3=[faxareacode]&Header3 >=[suite] >>[/SetHeader] > >Yes, that looks like the correct syntax. You can put this WebDNA right >next to your [append] stuff as long as WebCatalog knows a couple of things at that >instant: > >1) The cart# must be known (I'm assuming you're doing this in a template >that has cart=xxx passed in)The template has: [cart]>I can print out the cart on top of the page, and it matches the cart on the referring page. >2) Realize the order file might actually have moved into the Orders folder >by this point (after a purchase), so you may need to do [SetHeader >file=Orders/[cart]... instead. Using cart= assumes it's in the ShoppingCarts folder, but using >file= lets you find it anywhere. >I haven't finalized the purchase at this time. When I try and use the following:[clearlineitems cart=[cart]] Cart Number for testing purposes is [cart] [orderfile cart=[cart]] The building number is [header2]
[/orderfile]I see the words 'The building number is ', but nothing is returned for the cart header2 field. I can print out the cart, and it matches the cart on the referring page. Larry Orchier

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:

Hosts (2000) Changing price for a SLU based on options (size, etc.) (1997) Associative lookup style? + bit more (1997) Return records from another (1997) Bug or syntax error on my part? (1997) [showif [getcookie otherDomain]=yes] inside a [TCP connect] will work? (2000) Colocator Upgrading OS (2004) E-Mailer (WebCatb15acgiMac) (1997) WebCatalog NT beta 18 now available (1997) WebCat cannot handle compatible search parameters? (1997) webcat- multiple selection in input field (1997) [moveFile] Question (1999) WC2b15 File Corruption (1997) Add to Cart & List of Products (1997) Emailer setup (1997) Associative lookup style? (1997) How to Sort Summ data ? (1997) [BULK] [WebDNA] (2017) [/application] error? (1997) Generating unique SKU from [cart] - FIXED! (1997)