Re: Problem with ShoppingCart.tpl refresh
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 28703
interpreted = N
texte = on 3/8/00 12:32 PM, Kevin Lippert at lippert@papress.com wrote:> I'm using a modified version of the Tea Room ShoppingCart.tpl page to> display a shopping cart both as an item is added, and as they are removed> from a cart (here the Remove command calls ShoppingCart.tpl recursively,> as in the example).> > However, the page doesn't always display the correct information, and> requires a refresh or a call to a ShowCart link to show the proper> contents of the cart. For example, when I add an item, it calls> ShoppingCart.tpl but doesn't display the recent addition unless I click> on a View your cart link---then the new item displays. Ditto for> Remove this item; it doesn't update to show the item gone.> > I tried adding the [setmimeheader] items someone posted yesterday on an> unrelated matter to keep the user's browser from caching, but this hasn't> made a difference.>> [SETMIMEHEADER name=Pragma&value=no-cache]>> [SETMIMEHEADER name=Expires&value=Thu, 01 Dec 1994 16:00:00 GMT]>> [SETMIMEHEADER name=Cache-Control&value=max-age=0]> > I also tried adding xxx=[random][random][random]...> > Feel free to try this at:> http://www.copernicusbooks.com> > Add an item; the ShoppingCart page will show nothing is available; click> on VIEW CART in the left toolbar and the showcart command will display> the proper info.> > Now, my there is nothing in your cart is based on this test:> [orderfile cart=[cart]]> [showif [numlineitems]>0]> Is this what's screwing me up? If so, why? And is there an easier way to> test for an empty cart?> > Thanks in advance!> > Kevin Lippert> > > -------------------------------------------------------------> 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> > Kevin I had that problem also, so what it came down to for me was I wasn'tadding the &cart=[cart] to all links and subsequent links. So when I'm atyour home page I picked a book rare earthhttp://www.copernicusbooks.com/Detail.tpl?cart=3035369084725&ISBN=0387987010so when I added & to this link likehttp://www.copernicusbooks.com/Detail.tpl?&cart=3035369084725&ISBN=0387987010reloaded page then add book to cart it worked, hope this helps. I'm justbeginner so sorry if this incorrect info.I also added tag [cart] to my pages to see were I was losing cart numbers-------------------------------------------------------------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
Associated Messages, from the most recent to the oldest:
on 3/8/00 12:32 PM, Kevin Lippert at lippert@papress.com wrote:> I'm using a modified version of the Tea Room ShoppingCart.tpl page to> display a shopping cart both as an item is added, and as they are removed> from a cart (here the Remove command calls ShoppingCart.tpl recursively,> as in the example).> > However, the page doesn't always display the correct information, and> requires a refresh or a call to a ShowCart link to show the proper> contents of the cart. For example, when I add an item, it calls> ShoppingCart.tpl but doesn't display the recent addition unless I click> on a View your cart link---then the new item displays. Ditto for> Remove this item; it doesn't update to show the item gone.> > I tried adding the [setmimeheader] items someone posted yesterday on an> unrelated matter to keep the user's browser from caching, but this hasn't> made a difference.>> [SETMIMEHEADER name=Pragma&value=no-cache]>> [SETMIMEHEADER name=Expires&value=Thu, 01 Dec 1994 16:00:00 GMT]>> [SETMIMEHEADER name=Cache-Control&value=max-age=0]> > I also tried adding xxx=[random][random][random]...> > Feel free to try this at:> http://www.copernicusbooks.com> > Add an item; the ShoppingCart page will show nothing is available; click> on VIEW CART in the left toolbar and the showcart command will display> the proper info.> > Now, my there is nothing in your cart is based on this test:> [orderfile cart=[cart]]> [showif [numlineitems]>0]> Is this what's screwing me up? If so, why? And is there an easier way to> test for an empty cart?> > Thanks in advance!> > Kevin Lippert> > > -------------------------------------------------------------> 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> > Kevin I had that problem also, so what it came down to for me was I wasn'tadding the &cart=[cart] to all links and subsequent links. So when I'm atyour home page I picked a book rare earthhttp://www.copernicusbooks.com/Detail.tpl?cart=3035369084725&ISBN=0387987010so when I added & to this link likehttp://www.copernicusbooks.com/Detail.tpl?&cart=3035369084725&ISBN=0387987010reloaded page then add book to cart it worked, hope this helps. I'm justbeginner so sorry if this incorrect info.I also added tag [cart] to my pages to see were I was losing cart numbers-------------------------------------------------------------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
Lee Selvog
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:
OT: recover corrupted data (2003)
WebDNA tags in WebMerchant email templates ... (1997)
[WebDNA] Local Development On Windows 8.1 (2015)
RE: protect tag on NT (1997)
Not reading code (1997)
Cart# (1997)
[OT] Am I an Idiot? (2004)
OFF-TOPIC: Lending investors ... (2002)
multiple search commands (1997)
redirect from the errorsMessages.db entry (1997)
RE: Checkboxes to add to cart... (1998)
CommandSecurity? (1997)
Multiple Pulldowns (1997)
RE: Clearing orders and database help! (1997)
The Depths of Credit Card Payment (2003)
sandboxes with 6.0 (2004)
Web Merchant process after credit card clears (1998)
grep question - removing spaces (2005)
How about this? (1998)
Emailer port change (1997)