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:

WebCAT has the devil in it! (2003) Workaround for Emailer doubled bcc messages (1998) Commitdatabase tag (1998) using showpage and showcart commands (1996) Need relative path explanation (1997) WC Database Format (1997) Error Page? (1997) [isfile] ? (1997) WebCatalog Plug-in for Webstar. (1997) Time Tracking (2003) Math with Time (1997) Re:Copyright ? (1997) Multiple prices (1997) Multiple appends with checkboxes (1998) WebTV, IPAddress, Cookies, IDEAS?? (1998) Running 2 two WebCatalog.acgi's (1996) Snake Bites (1997) ShowNext (1997) PIXO support (1997) WebCat2b13MacPlugIn - [include] (1997)