Re: How can I record purchases to a database?
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 17786
interpreted = N
texte = Hi all,I submitted the following WebDNA and results:>[lineitems]>[append db=NMI_Purchases.db]>CartNum=[cart]&Qty=[quantity]&SKU=[SKU]&ProdName=[ProdName]&Price=[price]>&Extension=[format .2f][quantityPrice][/format]>[/append]>[/lineItems]>>This returns close to what I want in the database - as follows:>>CartNum Qty SKU ProdName Price Extension> 3 BN-1218 Red Nylon 13.00 39.00> 4 BN-1218P Red Nylon w/pocket 14.00 56.00>>As you can see, I am getting everything but the [cart] number. I'm >assuming that this is because the cart number is not part of the line >items in the cart. (Makes sense.)>>Now my question is - How do I get the cart number to be included in the >record that is written to the database?>Ken Grome suggested I try this:>>Try this:>>[math]thiscart=[cart][/math]>>[lineitems]>[append db=NMI_Purchases.db]>CartNum=[math][thiscart][/math]&Qty=[quantity]&SKU=[SKU]>&ProdName=[ProdName]&Price=[price]>&Extension=[format .2f][quantityPrice][/format]>[/append]>[/lineItems]Ken, I got the same results. No cart number. Any other suggestions. I fooled with all kinds of stuff tonight including trying a [SetLineItem] context, all to no avail. It's so close to what I want. Hope some one can shed some light on it.Jerry Nielsen - comm$TRUCT Associates Jerry N. Nielsen Voice: (626)351-0201comm$TRUCT Associates Fax: (626)351-0033Managing Consultant Cellular: (818)257-29373835 Landfair RoadPasadena, CA 91107We con$TRUCT commerce sites that work the way YOU want them to!Thought for the day: The longest distance between to points is a shortcut.^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Associated Messages, from the most recent to the oldest:
Hi all,I submitted the following WebDNA and results:>
[lineitems]>[append db=NMI_Purchases.db]>CartNum=
[cart]&Qty=[quantity]&SKU=[SKU]&ProdName=[ProdName]&Price=[price]>&Extension=[format .2f][quantityPrice][/format]>[/append]>[/lineItems]>>This returns close to what I want in the database - as follows:>>CartNum Qty SKU ProdName Price Extension> 3 BN-1218 Red Nylon 13.00 39.00> 4 BN-1218P Red Nylon w/pocket 14.00 56.00>>As you can see, I am getting everything but the
[cart] number. I'm >assuming that this is because the cart number is not part of the line >items in the cart. (Makes sense.)>>Now my question is - How do I get the cart number to be included in the >record that is written to the database?>Ken Grome suggested I try this:>>Try this:>>
[math]thiscart=
[cart][/math]>>
[lineitems]>[append db=NMI_Purchases.db]>CartNum=
[math][thiscart][/math]&Qty=[quantity]&SKU=[SKU]>&ProdName=[ProdName]&Price=[price]>&Extension=[format .2f][quantityPrice][/format]>[/append]>[/lineItems]Ken, I got the same results. No cart number. Any other suggestions. I fooled with all kinds of stuff tonight including trying a
[setlineitem] context, all to no avail. It's so close to what I want. Hope some one can shed some light on it.Jerry Nielsen - comm$TRUCT Associates Jerry N. Nielsen Voice: (626)351-0201comm$TRUCT Associates Fax: (626)351-0033Managing Consultant Cellular: (818)257-29373835 Landfair RoadPasadena, CA 91107We con$TRUCT commerce sites that work the way YOU want them to!Thought for the day: The longest distance between to points is a shortcut.^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jerry Nielsen
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:
Multiple Passwords (1997)
4.0x on production server (2000)
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
Database Field Additions (2000)
Poll Results (2002)
Re:Emailer and encryption (1997)
when is failing to [URL]ize values in a comparison risky? (1999)
Locking up with WebCatalog... (1997)
Passing info in [Addlineitem] (1997)
WebCatalog vs. Cold Fusion (1998)
[WebDNA] Looking for Govinda (2011)
Setting up shop (1997)
WebCatalog for Postcards ? (1997)
WebCat2 - many [carts] on one template page? (1997)
wierd [cart] action! (1997)
[isfolder] and [filename] (1997)
Emailer [cart] file names (1997)
WebCat2 beta 11 - new prefs ... (1997)
supressing math results (1997)
[WebDNA] How to set up new hosting (2013)