Re: minimalist shopping cart.
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 15510
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?No, cart files are not databases. The exact format is documented in the online docs, but the best way to get at information inside cart files is to use [OrderFile] and [LineItems] contexts. If you want to test for the existence of any file on your hard disk (regardless of its type), then you can use the new [FileInfo] context in 2.1, or perhaps [ListFiles]Here's an example of getting some information from the order file[OrderFile cart=1234] [Header14], [ShipToState]
[LineItems] [sku], [price]
[/LineItems][/OrderFile]Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>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?No, cart files are not databases. The exact format is documented in the online docs, but the best way to get at information inside cart files is to use
[orderfile] and
[lineitems] contexts. If you want to test for the existence of any file on your hard disk (regardless of its type), then you can use the new
[fileinfo] context in 2.1, or perhaps
[listfiles]Here's an example of getting some information from the
order file[OrderFile cart=1234] [Header14], [ShipToState]
[lineitems] [sku], [price]
[/LineItems][/OrderFile]Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Grant Hulbert
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:
sort problems....bug or brain fart? (1997)
filtering extra characters from credit card numbers (2001)
Use of Back and Reload Buttons on ShoppingCart page? (1997)
wrong input values? (1997)
No luck with taxes (1997)
Error: this shopping cart has already been submittedm (2004)
A quickie question (1997)
RE: Upload (1998)
Extended [ConvertChars] (1997)
WebCatalog seems to choke on large (2meg) html files. (1998)
Postdata expired from cache (2004)
Undeclared variables (2004)
Locking up with WebCatalog... (1997)
WebCat2b13MacPlugIn - More limits on [include] (1997)
Click-through/Referral tracking solution needed (2000)
Country & Ship-to address & other fields ? (1997)
Faxing orders in place of email (1997)
ISAPI WC6a and Windows 2003 Web Edition (2006)
Talk List Suggestions (1997)
IE Cache Problems... (1999)