writing cart to db

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17931
interpreted = N
texte = To get a sortable showcart page I write the items of the cart to a database. Before I show the page, I remove all records from this database which have the current cart number and read the cart into the db again. The following code is on the page, before the [founditems]-loop displays the products:[delete db=cart_show.db&eqCARTdatarq=[cart]] [orderfile cart=[cart]] [lineitems] [Append cart_show.db]..appending the lines of the cart..[/Append] [/lineitems] [/orderfile]It does not work properly. I get the content of the cart as it was before until I reload. I remember, a similar problem was discussed here already - but is there really no other way around, than to insert a page with nothing than a short message and a refresh?Peter __________________________________________ Peter Ostry - po@ostry.com - www.ostry.com Ostry & Partner - Ostry Internet Solutions Auhofstrasse 29 A-1130 Vienna Austria fon ++43-1-8777454 fax ++43-1-8777454-21 Associated Messages, from the most recent to the oldest:

    
  1. Re: writing cart to db (PCS Technical Support 1998)
  2. Re: writing cart to db (Kenneth Grome 1998)
  3. writing cart to db (Peter Ostry 1998)
To get a sortable showcart page I write the items of the cart to a database. Before I show the page, I remove all records from this database which have the current cart number and read the cart into the db again. The following code is on the page, before the [founditems]-loop displays the products:[delete db=cart_show.db&eqCARTdatarq=[cart]] [orderfile cart=[cart]] [lineitems] [Append cart_show.db]..appending the lines of the cart..[/Append] [/lineitems] [/orderfile]It does not work properly. I get the content of the cart as it was before until I reload. I remember, a similar problem was discussed here already - but is there really no other way around, than to insert a page with nothing than a short message and a refresh?Peter __________________________________________ Peter Ostry - po@ostry.com - www.ostry.com Ostry & Partner - Ostry Internet Solutions Auhofstrasse 29 A-1130 Vienna Austria fon ++43-1-8777454 fax ++43-1-8777454-21 Peter Ostry

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:

WebCatalog for guestbook ? (1997) retail and wholesale... (2000) I got caught! (2003) Template not found error messages (1997) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) Db path (2004) Initiating NewCart (1997) frames & carts (1997) date tag not interpreted (2000) price formula (1999) WebCatlog vs ColdFusion White Paper (2000) UK DNA host wanted (2005) Hiding HTML and page breaks (1997) ReturnRaw context (1997) WebTen + WebCatalog Plugin clarification (1998) E-mailer error codes (1997) WSDL Wizard (2003) CommandSecurity? (1997) Here we go again... was: DDEConnect not working (2006) Protect (1997)