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:

Extract my page name (2006) Workaround for Emailer doubled bcc messages (1998) t or f (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Stopping NT WebCat service (1998) (1997) Not really WebCat - need HTML Grider (1997) Cart ID Duplication (2001) WebCat2: multiple currency support (1997) Page Counters? (1997) WC2.0 Memory Requirements (1997) WebCat & WebTen (1997) Press Release hit the NewsWire!!! (1997) foreign languages, email, webcat (1998) stumped (2001) Reminder for beta testers (2000) suffix mapping for NT? (1997) [LOOKUP] (1997) [table] strange behaviour (2003) WebCommerce: Folder organization ? (1997)