RE: Price recalc based on quantity
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 13217
interpreted = N
texte = Luke -How are you displaying the cart, and where is the [setlineitem] context relative to this? If it's somewhere inside the same [lineitems] loop you're using to display the cart, what normally happens is that you are displaying the cart file, but then also modifying that cart file. When you reload that page you'll see the changes, but you'll also modify the cart file yet again.I've found it's easier to do two [lineitems] loops - one to do your [setlineitem] changes, then another farther down the page to actually display the contents of the cart (now that the cart file has been changed by the earlier [setlineitems] context). If you do it this way, you'll probably want to use two [orderfile] contexts directly on the template instead of using a $showcart command in the URL to get to that template, so that these will be processed in the correct order.I hope this helps and/or makes some sense,Marc EagleStarNine Technologieshttp://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Luke -How are you displaying the cart, and where is the
[setlineitem] context relative to this? If it's somewhere inside the same
[lineitems] loop you're using to display the cart, what normally happens is that you are displaying the cart file, but then also modifying that cart file. When you reload that page you'll see the changes, but you'll also modify the cart file yet again.I've found it's easier to do two
[lineitems] loops - one to do your
[setlineitem] changes, then another farther down the page to actually display the contents of the cart (now that the cart file has been changed by the earlier [setlineitems] context). If you do it this way, you'll probably want to use two
[orderfile] contexts directly on the template instead of using a $showcart command in the URL to get to that template, so that these will be processed in the correct order.I hope this helps and/or makes some sense,Marc EagleStarNine Technologieshttp://www.smithmicro.com/
Marc Eagle
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:
Performance Issue (2000)
Mail Server Needed. (1998)
Signal Raised error (1997)
TCP/IP connect (1998)
startat param not working (2008)
alternatives for WebDNA (2004)
Closing databases (2003)
Summ=T Problem (1997)
Formulas.db + Users.db (1997)
[subtotal] and others (1997)
autocommit problem (1998)
WebCat2b15MacPlugin - showing [math] (1997)
Faxing orders in place of email (1997)
SSL do I need it?? (1998)
line endings for Mac OS X files? (2003)
RE: Answer: WebDelivery downloads alias, not original ? (1997)
I hate talking to myself on this list (2004)
Organisation website (2005)
Summing a field full of numbers ... (1997)
strange math (2004)