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:
Re:Removing items from a cart is wonky... (1998)
LetterRip and WebCat & more (1998)
For those of you not on the WebCatalog Beta... (1997)
Ok here is a question? (1997)
Paths (1998)
Anyone using unix? Having problems... (2000)
Summing fields (1997)
[WriteFile] problems (1997)
[WebDNA] [BULK] Securing WebCatalog login (2017)
More on the email templates (1997)
Separate SSL Server (1997)
Setting up shop (1997)
Create Folder Question... (2000)
OH MY GOD! (1998)
[taxRate] [TaxTotal] ? (1997)
Quiz question: Return all green and blank records? (2001)
Generating unique SKU from [cart] (1997)
Slightly off-topic hits to purchase ratio? (1999)
[movefile] (1999)
WebCat2b12 forgets serial # (1997)