shipcost and Formulas.db
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 26840
interpreted = N
texte = After seeing a recent posting with a similarsituation, I'm back to trying to use Formulas.db tosolve my shipping situation, which is:* use a flat rate depending on user-selected  shipping method (stored in [shipvia])* charge that flat rate for one shippable item* charge $2 more per additional shippable item* charge $0 for any downloadables* therefore, if all ordered items are DLable only,   shipcost should be $0 instead of whatever was   selected as a shipping method.Here is my Formulas.db. I apologize for bad breaks:Yahoo mail really stinks in that regard... Name FormulashipCost [mathshow=f]temptotship=[lineitems][unitShipCost]+[/lineitems]0[/math][mathshow=f]baserate=[lookupdb=admin/shippers.db&lookinfield=SHR_ID&value=[shipVia]&returnfield=SHR_AMT]-2[/math][hideiftemptotship=0][baserate][/hideif][showiftemptotship=0]0[/showif]What happens is that the baserate is being charged,even if all the lineitems are downloadable and thushave unitshipcost of 0.So I'm still having a problem zeroing out shipcost.What am I doing wrong or leaving out? Thanks for anyguidance.__________________________________________________Do You Yahoo!?Talk to your friends online with Yahoo! Messenger.http://im.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:
After seeing a recent posting with a similarsituation, I'm back to trying to use formulas.db tosolve my shipping situation, which is:* use a flat rate depending on user-selected  shipping method (stored in [shipvia])* charge that flat rate for one shippable item* charge $2 more per additional shippable item* charge $0 for any downloadables* therefore, if all ordered items are DLable only,   shipcost should be $0 instead of whatever was   selected as a shipping method.Here is my formulas.db. I apologize for bad breaks:Yahoo mail really stinks in that regard... Name FormulashipCost [mathshow=f]temptotship=[lineitems][unitShipCost]+[/lineitems]0[/math][mathshow=f]baserate=[lookupdb=admin/shippers.db&lookinfield=SHR_ID&value=[shipVia]&returnfield=SHR_AMT]-2[/math][hideiftemptotship=0][baserate][/hideif][showiftemptotship=0]0[/showif]What happens is that the baserate is being charged,even if all the lineitems are downloadable and thushave unitshipcost of 0.So I'm still having a problem zeroing out shipcost.What am I doing wrong or leaving out? Thanks for anyguidance.__________________________________________________Do You Yahoo!?Talk to your friends online with Yahoo! Messenger.http://im.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:
 
How flexible is Shipping? (1997)
 
Credit Card Number checking (1997)
 
Hiding HTML and page breaks (1997)
 
no [search] with NT (1997)
 
 Strange Form Occurrence on Log In Pages (2005)
 
Re:need help please (1997)
 
Question (2000)
 
Re:Change WebDNA-Talk Mail due to no digest for 1wk (1997)
 
Error Lob.db records error message not name (1997)
 
date tag not interpreted (2000)
 
Emailer Chokes on bad address (1997)
 
upgrade? (1997)
 
Make sure I understand this??? (1997)
 
WC 2.0 frames feature (1997)
 
Can he do that? (1998)
 
[WebDNA] Acceleratin Search / Index Performance in a Formum Service (2013)
 
Is there a way to just get to the last record in the database? (1997)
 
Not really WebCat (1997)
 
Plugin or CGI or both (1997)
 
Re[2]: OT: Amazon Patents  (2000)