more on the Shipcost update problem
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 15700
interpreted = N
texte = It seems that the subtotal is being calculated *after* the shipping cost. If I go back to the shopping cart page and and 'Proceede to Final Checkout'without doing anything, it works fine. Any way to change the calc order, or do I have to do the sub totalfrom the Formulas.dbThanks- Jim> I've been using Janna's shipping example with different ranges.> $1-$30 = $5.95 ...>>It works the 1st time, but when I go back to the Shopping cart and change the>quanity, and 'Proceede to Final Checkout' it does not update the Shipping>& Handling field,>and the Total is wrong.>>I also put this line in the Invoice.tmpl to see what is going on, and it>returns the>correct - latest - shipping info.>[lookup db=ship.db&lookInField=subtot&value=[format>.0f][subtotal][/format]&returnField=shipping¬Found=over$800, Please call]>>If I cmd reload the page (and repost the data) then everything works.>>Q: how do I force a shiping re-calc on the Invoice.tmpl or whatever it> takes to get it to work.
Associated Messages, from the most recent to the oldest:
|
- more on the Shipcost update problem (Jim Lanford 1997)
|
It seems that the subtotal is being calculated *after* the shipping cost. If I go back to the shopping cart page and and 'Proceede to Final Checkout'without doing anything, it works fine. Any way to change the calc order, or do I have to do the sub totalfrom the
formulas.dbThanks- Jim> I've been using Janna's shipping example with different ranges.> $1-$30 = $5.95 ...>>It works the 1st time, but when I go back to the Shopping cart and change the>quanity, and 'Proceede to Final Checkout' it does not update the Shipping>& Handling field,>and the Total is wrong.>>I also put this line in the Invoice.tmpl to see what is going on, and it>returns the>correct - latest - shipping info.>[lookup db=ship.db&lookInField=subtot&value=[format>.0f][subtotal][/format]&returnField=shipping¬Found=over$800, Please call]>>If I cmd reload the page (and repost the data) then everything works.>>Q: how do I force a shiping re-calc on the Invoice.tmpl or whatever it> takes to get it to work.
Jim Lanford
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:
Problem during evaluation of WebCatalog (1998)
WebCatalog can't find database (1997)
Createfolder OSX WC3.08 (2001)
WebCat2b13MacPlugIn - [include] (1997)
[shownext] not displaying anything but first indices found (2000)
Protect (1997)
taxTotal, grandTotal (1997)
Dark Horse Comics success story (1997)
question: Eudora 3.1.1 (1997)
[WebDNA] [TCPSend] Test email address??? (2011)
Before I Can Begin . . . (1998)
[WebDNA] [BULK] WebDNA 7 and Mac OS X (10.6.7) Server Version [installation] (2011)
[WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (2012)
Out of the woodwork (2007)
Auto Unsubscribe (2000)
[LOOKUP] (1997)
delete a file? (1998)
Apple event reply error (-1) (1997)
Large sites (2003)
Preliminary Vendor Solicitation (2004)