Re: Adding Header Values with [SetHeader]
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 16286
interpreted = N
texte = >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)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.Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>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)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.Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Grant Hulbert
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:
PIXO with cometsite ... and/or other plugins (1998)
Dates (1998)
Sense/Disallow HTML tags during $Append (1997)
price formula (1999)
Link in a text (2000)
[WebDNA] Quotes invited - not for profit WebDNA site. (2016)
WebCatalog Hosting (1998)
SendMail - Idea (2000)
AOL and [referrer] (2001)
WebCat2 as a chat server? (1997)
Email Format (1998)
Protecting webdelivery (1997)
Logging purchases (1997)
Bug Report, maybe (1997)
Multiple prices (1997)
Using Cookie for client specific info? (1997)
Document Contains No Data! (1997)
too many nested [xxx] (1997)
WebCat2 - [SendNews] (1997)
iis 4.0 (1997)