Re: Math Hell!
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 26300
interpreted = N
texte = Just want to make sure (sometimes its the obvious things). Are you in an [orderfile] context or a showcart command? If not, you don't have access to lineitems, grandTotal, etc...At 02:07 PM 1/20/00, you wrote:>I have this same formula on two pages. On one page, the formulas are within>a [sendmail] command. On the other page, it is not. When in the [sendmail]>command, if a customer purchases more than one item...the Grand Total shows>as $0.00, however on the second page...that same cart # (where the customer>purchased more than one item)shows the correct total. Any ideas?!?!?>Please?!?!>>>$[format .2f][math]SubTotalFigure=[lineitems][Quantity]*[showif>[Location]=Fresno][FresnoPrice][/showif][showif>[Location]=Hanford][HanfordPrice][/showif]+[/lineitems]0[/math][/format]>Subtotal>>$[format .2f][math]TaxFigure=[SubTotalFigure]*[showif>[Location]=Fresno]0.07875[/showif][showif>[Location]=Hanford]0.0725[/showif][/math][/format] Tax>>$[format .2f][math]CRVFigure=[lineitems][CRV]+[/lineitems]0[/math][/format]>CRV>>$[format .2f][showif>[math].10*[SubTotalFigure][/math]<10.00][math]DeliveryFigure=10.00[/math][/s>howif][showif>[math].10*[SubTotalFigure][/math]>10.00][math]DeliveryFigure=.10*[SubTotalFi>gure][/math][/showif][/format] Delivery>>$[format>.2f][math][SubTotalFigure]+[TaxFigure]+[CRVFigure]+[DeliveryFigure][/math][/>format] Grand Total>>>------------------------------------------------------------->Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.>To end your Mail problems go to
.>>This message is sent to you because you are subscribed to> the mailing list .>To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >===============================================Howard WoloskyLead Programmer / WebmasterLab2K, LLC+The Pubb - The best solution for your messageboard needs. Written in 100% Webcat. (www.thepubb.com)+Will It Work? -The World's Largest Year 2000 Compliance Search Engine (www.willitwork.com)===============================================-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Associated Messages, from the most recent to the oldest:
Just want to make sure (sometimes its the obvious things). Are you in an [orderfile] context or a showcart command? If not, you don't have access to lineitems, grandTotal, etc...At 02:07 PM 1/20/00, you wrote:>I have this same formula on two pages. On one page, the formulas are within>a [sendmail] command. On the other page, it is not. When in the [sendmail]>command, if a customer purchases more than one item...the Grand Total shows>as $0.00, however on the second page...that same cart # (where the customer>purchased more than one item)shows the correct total. Any ideas?!?!?>Please?!?!>>>$[format .2f][math]SubTotalFigure=[lineitems][Quantity]*[showif>[Location]=Fresno][FresnoPrice][/showif][showif>[Location]=Hanford][HanfordPrice][/showif]+[/lineitems]0[/math][/format]>Subtotal>>$[format .2f][math]TaxFigure=[SubTotalFigure]*[showif>[Location]=Fresno]0.07875[/showif][showif>[Location]=Hanford]0.0725[/showif][/math][/format] Tax>>$[format .2f][math]CRVFigure=[lineitems][CRV]+[/lineitems]0[/math][/format]>CRV>>$[format .2f][showif>[math].10*[SubTotalFigure][/math]<10.00][math]DeliveryFigure=10.00[/math][/s>howif][showif>[math].10*[SubTotalFigure][/math]>10.00][math]DeliveryFigure=.10*[SubTotalFi>gure][/math][/showif][/format] Delivery>>$[format>.2f][math][SubTotalFigure]+[TaxFigure]+[CRVFigure]+[DeliveryFigure][/math][/>format] Grand Total>>>------------------------------------------------------------->Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.>To end your Mail problems go to .>>This message is sent to you because you are subscribed to> the mailing list .>To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >===============================================Howard WoloskyLead Programmer / WebmasterLab2K, LLC+The Pubb - The best solution for your messageboard needs. Written in 100% Webcat. (www.thepubb.com)+Will It Work? -The World's Largest Year 2000 Compliance Search Engine (www.willitwork.com)===============================================-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Howard Wolosky
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:
WebDNA-Talk Digest mode broken (1997)
Authenticate (1997)
Cache headers - WebDNA 5 (2005)
Queertrons? (1997)
unable to launch acgi in WebCat (1997)
searching multiple databases in single search (1997)
can webcat determine an image's pixel dimensions? (2000)
I am dumb. No see [variable] (2003)
Links and urls (2005)
[Replace] (2000)
Using Eudora instead of Emailer, and cron facility (1998)
Question on TABLES (2003)
Simple way to create unique SKU (1997)
RE:DatabaseHelper (1997)
Kaaaaahhhhhhhnnnnnnn! (1997)
Question re: FlushDatabases (1997)
RAM variables (1997)
Need help (1998)
lookups or math? (1998)
Another question (1997)