Re: Referrer field to header field conversion

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 15740
interpreted = N
texte = You are trying to change a field in the header of a cart. WebCatalog's 'SmartCart' creates a unique cart before you even realize you need.To set the value of Header30 of a given cart, you need a [setHeader] context:[SetHeader db=your.db&cart=[cart]]header30=[referrer][/setheader] (see how [cart] works?)That string should be used where you have Header30=[url][referrer][url]By the way, [referrer] is already a URL, so doesn't need the [url] conversion context. That context replaces URL problem characters, like spaces, into their URL-acceptable gibberish: %20. I think [convertChars] converts it back to normal, but I will probably forever confuse these.Good Luck! Pat McCormick Brian B. Burton wrote:> Hello Again! > > 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) > 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! > so then I tried... > href=Search.tmpl$add?Header30=[url][referrer][/url]&cart=[cart]&db=myprod.t > xt&sku=0> > but this was doomed to fail as I have no SKU with a value of 0 and I really > have NO desire to add any line items to the shopping cart file at this time. > (not to mention stupid customer questions that I would invariable hear as a > result of this!) > > So again I am exactly where I started...nowhere. > > 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. Or is there another > way I am overlooking? > > Brian B. Burton > > P.S. I installed webcatalog 2.01 updater last night, and ever since then my > shopping carts have only lasted 2 hours before being auto deleted. I thought > it was (is) supposed to be 24 Hours? 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)
You are trying to change a field in the header of a cart. WebCatalog's 'SmartCart' creates a unique cart before you even realize you need.To set the value of Header30 of a given cart, you need a
[setheader] context:[SetHeader db=your.db&cart=[cart]]header30=[referrer][/setheader] (see how [cart] works?)That string should be used where you have Header30=[url][referrer][url]By the way, [referrer] is already a URL, so doesn't need the [url] conversion context. That context replaces URL problem characters, like spaces, into their URL-acceptable gibberish: %20. I think [convertchars] converts it back to normal, but I will probably forever confuse these.Good Luck! Pat McCormick Brian B. Burton wrote:> Hello Again! > > 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) > 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! > so then I tried... > href=Search.tmpl$add?Header30=[url][referrer][/url]&cart=[cart]&db=myprod.t > xt&sku=0> > but this was doomed to fail as I have no SKU with a value of 0 and I really > have NO desire to add any line items to the shopping cart file at this time. > (not to mention stupid customer questions that I would invariable hear as a > result of this!) > > So again I am exactly where I started...nowhere. > > 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. Or is there another > way I am overlooking? > > Brian B. Burton > > P.S. I installed webcatalog 2.01 updater last night, and ever since then my > shopping carts have only lasted 2 hours before being auto deleted. I thought > it was (is) supposed to be 24 Hours? Pat McCormick

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:

Bug or syntax error on my part? (1997) Bug or syntax error on my part? (1997) Quitting WebMerchant ? (1997) Nav. 4 probs with cart - Serious problem (1997) WCS Newbie question (1997) Email Set-Up? (1997) MacOS X Server problems (2001) quantity minimum problem (1997) # of real domains on 1 web server (1997) autosensing lanague selection (1997) [WebDNA] cookie expiration date (2015) Date question (2003) Mac: [ListFiles] bug alert (1997) b12 cannot limit records returned and more. (1997) Alternating colors (1997) (2002) Multi-Row Tables from a search. (1997) Date summarising (2005) Searching Numbers (2004) Search Question (2000)