Re: Problem with ShoppingCart.tpl refresh
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 28712
interpreted = N
texte = HiThere is some problem with the code on your shoppingcart.tpl the following message appears at the topError: Error: expected [/SHOWIF], but found [/orderfile] instead[/orderfile]Post the code from the page so that we can see whats happeningPaul Willis>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 >-------------------------------------------------------------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:
HiThere is some problem with the code on your shoppingcart.tpl the following message appears at the topError: Error: expected [/SHOWIF], but found [/orderfile] instead[/orderfile]Post the code from the page so that we can see whats happeningPaul Willis>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 >-------------------------------------------------------------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
Paul Willis
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 Hosting (1996)
Updating fields from different platforms (1998)
Running 2 two WebCatalog.acgi's (1996)
problem: search crashes webstar (1997)
how to construct a search for not this entire string? (2000)
Clear/Reset form with JavaScript (2001)
WC2b15 - [HTMLx]...[/HTMLx] problems (1997)
[BULK] [WebDNA] A new commerce system for v7+ (2011)
WebCat 2.1.3 (and docs) (1998)
RE: [WebDNA] Ping....testing....1..2..3.. (2009)
[WebDNA] PayPal IPN - solved (2009)
emailer on Windows Beta 18 (1997)
Summing fields (1997)
Replto in [SendMail] (2000)
3RD POST Character limit in [Search]? (1998)
When is unitShipCost calculated? (1998)
Re1000001: Setting up shop (1997)
WebSTAR and WebSTAR/SSL with WebCatalog plugins (1998)
WC 2.0 frames feature (1997)
Loss in form (1998)