Re: Shipping cost out of synch
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 17207
interpreted = N
texte = >>If a quantity is changed on the cart page, then the update button is>>clicked (generating a $showpage), the shipping cost does not reflect the>>new quantity, unless the update button is clicked again. The subtotal is>>always shown correctly with the new quantity.>>A ShowCart command would be needed, not a ShowPage. What version of>WebCatalog are you using?Whoops, a typo. I am using showcart. WebCat 2.1 CGI for Mac.I have since found a workaround: If I use the WebDNA from formula.db where[shipcost] was used before, it works correctly! I use a [math] variable asthe result, then I can use [math][subtotal]+scost[/math] to show the grandtotal correctly.It works, but the other way should work, otherwise whats the point ofhaving a formulas.db? Just to be clear, the page is like the following,initiated with a $showcart:[lineitems] [showif [quantity]>0] all the usual stuff for line items-- qty is OK [/showif][/lineitems]subtotal: [subtotal] (correct)shipping cost: [shipcost] (shows value before page submitted)shipping cost: [math]scost=<
>[/math](correct)Total: [grandtotal] (shows value before page submitted)Total: [math][subtotal]+scost[/math] (correct)
Associated Messages, from the most recent to the oldest:
>>If a quantity is changed on the cart page, then the update button is>>clicked (generating a $showpage), the shipping cost does not reflect the>>new quantity, unless the update button is clicked again. The subtotal is>>always shown correctly with the new quantity.>>A ShowCart command would be needed, not a ShowPage. What version of>WebCatalog are you using?Whoops, a typo. I am using showcart. WebCat 2.1 CGI for Mac.I have since found a workaround: If I use the WebDNA from formula.db where[shipcost] was used before, it works correctly! I use a [math] variable asthe result, then I can use [math][subtotal]+scost[/math] to show the grandtotal correctly.It works, but the other way should work, otherwise whats the point ofhaving a formulas.db? Just to be clear, the page is like the following,initiated with a $showcart:[lineitems] [showif [quantity]>0] all the usual stuff for line items-- qty is OK [/showif][/lineitems]subtotal: [subtotal] (correct)shipping cost: [shipcost] (shows value before page submitted)shipping cost: [math]scost=<>[/math](correct)Total: [grandtotal] (shows value before page submitted)Total: [math][subtotal]+scost[/math] (correct)
Thomas Wedderburn-Bisshop
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:
WebCat2 Append problem (B14Macacgi) (1997)
Error:Too many nested [xxx] contexts (1997)
How about this? (1998)
PIXO (1997)
Multi Actions (1999)
Plugin or CGI or both (1997)
[WebDNA] Here's how you can help (2008)
international time (1997)
Need some feedback, please. (2003)
(1997)
Dashes and dots in credit card (1998)
Browsername (1998)
& in Lookups (1997)
Command=Showcart? (2000)
2.0 Info (1997)
Virtual hosting and webcatNT (1997)
Multiple fields on 1 input (1997)
[cart] not being interpreted inside [founditems] (1997)
Template not found error messages (1997)
Problems with [Applescript] (1997)