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:

searching illegal HTML (2002) [Announce]: Web server security and password protection (1997) [WebDNA] [if] or [case] or something else (2012) two unique banners on one page (1997) search problem (2002) WebCat2b13MacPlugIn - [include] (1997) Webcatalog error, Plug-in for Webstar (1996) Searching multiple fields from one form field (1997) WCS Newbie question (1997) boldwords (2001) About WebDNA (2006) re:check boxes (1997) Another Newbie Q: template? (1999) database visibility (2000) forming a SKU (1999) [OT] : Chat Room on OSX (2003) [format] (1998) READFILE command? (1998) [WebDNA] Initial setup problems with 6.2 (2009) emailer w/F2 (1997)