Forcing price recalculation in shopping cart
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 20177
interpreted = N
texte = Hi Web-Catters,My price calculation in Formulas.db is based on quantity ordered (we havevarious quantity discounts on many products).Problem: When the user changes the quantity on the page I've designed forthat (discounts.html), and shoppingcart.html comes up to process the changeand reflect the new quantities, *it doesn't recalculate the pricing*.How can I make it do that?I'll include the code I'm using to process the quantity change, in case ithelps:From shoppingcart.html (which is called with default showpage command):[orderfile cart=[cart]] ...[showif [action]=updatequantities][lineitems][setlineitemcart=[cart]&db=upline.db&index=[lineindex]]quantity=[interpret][quantity[lineindex]][/interpret]&price=[price][/setlineitem][/lineitems] [/showif] ...[/orderfile]Thanks in advance!Lukeupline___________________________________________________________________________Upline Subscribers succeed faster. Find out why:Send e-mail to why@upline.com for an instant FREE report!___________________________________________________________________________For software for Network Marketers, check out http://www.kaizensoft.comUpline is Online: http://www.upline.com___________________________________________________________________________ ============================ Luke Melia|| In between stimulus |||| and response, || Snail Mail:|| there is a small || 106 South St. Suite 209|| space... || Charlottesville, VA 22902 ======= Victor Frankl ======= (804) 979-4427 x136
Associated Messages, from the most recent to the oldest:
Hi Web-Catters,My price calculation in
formulas.db is based on quantity ordered (we havevarious quantity discounts on many products).Problem: When the user changes the quantity on the page I've designed forthat (discounts.html), and shoppingcart.html comes up to process the changeand reflect the new quantities, *it doesn't recalculate the pricing*.How can I make it do that?I'll include the code I'm using to process the quantity change, in case ithelps:From shoppingcart.html (which is called with default showpage command):[orderfile cart=
[cart]] ...[showif [action]=updatequantities]
[lineitems][setlineitemcart=
[cart]&db=upline.db&index=[lineindex]]quantity=
[interpret][quantity[lineindex]][/interpret]&price=[price][/setlineitem][/lineitems] [/showif] ...[/orderfile]Thanks in advance!Lukeupline___________________________________________________________________________Upline Subscribers succeed faster. Find out why:Send e-mail to why@upline.com for an instant FREE report!___________________________________________________________________________For software for Network Marketers, check out http://www.kaizensoft.comUpline is Online: http://www.upline.com___________________________________________________________________________ ============================ Luke Melia|| In between stimulus |||| and response, || Snail Mail:|| there is a small || 106 South St. Suite 209|| space... || Charlottesville, VA 22902 ======= Victor Frankl ======= (804) 979-4427 x136
Luke Melia
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:
Search over 500 (2000)
RE: Web*SSL and WebCatalog (1997)
MS Commerce Comparison (long) (1998)
Limitations on fields? Server is crashing (1997)
[encrypt] entire site? (2003)
Multiple prices (1997)
I want a 404 (2005)
Is setting a basic lineitem in the cart really magic? (2000)
Showif, Hideif reverse logic ? (1997)
Mac v. NT (1998)
WebCommerce: Folder organization ? (1997)
& in Lookups (1997)
RE: Languages (1997)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
[WebDNA] mac osx permissions problem (2010)
WebCatalog can't find database (1997)
Images (2003)
WebCat 2.1beta etc (1997)
Just Testing (1997)
Searching multiple Databases (1997)