numlineitems possible cache problem.

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 33836
interpreted = N
texte = In a page I'm working on I have a simple sentence on the results page and the shoppingcart page that reads 2 Items in The Cart. 2 actually being the number of items in the cart file retreived from the following:[orderfile cart=[cart]][numlineitems][/orderfile]This works great on both pages except for one instance... When I add an item to the cart the [numlineitems] displays 1 less than is actually in the cart. So the user is looking at three items in the cart, yet the sentence tells them there is only 2. If I refresh the page it displays the correct numberI believe the Lineitem that just got added hasn't actually been written to the cart file yet, just to ram, so the numlineitems doesn't see it yet. Is this right? Any way around it? -- Thanks in advance, Robert Wade ====================== CABIN6 Design================================================ |[ //\ ||} || ||\| V| ================================================www.cabin6.com =============== robert@cabin6.com------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: numlineitems possible cache problem. (WebDNA Support 2000)
  2. numlineitems possible cache problem. (Robert Wade 2000)
In a page I'm working on I have a simple sentence on the results page and the shoppingcart page that reads 2 Items in The Cart. 2 actually being the number of items in the cart file retreived from the following:[orderfile cart=[cart]][numlineitems][/orderfile]This works great on both pages except for one instance... When I add an item to the cart the [numlineitems] displays 1 less than is actually in the cart. So the user is looking at three items in the cart, yet the sentence tells them there is only 2. If I refresh the page it displays the correct numberI believe the Lineitem that just got added hasn't actually been written to the cart file yet, just to ram, so the numlineitems doesn't see it yet. Is this right? Any way around it? -- Thanks in advance, Robert Wade ====================== CABIN6 Design================================================ |[ //\ ||} || ||\| V| ================================================www.cabin6.com =============== robert@cabin6.com------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Robert Wade

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:

Welcome! (2000) Help! WebCat2 bug (1997) Search for specific characters in a string (2005) Caching [include] files ... (1997) Is there an alternative to emailer? (1999) My own list archives (2001) Blank orders after update to 5.1 (2004) carriage returns in data (1997) showif and cart (1997) Sending mail (2003) WordBreak Qestion (1998) RE: Emailer on NT! (1998) db updating? (2000) syntax question, not in online refernce (1997) Probably a very simple question? (1997) Refering page (1998) Pixel parameters (2000) Setting up shop (1997) WebCat2 several catalogs? (1997) NT vs Mac (1997)