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:
Re: 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
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...