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:
REPOST: [numfound] within summ=t (2000)
WebCat2 beta 11 - new prefs ... (1997)
[WebDNA] why is the webdna.us site slow? (sometimes?) (2011)
Automating a Post Method (2000)
User/pass with tcpconnect (2000)
NT considerations (1997)
WebCatalog-NT?'s (1996)
More on the email templates (1997)
[Sum] function? (1997)
[WebDNA] anyone know why webdna kicking out incorrect dates? (2008)
ODBC (2000)
SiteGuard Use Question (1997)
WebCat, The Trend, & Consolidating... (1997)
SiteEdit NewFile.html ? (1997)
OT:looking for developers with solutions (2000)
Balancing randomness (2000)
WebCatalog2 Feature Feedback (1996)
OT: How to Ignore Your Best Customers (2003)
OT: Flash developer needed (2007)
Include a big block of text (1997)