Re: Referrer field to header field conversion

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 15745
interpreted = N
texte = >A while ago I asked how to take the initial referrer of a visitor to my web >site and put this info in their shopping cart for later reference. I got >some excellent suggestions, but I still can't seem to make it work. The >problem is the visitor comes to an entry page, then clicks the big pretty >graphic to actually enter the site, in the process doing a search, and >generating a cart value. ( I now realise that this isn't required, as you >can do embedded searches (which I do), and generate cart numbers later, but >anyway...) I want to add the Header30=[referrer] tag, something like this... >href=Search.tmpl$search?Header30=[url][referrer][/url]&cart=[cart]&db=mypro >d.txt&geSKU=0> >This doesn't work, because you apparently can't add info to a cart value >(after all it only exists as a number in a URL)This wouldn't add anything to the cart anyways, all you're doing here is a search ...>so then I tried... > >which creates a cart file, doesn't append the referrer into it, and will >cause a problem if anybody uses the back button after shopping for a while >to get back to the search screen!You're still doing a search. You cannot add values to the shopping cart file when you do a search, you have to do one thing at a time ... so you actually have to perform a commerce function such as $add to give you what you want.Try adding the referrer value with an $add command instead of a $search command ... >What I need is a $create? command to create a shopping cart file so I can >play with the headers without adding any line items.$add does this the first time it's invoked with a new cart value ... :)Sincerely, Ken Grome ken@iav.com 808-737-6499 WebDNA Solutions http://www.hui.net/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Referrer field to header field conversion (Kenneth Grome 1997)
  2. Re: Referrer field to header field conversion (Michael Winston 1997)
  3. Re: Referrer field to header field conversion (Brian B. Burton 1997)
  4. Re: Referrer field to header field conversion (Pat McCormick 1997)
  5. Re: Referrer field to header field conversion (Sandra L. Pitner 1997)
  6. Re: Referrer field to header field conversion (Grant Hulbert 1997)
  7. Referrer field to header field conversion (Brian B. Burton 1997)
>A while ago I asked how to take the initial referrer of a visitor to my web >site and put this info in their shopping cart for later reference. I got >some excellent suggestions, but I still can't seem to make it work. The >problem is the visitor comes to an entry page, then clicks the big pretty >graphic to actually enter the site, in the process doing a search, and >generating a cart value. ( I now realise that this isn't required, as you >can do embedded searches (which I do), and generate cart numbers later, but >anyway...) I want to add the Header30=
[referrer] tag, something like this... >href=Search.tmpl$search?Header30=[url][referrer][/url]&cart=[cart]&db=mypro >d.txt&geSKU=0> >This doesn't work, because you apparently can't add info to a cart value >(after all it only exists as a number in a URL)This wouldn't add anything to the cart anyways, all you're doing here is a search ...>so then I tried... >[url][referrer][/url]&cart=[cart]> >which creates a cart file, doesn't append the referrer into it, and will >cause a problem if anybody uses the back button after shopping for a while >to get back to the search screen!You're still doing a search. You cannot add values to the shopping cart file when you do a search, you have to do one thing at a time ... so you actually have to perform a commerce function such as $add to give you what you want.Try adding the referrer value with an $add command instead of a $search command ... >What I need is a $create? command to create a shopping cart file so I can >play with the headers without adding any line items.$add does this the first time it's invoked with a new cart value ... :)Sincerely, Ken Grome ken@iav.com 808-737-6499 WebDNA Solutions http://www.hui.net/ 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:

Developer Links Exchange (2003) dates and hex formatting (1997) can WC render sites out? (1997) Nested tags count question (1997) removelineitems (2000) Verifying both name and password (was: THANKS) (1997) WCS Newbie question (1997) [WebDNA] [text scope=global show=F]... the 'show' param breaks (2010) Purchased cart being overwritten - still !?? (1997) WebCat2b12plugin - [search] is broken ... not! (1997) [format 40s]text[/format] doesn't work (1997) Some Advise needed (1997) how many (hideif & showifs) is too many? (2001) Nested tags count question (1997) Help formatting search results w/ table (1997) WebCat2 - Getting to the browser's username/password data (1997) OT: Poll Results (2002) Nav. 4 probs with cart (1997) [GROUPS] followup (1997) RE: protect tag on NT (1997)