Re: How can I record purchases to a database?
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 17814
interpreted = N
texte = .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?>>It looks like you have to loop through the lineitems to get the informationyou want from the cart, but that you have to append the cart value outsideof a lineitems loop in order for it to stick.Not being familiar with the context, can youa) build the record by looping through the lineitems as a separate step andwriting them to a variable before you appendor b) do a second append to add the cart number?If nothing else (it seems kind of convoluted), you append the record withjust the lineitems, find the record and then replace it with the cartnumber included.fwiwChris GurscheEC&T Electronic Colour & Type CorpChris GurscheCopyDot
Associated Messages, from the most recent to the oldest:
.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?>>It looks like you have to loop through the lineitems to get the informationyou want from the cart, but that you have to append the cart value outsideof a lineitems loop in order for it to stick.Not being familiar with the context, can youa) build the record by looping through the lineitems as a separate step andwriting them to a variable before you appendor b) do a second append to add the cart number?If nothing else (it seems kind of convoluted), you append the record withjust the lineitems, find the record and then replace it with the cartnumber included.fwiwChris GurscheEC&T Electronic Colour & Type CorpChris GurscheCopyDot
Chris Gursche
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:
UPPERCASE (1997)
Repeating Fields (1997)
[protect admin] (1997)
https validation (2001)
normal users.db calls ... (1998)
Can't test the beta (2000)
Weird error/limit - something amiss? (1997)
Online reference (1997)
[delete] problem (1997)
Shipping [grandtotal] solution (1997)
[WebDNA] HMAC-SHA1 Encryption (2013)
E-mailer error codes (1997)
Using Plug-In while running 1.6.1 (1997)
Summary search -- speed (1997)
Statistics... (2004)
WebDNA v6.0 (2004)
sort problems....bug or brain fart? (1997)
Test (2002)
Need correct syntax for writing to header2 (1999)
2.0 Info (1997)