Orderfile, Grandtotal: How do I get it to all add up.

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 31725
interpreted = N
texte = The following code is my Invoice.tpl page. I need grand total to reflect the total of all extension prices (item price + unitShipCost) + ShipCost + taxTotal. My [subTotal] is not picking up the extension prices and my [grandTotal] is not picking up my calculated tax value.How does [grandTotal] know what to calculate? Can I set those values?Thanks in advance. [orderfile cart=[cart]][SetHeader cart=[cart]]shipVia=[url][__shipVia][/url]&shipToState=[url][__shipToState][/url]&CartIPAddress=[ipAddress][/SetHeader] [lineitems] [SetLineItem cart=[cart]&index=[lineindex]]quantity=[interpret][quantity[lineindex]][/interpret]&textA=[url][lookup db=fitproducts.db&lookinfield=sku&value=[url][sku][/url]&returnfield=title][/url][/SetLineItem] [/lineitems]

Billing & Shipping Info

[ Change Quantities, Shipping, or Ship-To State | Shop Some More ]

Place Your Order

Your Order Number is #[cart]

[lineItems] [/lineItems]
Item #QtyProduct #Product NamePriceUnit Ship CostExtension
[lineIndex][quantity][sku][textA]$[price]$[unitShipCost]$[format .2f][math][quantity]*[price]+[unitShipCost][/math][/format]
Subtotal$[subTotal]
[shipTostate] Tax Rate: [taxRate]% Tax$[format .2f][math][subTotal]*[taxRate]/100[/math][/format]
[shipVia] Shipping & Handling$[shippingTotal]
Grand Total$[grandTotal]

Please enter the following information so that we may process your order.

[include file=InvoiceInfo.inc]

[/orderfile]------------------------------------------------------------- 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: Repost: Orderfile, Grandtotal: How do I get it to all add up. (WebDNA Support 2000)
  2. Re: Repost: Orderfile, Grandtotal: How do I get it to all add up. (Bob McPeak 2000)
  3. Re: Repost: Orderfile, Grandtotal: How do I get it to all add up. (WebDNA Support 2000)
  4. Re: Repost: Orderfile, Grandtotal: How do I get it to all add up. (Bob McPeak 2000)
  5. Re: Repost: Orderfile, Grandtotal: How do I get it to all add up. (WebDNA Support 2000)
  6. Repost: Orderfile, Grandtotal: How do I get it to all add up. (Bob McPeak 2000)
  7. Orderfile, Grandtotal: How do I get it to all add up. (Bob McPeak 2000)
The following code is my Invoice.tpl page. I need grand total to reflect the total of all extension prices (item price + unitShipCost) + ShipCost + taxTotal. My [subTotal] is not picking up the extension prices and my [grandTotal] is not picking up my calculated tax value.How does [grandTotal] know what to calculate? Can I set those values?Thanks in advance. [orderfile cart=[cart]][SetHeader cart=[cart]]shipVia=[url][__shipVia][/url]&shipToState=[url][__shipToState][/url]&CartIPAddress=[ipaddress][/SetHeader] [lineitems] [SetLineItem cart=[cart]&index=[lineindex]]quantity=[interpret][quantity[lineindex]][/interpret]&textA=[url][lookup db=fitproducts.db&lookinfield=sku&value=[url][sku][/url]&returnfield=title][/url][/SetLineItem] [/lineitems]

Billing & Shipping Info

[ [cart]>Change Quantities, Shipping, or Ship-To State | [cart]>Shop Some More ]

Place Your Order

Your Order Number is #[cart]

[cart]> [lineitems] [/lineItems]
Item #QtyProduct #Product NamePriceUnit Ship CostExtension
[lineIndex][quantity][sku][textA]$[price]$[unitShipCost]$[format .2f][math][quantity]*[price]+[unitShipCost][/math][/format]
Subtotal$[subTotal]
[shipTostate] Tax Rate: [taxRate]% Tax$[format .2f][math][subTotal]*[taxRate]/100[/math][/format]
[shipVia] Shipping & Handling$[shippingTotal]
Grand Total$[grandTotal]

Please enter the following information so that we may process your order.

[include file=InvoiceInfo.inc]

[/orderfile]------------------------------------------------------------- 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/ Bob McPeak

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:

Location of Browser Info.txt file (1997) searching more then one (1999) Using Plug-In while running 1.6.1 (1997) OSX Install error (2000) Applescript error (1998) default value from Lookup (was Grant, please help me) (1997) test (2004) multiple databases (1997) Wrapping text (1998) Upgrading old WebCat Database Files (1997) New Mac Public Beta Available (1997) WCS Newbie question (1997) Free Utility (2003) Changing Date Format in Field (1999) Customizing WebDelivery.html (1998) orderfile stuff (1998) Coding Standards - are there any ? (2003) Truncated value after space - refresh my memory.... (1997) 2.0 Info (1997) applet example (1997)