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:

Cannot open database (1999) target=_blank and form variables (1997) Country & Ship-to address & other fields ? (1997) New commands in Final candidate (1997) search form problem.. (1997) WebCat2 Append problem (B14Macacgi) (1997) bug? template caching and apache transfer byte log (1999) emailer error -108 (1997) [OT] IANA Special Use (2004) Problem upgrading from 3.0.8 to 4.0 on MS Windoze 98 / PWS (2000) FYI: Upgrading to 4.0 on Windoze 98 (2000) Searching multiple Databases (1997) WebCat2_Mac RETURNs in .db (1997) I'm tired of all this! (2000) Merging databases (1997) Stop the madness. (1997) Date search - yes or no (1997) WebCatalog f2 Installation (1997) [Price] (1997) The USArea® Network web site ... (1997)