Re: minimalist shopping cart.

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 15458
interpreted = N
texte = >I am working on a solution in which my customer doesn't want to see his >shopping cart. Unless he specifically axes for it. When he adds an item >he will be return to his same page. That was easy enough, but, I would >like to do a lookup into the [cart] file and determine if a specific file >exists there. If it doesn't then I want to change the gif from 'buy' to >'remove'. Is the cart file like a database can I do a sub lookup into >that cart file extract a value like I would from any database?Yes, but cart files don't have the field names in the first record, so you have to use the new .hdr feature. However, the .hdr feature is *not* available in version 2.0.1, so you'll have to use the 2.1 beta version to take advantage of this feature ... :)Sincerely, Ken Grome ken@iav.com WebDNA Solutions http://www.smithmicro.com/webdnasolutions/... Associated Messages, from the most recent to the oldest:

    
  1. Re: minimalist shopping cart. (Grant Hulbert 1997)
  2. Re: minimalist shopping cart. (Kenneth Grome 1997)
  3. Re: minimalist shopping cart. (Kenneth Grome 1997)
  4. Re: minimalist shopping cart. (bob 1997)
  5. minimalist shopping cart. (bob 1997)
>I am working on a solution in which my customer doesn't want to see his >shopping cart. Unless he specifically axes for it. When he adds an item >he will be return to his same page. That was easy enough, but, I would >like to do a lookup into the [cart] file and determine if a specific file >exists there. If it doesn't then I want to change the gif from 'buy' to >'remove'. Is the cart file like a database can I do a sub lookup into >that cart file extract a value like I would from any database?Yes, but cart files don't have the field names in the first record, so you have to use the new .hdr feature. However, the .hdr feature is *not* available in version 2.0.1, so you'll have to use the 2.1 beta version to take advantage of this feature ... :)Sincerely, Ken Grome ken@iav.com WebDNA Solutions http://www.smithmicro.com/webdnasolutions/... 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:

Sorting by number (2001) SiteGuard Admin Feature ? (1997) add to cart within a page? (1997) [ShowIf] and empty fields (1997) re: Large databases in WebCat (1997) Uploading Files (2000) Nested vs conditional (1997) WebCatalog NT (1996) [convertchars] (2000) different show next (1997) [date] insanity! (2001) Rhapsody? (1997) RE: Submitting ampersands in forms... (1998) How to append text after the sign & (1997) What am I missing (1997) Cross domains Shopping Carts (2003) I found a bug ... (1997) Need relative path explanation (1997) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) Re:2nd WebCatalog2 Feature Request (1996)