Setting shipCost -- thanks!

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 24149
interpreted = N
texte = Thanks to the list, especially John Peacock and John Butler, for their help, as my shipping costs are being calculated correctly now. FYI, I'm doing it like this and it seems to work: no formulas.db, setting the unitShipCost database field to $2 for atom-based items, and $0 for bit-based items, selecting the base rate shipping type in the checkout.tpl page, then on invoice.tpl, inserting the following code:[showif [shippingTotal]>0] [setheader cart=[cart]]shipcost=[math][lookup db=admin/shippers.db&lookinfield=SHR_ID&value=[__shipVia]&returnfield=SHR_AMT]-2[/math][/setheader] [/showif]My newbie brain is slowly sorting out when to refer to something as a form variable (in brackets) and when not to. I think that was part of my problem.> Ipso facto, ergo elk...La Fontaine knew its sister, and knew her bloody well...__________________________________________________ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.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:

    
  1. Setting shipCost -- thanks! (Chris Vargas 1999)
Thanks to the list, especially John Peacock and John Butler, for their help, as my shipping costs are being calculated correctly now. FYI, I'm doing it like this and it seems to work: no formulas.db, setting the unitShipCost database field to $2 for atom-based items, and $0 for bit-based items, selecting the base rate shipping type in the checkout.tpl page, then on invoice.tpl, inserting the following code:[showif [shippingTotal]>0] [setheader cart=[cart]]shipcost=[math][lookup db=admin/shippers.db&lookinfield=SHR_ID&value=[__shipVia]&returnfield=SHR_AMT]-2[/math][/setheader] [/showif]My newbie brain is slowly sorting out when to refer to something as a form variable (in brackets) and when not to. I think that was part of my problem.> Ipso facto, ergo elk...La Fontaine knew its sister, and knew her bloody well...__________________________________________________ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.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 Chris Vargas

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:

carriage returns in data (1997) PCS Frames (1997) More on the email templates (1997) triggers (2000) Feature Request [TABLE ... &delimiters=] (2007) converted seed value? (1998) WebCommerce: Folder organization ? (1997) Ampersand is breaking search context (1999) WebDNA 6 (2004) Add more fields to an existent data base (1997) Emailer Question (1998) Updating a database once per day - An example (1998) Associative lookup style? (1997) emailer stuck (1997) Emailer help....! (1997) Do .tpls A Max File Size? (1998) Forcing a NEWCART (1997) bug in [SendMail] (1997) 2.0 Info (1997) SiteGuard Use Question (1997)