Re: taxRate and grandTotal calculation is not showing up on

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 35363
interpreted = N
texte = > My math works.Not always, because it's incorrect.What you have parses out to OK=1 (test is false every time). If the test is going to be false no matter what, what's the point?You shouldn't have to do anything to have [taxtotal] and [taxrate] show up on your thank you page. Which makes me wonder if you're setting them to something meaningless with a [setheader] command...or perhaps you've added something to formulas.db that isn't quite kosher... -- Will Starck NovaDerm Product and Technical Support http://www.novaderm.com techs@novaderm.com> > My math works. The total after tax and tax rate don't show up in the > ThankYou.tpl page. > I just want to know how to pass that info from my Invoice page to the Thank > You page. > > Chuck > > -----Original Message----- > From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On > Behalf Of Will Starck > Sent: Friday, July 28, 2000 12:53 PM > To: WebCatalog Talk > Subject: Re: taxRate and grandTotal calculation is not showing up on > myThankYou.tpl > > > I notice you're attempting to set cart headers for [taxrate] if the > following conditional is true > > [showif [math]OK[/math]=1] > > Shouldn't that read [showif [math][OK][/math]=1] > > ??? > > > > -- > Will Starck > NovaDerm Product and Technical Support > http://www.novaderm.com > techs@novaderm.com > >> From: Systems Admin >> Reply-To: (WebCatalog Talk) >> Date: Fri, 28 Jul 2000 12:07:41 >> To: (WebCatalog Talk) >> Subject: taxRate and grandTotal calculation is not showing up on my >> ThankYou.tpl >> >> Can you help me? >> >> My formulas work fine and the taxRate and totals work fine and show up on >> the invoice page, however, the taxRate and grandTotal do not show up on > the >> ThankYou.tpl page. >> >> [math show=f]OK=1[/math] [showif [__name]=][math > show=f]OK=0[/math][/showif] >> [showif >> [__address]=][math show=f]OK=0[/math][/showif] [showif [__city]=][math >> show=f]OK=0[/math][/showif] >> [showif [__state]=][math show=f]OK=0[/math][/showif] [showif > [__zip]=][math >> show=f]OK=0[/math][/showif] >> [showif [__phone]=][math show=f]OK=0[/math][/showif] [showif >> [math]OK[/math]=0] >> Please go back and enter all the information requested. [/showif] [showif >> [math]OK[/math]=1] >> [showif [validcard accountNum=[convertchars >> db=CleanCard.db][__accountnum][/convertchars]&card=VISA+MC+AMEX]!T] >> [math show=f]OK=0[/math] The credit card number entered ([__accountNum]) > is >> not >> valid. Check to make sure you did not mis-type any numbers or enter any >> extra >> characters. Please back up and re-enter the number again. [/showif] >> [/showif] >> [showif [math]OK[/math]=1] [orderfile cart=[cart]] [SetHeader >> cart=[cart]]TaxTotal=[taxTotal]payMethod=[showif >> [useAC]=T]AC[/showif][hideif [useAC]=T]CC[/hideif]&[formvariables >> name=__&exact=F][getchars >> start=3][name][/getchars]=[url][value][/url]&[/formvariables][/SetHeader] >> >> [lineItems] >> >> > size=2> >> >> [lineindex] >> > size=2>[quantity] >> > size=2>[sku] >> > size=2>[textA] >> > size=2>$[price] >> > size=2>$[math][quantity]*[price][/math] >> >> [/lineItems] >> >> > size=2>Subtotal >> > size=2>$[subTotal] >> >> >> > size=2>[ShipTostate] >> Tax Rate: [taxRate] % Tax >> > size=2>$[taxTotal] >> >> >> > size=2>[shipVia] >> Shipping & Handling >> > size=2>$[shipCost] >> >> >> > size=2>Grand >> Total >> > size=2>$[grandTotal] >> >> >> >> You can see a live example of this by filling out a dummy order at the >> following address: http://www.metpromo.com/boc >> >> >> ------------------------------------------------------------- >> 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 >> >> Web Archive of this list is at: http://search.smithmicro.com/ > > > ------------------------------------------------------------- > 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 > > Web Archive of this list is at: http://search.smithmicro.com/ > > > ------------------------------------------------------------- > 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 > > Web Archive of this list is at: http://search.smithmicro.com/ ------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: taxRate and grandTotal calculation is not showing up on myThankYou.tpl (Rob Marquardt 2000)
  2. Re: taxRate and grandTotal calculation is not showing up on (Will Starck 2000)
  3. Re: taxRate and grandTotal calculation is not showing up on myThankYou.tpl (Systems Admin 2000)
  4. Re: taxRate and grandTotal calculation is not showing up on my (Will Starck 2000)
  5. taxRate and grandTotal calculation is not showing up on my ThankYou.tpl (Systems Admin 2000)
> My math works.Not always, because it's incorrect.What you have parses out to OK=1 (test is false every time). If the test is going to be false no matter what, what's the point?You shouldn't have to do anything to have [taxtotal] and [taxrate] show up on your thank you page. Which makes me wonder if you're setting them to something meaningless with a [setheader] command...or perhaps you've added something to formulas.db that isn't quite kosher... -- Will Starck NovaDerm Product and Technical Support http://www.novaderm.com techs@novaderm.com> > My math works. The total after tax and tax rate don't show up in the > ThankYou.tpl page. > I just want to know how to pass that info from my Invoice page to the Thank > You page. > > Chuck > > -----Original Message----- > From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On > Behalf Of Will Starck > Sent: Friday, July 28, 2000 12:53 PM > To: WebCatalog Talk > Subject: Re: taxRate and grandTotal calculation is not showing up on > myThankYou.tpl > > > I notice you're attempting to set cart headers for [taxrate] if the > following conditional is true > > [showif [math]OK[/math]=1] > > Shouldn't that read [showif [math][OK][/math]=1] > > ??? > > > > -- > Will Starck > NovaDerm Product and Technical Support > http://www.novaderm.com > techs@novaderm.com > >> From: Systems Admin >> Reply-To: (WebCatalog Talk) >> Date: Fri, 28 Jul 2000 12:07:41 >> To: (WebCatalog Talk) >> Subject: taxRate and grandTotal calculation is not showing up on my >> ThankYou.tpl >> >> Can you help me? >> >> My formulas work fine and the taxRate and totals work fine and show up on >> the invoice page, however, the taxRate and grandTotal do not show up on > the >> ThankYou.tpl page. >> >> [math show=f]OK=1[/math] [showif [__name]=][math > show=f]OK=0[/math][/showif] >> [showif >> [__address]=][math show=f]OK=0[/math][/showif] [showif [__city]=][math >> show=f]OK=0[/math][/showif] >> [showif [__state]=][math show=f]OK=0[/math][/showif] [showif > [__zip]=][math >> show=f]OK=0[/math][/showif] >> [showif [__phone]=][math show=f]OK=0[/math][/showif] [showif >> [math]OK[/math]=0] >> Please go back and enter all the information requested. [/showif] [showif >> [math]OK[/math]=1] >> [showif [validcard accountNum=[convertchars >> db=CleanCard.db][__accountnum][/convertchars]&card=VISA+MC+AMEX]!T] >> [math show=f]OK=0[/math] The credit card number entered ([__accountNum]) > is >> not >> valid. Check to make sure you did not mis-type any numbers or enter any >> extra >> characters. Please back up and re-enter the number again. [/showif] >> [/showif] >> [showif [math]OK[/math]=1] [orderfile cart=[cart]] [SetHeader >> cart=[cart]]TaxTotal=[taxTotal]payMethod=[showif >> [useAC]=T]AC[/showif][hideif [useAC]=T]CC[/hideif]&[formvariables >> name=__&exact=F][getchars >> start=3][name][/getchars]=[url][value][/url]&[/formvariables][/SetHeader] >> >> [lineitems] >> >> > size=2> >> >> [lineindex] >> > size=2>[quantity] >> > size=2>[sku] >> > size=2>[textA] >> > size=2>$[price] >> > size=2>$[math][quantity]*[price][/math] >> >> [/lineItems] >> >> > size=2>Subtotal >> > size=2>$[subTotal] >> >> >> > size=2>[ShipTostate] >> Tax Rate: [taxRate] % Tax >> > size=2>$[taxTotal] >> >> >> > size=2>[shipVia] >> Shipping & Handling >> > size=2>$[shipCost] >> >> >> > size=2>Grand >> Total >> > size=2>$[grandTotal] >> >> >> >> You can see a live example of this by filling out a dummy order at the >> following address: http://www.metpromo.com/boc >> >> >> ------------------------------------------------------------- >> 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 >> >> Web Archive of this list is at: http://search.smithmicro.com/ > > > ------------------------------------------------------------- > 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 > > Web Archive of this list is at: http://search.smithmicro.com/ > > > ------------------------------------------------------------- > 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 > > Web Archive of this list is at: http://search.smithmicro.com/ ------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ Will Starck

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:

Cannot calculate prices (1997) Country & Ship-to address & other fields ? (1997) [SHOWIF AND/OR] (1997) Languages (1997) Not carrying Zero (2000) 'does not contain' operator needed ... (1997) MS Commerce Comparison (long) (1998) WebCatalog 2.0 & WebDNA docs in HTML ... (1997) Online magazine- monthly updates and such (1999) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Founditems context returning only 1 item (1997) WebCat & Liststar (1997) Ampersand (1997) encrypt/decrypt (2001) [protect admin] (1997) Credit card issuer by cc number? (1999) unable to launch acgi in WebCat (1997) re:check boxes (1997) Frames and WebCat (1997) SKU (1997)