Re: Logging purchases
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 11008
interpreted = N
texte = >Howdy, list. I would like to begin logging purchases from my thank you>template through an [AppendFile purchlog.db] command. All I want is four>fields: date, IP address, sku/item/quantity/price for each item>purchased, and the total for that purchase. Anyone know how can I write>[lineItems] into one field in a database without having the second line>item create a new record?Hi Gil,Have you tried this? I don't know for sure, but I believe this will do whatyou want. It shouldn't put any tabs or carriage returns inside thelineitems loop, and the only other tabs and carriage returns are the onesyou type yourself.I used a series of dots to separate the individual lines of line items, butyou could replace those dots with something else, as long as it's not a tabor carriage return ... :)[AppendFilepurchlog.db][date]
[ipAddress][lineitems][sku]/[item]/[quantity]/[price].....[/lineitems][total][/appendfile]Sincerely, Ken Grome ..... ken@iav.com
Associated Messages, from the most recent to the oldest:
>Howdy, list. I would like to begin logging purchases from my thank you>template through an [AppendFile purchlog.db] command. All I want is four>fields: date, IP address, sku/item/quantity/price for each item>purchased, and the total for that purchase. Anyone know how can I write>[lineitems] into one field in a database without having the second line>item create a new record?Hi Gil,Have you tried this? I don't know for sure, but I believe this will do whatyou want. It shouldn't put any tabs or carriage returns inside thelineitems loop, and the only other tabs and carriage returns are the onesyou type yourself.I used a series of dots to separate the individual lines of line items, butyou could replace those dots with something else, as long as it's not a tabor carriage return ... :)[AppendFilepurchlog.db][date][ipaddress][lineitems][sku]/[item]/[quantity]/[price].....[/lineitems][total][/appendfile]Sincerely, Ken Grome ..... ken@iav.com
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:
webcat sendmail error - unix sendmail failed to deliver thisemail (2000)
WebStar5 and realm authentication (2003)
Popup Menu Options (1998)
Backwards list behavior ... (1997)
Wonderin' whats the way (1998)
Re:Signal Raised (1997)
RE: problem with applets embedded in tpl files (1997)
can WC render sites out? (1997)
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
OT: Version Control (2007)
WebCat2b12 CGI Mac - [shownext] problem (1997)
Runnaway Trigger (2007)
math on date? (1997)
Emailer 550 (2000)
WebCat2 - Getting to the browser's username/password data (1997)
Preserving file creation dates on [copyfile] (2007)
japanese characters (1997)
Updating a database once per day - An example (1998)
WebCatalog for Postcards ? (1997)
WC1.6 to WC2 date formatting -FIXED! (1997)