Re: Browser Caching
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 52640
interpreted = N
texte = I suspect that you're right and that I'm not getting *something* right withthe [orderfile] context. I don't see the problem, so let me post some code.Basically I've got a purchase.tpl page where the following link exists forthe customer to add the product (it's a single-product site by the way) totheir shopping cart:
BuyThe following code is from the viewcart.tpl page, which is the page thatshows the contents of the shopping cart. The case of _Action=Add is invokedwhen the customer clicks on the above link on the product purchase page. The_Action=Remove is invoked when the customer clicks on the "remove" link nextto the lineitem (see code below) on the shopping cart page. The_Action=Update is invoked when the customer changes the quantity in the formfield of the lineitem on the shopping cart page and hits the return key tosubmit the form (see code below).----------------------------------------------[Switch value=[_Action]] [Case value=Add] [addlineitemcart=[cart]&SKU=[_SKU]&db=/db/Products.db]quantity=1[/addlineitem] [/Case] [Case value=Remove] [removelineitem cart=[cart]&index=[_LineIndex]] [/Case] [Case value=Update] [setlineitemcart=[cart]&index=[_LineIndex]]quantity=[_NewQty][/setlineitem] [/Case][/Switch][orderfile cart=[cart]]....[lineitems]
remove | [lookup db=/db/Products.db&lookInField=SKU&value=[SKU]&returnField=Title] | | [format .2f][price][/format] | [format .2f][math][price]*[quantity][/math][/format] |
[/lineitems]....[/orderfile]----------------------------------------------Thanks in advance for looking at this and making suggestions!BrianOn 9/3/03 1:22 PM, "John Peacock"
wrote:> Brian Wachter wrote:> >> Thanks for the response, Donovan. Actually I caught that issue earlier. The>> hierarchy is correct, I flushed everything and the issue remains. Any other>> suggestions?>> > > Actually, I suspect Donovan is correctly diagnosing the problem (which we had> at > one point also). If you hit refresh, does it display the correct contents?> How > are you displaying the cart page (i.e. are you using a command like showpage> or > showcart)? How are you adding the items to the cart (i.e. are you using the> 'add' command or the [addlineitem] context)?> > The issue is that if you are using the [addlineitem] context on a page that is> already in an implied [orderfile] context, the changes will not show up until> you hit the page again, as the inner [orderfile] context is ignored since the> page is already in an implied [orderfile] context.> > John-------------------------------------------------------------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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
I suspect that you're right and that I'm not getting *something* right withthe [orderfile] context. I don't see the problem, so let me post some code.Basically I've got a purchase.tpl page where the following link exists forthe customer to add the product (it's a single-product site by the way) totheir shopping cart:[cart]&_Action=Add&_SKU=1001">BuyThe following code is from the viewcart.tpl page, which is the page thatshows the contents of the shopping cart. The case of _Action=Add is invokedwhen the customer clicks on the above link on the product purchase page. The_Action=Remove is invoked when the customer clicks on the "remove" link nextto the lineitem (see code below) on the shopping cart page. The_Action=Update is invoked when the customer changes the quantity in the formfield of the lineitem on the shopping cart page and hits the return key tosubmit the form (see code below).----------------------------------------------[Switch value=[_Action]] [Case value=Add] [addlineitemcart=[cart]&SKU=[_SKU]&db=/db/Products.db]quantity=1[/addlineitem] [/Case] [Case value=Remove] [removelineitem cart=[cart]&index=[_LineIndex]] [/Case] [Case value=Update] [setlineitemcart=[cart]&index=[_LineIndex]]quantity=[_NewQty][/setlineitem] [/Case][/Switch][orderfile cart=[cart]]....[lineitems][cart]&_Action=Remove&_LineIndex=[LineIndex]">remove | [lookup db=/db/Products.db&lookInField=SKU&value=[SKU]&returnField=Title] | | [format .2f][price][/format] | [format .2f][math][price]*[quantity][/math][/format] |
[/lineitems]....[/orderfile]----------------------------------------------Thanks in advance for looking at this and making suggestions!BrianOn 9/3/03 1:22 PM, "John Peacock" wrote:> Brian Wachter wrote:> >> Thanks for the response, Donovan. Actually I caught that issue earlier. The>> hierarchy is correct, I flushed everything and the issue remains. Any other>> suggestions?>> > > Actually, I suspect Donovan is correctly diagnosing the problem (which we had> at > one point also). If you hit refresh, does it display the correct contents?> How > are you displaying the cart page (i.e. are you using a command like showpage> or > showcart)? How are you adding the items to the cart (i.e. are you using the> 'add' command or the [addlineitem] context)?> > The issue is that if you are using the [addlineitem] context on a page that is> already in an implied [orderfile] context, the changes will not show up until> you hit the page again, as the inner [orderfile] context is ignored since the> page is already in an implied [orderfile] context.> > John-------------------------------------------------------------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://webdna.smithmicro.com/
Brian Wachter
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:
ConverChars (1999)
W* V4.2 SSL and webcat very slow (2000)
Multiple serial numbers (1997)
[OT] .htaccess & SSL (2004)
WebCatalog NT beta 18 problem (1997)
Which GUI HTML editors work with WC ? (1997)
New servers and new inline cache (1997)
[defined]ish (1997)
Weird Math and SV (1997)
Sort Order on a page search (1997)
Access Denied! But why? (1997)
PCS Frames (1997)
Making Thumbnail Graphics (1997)
Upgrade probems (2000)
Online reference (1997)
using showpage and showcart commands (1996)
in string ??? (2001)
Sorry WebDNA server not running. error (2002)
Version f1 status (1997)
color and size options (1997)