Re: taxTotal
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 14899
interpreted = N
texte = >Well, I figured out all of my problems with the [subTotal] and [grandTotal]>and such, yet I'm still having a problem with the [taxTotal] I'm using the>formulas from the tearoom, and on my purchace.tmpl page, WebCat is>returning the value for [ShipTostate] and [taxRate] (ca & 8.25) yet is>showing [taxTotal] as 0.00, from reading the book, is seems that if WebCat>is returning these two values correctly that it should calculate it also?>>>RayRay,for me, things don't always work as expected. I also had a problem with[taxTotal] on my second store. I was following the Tearoom example and Imust not have had taxable set incorrectly. I came up with this workaround.I am not saying that this is the right way to do this. It is simply anotherway.Try this: substitute this $[format.2f][math][taxrate]*[subtotal]*.01[/math][/format] for [taxtotal]If webCat is returning the correct [taxrate] and your [subtotal] iscorrect, then this will work.Also you may wish to substitute a corresponding formula for [grandTotal] asI believe it relies on a correct [taxtotal] to get things right: $[format.2f][math][math][shippingtotal]+[subtotal][/math]+[math][taxrate]*[subtotal]*.01[/math][/math][/format]Ken or Grant can probably tell you exactly how to do it correctly, but thisshould work (and I'm pleased with myself for figuring it out!).Paul _/_/_/_/_/_/_/_/_/_/_/_/|\_\_\_\_\_\_\_\_\_\_\_\_ _/_/_/Paul Uttermohlen, Internet Marketspace, Inc. \_\_\_\_ _/_/_/ mailto:paul@ims1.com - Website Development \_\_\_\_ _/_/_/ Business -
_\_\_\_\_\_\_\_\_\_\_ _/_/_/ Real Estate - _\_\_\_\_ _/_/_/Websites - Children _/ _\_\_\__/_/_/_/_/_/_/_/_/_/_/_/_/_/ | \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
Associated Messages, from the most recent to the oldest:
>Well, I figured out all of my problems with the [subTotal] and [grandTotal]>and such, yet I'm still having a problem with the [taxTotal] I'm using the>formulas from the tearoom, and on my purchace.tmpl page, WebCat is>returning the value for [ShipTostate] and [taxRate] (ca & 8.25) yet is>showing [taxTotal] as 0.00, from reading the book, is seems that if WebCat>is returning these two values correctly that it should calculate it also?>>>RayRay,for me, things don't always work as expected. I also had a problem with[taxTotal] on my second store. I was following the Tearoom example and Imust not have had taxable set incorrectly. I came up with this workaround.I am not saying that this is the right way to do this. It is simply anotherway.Try this: substitute this $[format.2f][math][taxrate]*[subtotal]*.01[/math][/format] for [taxtotal]If webCat is returning the correct [taxrate] and your [subtotal] iscorrect, then this will work.Also you may wish to substitute a corresponding formula for [grandTotal] asI believe it relies on a correct [taxtotal] to get things right: $[format.2f][math][math][shippingtotal]+[subtotal][/math]+[math][taxrate]*[subtotal]*.01[/math][/math][/format]Ken or Grant can probably tell you exactly how to do it correctly, but thisshould work (and I'm pleased with myself for figuring it out!).Paul _/_/_/_/_/_/_/_/_/_/_/_/|\_\_\_\_\_\_\_\_\_\_\_\_ _/_/_/Paul Uttermohlen, Internet Marketspace, Inc. \_\_\_\_ _/_/_/ mailto:paul@ims1.com - Website Development \_\_\_\_ _/_/_/ Business - _\_\_\_\_\_\_\_\_\_\_ _/_/_/ Real Estate - _\_\_\_\_ _/_/_/Websites - Children _/ _\_\_\__/_/_/_/_/_/_/_/_/_/_/_/_/_/ | \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
Paul Uttermohlen
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:
Commitdatabase tag (1998)
SMSI: Forged email addresses on the talk list ... (2002)
Photo Album (2000)
Multiple prices (1997)
2nd WebCatalog2 Feature Request (1996)
Attaching a plain text file via [sendmail] (2001)
QuitFeedback & DBNotOpened errors (1997)
Sendmail truncation in Eudora Clients (1998)
too many nested tags ... (1997)
duplicate cart numbers (2002)
Time for a hard questions. (1997)
Reversed words (1997)
RE: Template Not Found (1998)
Simple way to create unique SKU (1997)
2.0 Info (1997)
Mass Mail (2000)
WebDNA on Intel Mac? (2006)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
Quick Question About Sorting (1997)
Nested tags count question (1997)