Re: writing cart to db

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17934
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?A [redirect] at the bottom of an interim page that performs the WebDNA tasks will work better ... because it won't make the visitor go thru two pages to see the refreshed data. Just put your WebDNA code into the interim page, with nothing else on that page except for a tag at the top.Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net 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?A [redirect] at the bottom of an interim page that performs the WebDNA tasks will work better ... because it won't make the visitor go thru two pages to see the refreshed data. Just put your WebDNA code into the interim page, with nothing else on that page except for a tag at the top.Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net 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:

Search (1997) [DOS]/DOS query perhaps OT (2003) Sorry if this is really stupid but.. (2000) WebCat Bulletin Board Solution ? (1998) Help formatting search results w/ table (1997) calender with business days (1998) Nested vs conditional (1997) No comment (1997) RE: File Uploads: WebCat/SiteEdit (1998) Security hole in WebCat? (1999) Sendmail truncation in Eudora Clients (1998) Switch Case Context (2004) Re:trouble (1997) Webcatalog and foreign languages (1998) Sendmail Enigma (2004) CSV import suggestions (2007) mail on NT (1998) Pithy questions on webcommerce & siteedit (1997) [searchString] (1997) Logging purchases (1997)