Shipping Cost lookup and calculation

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 33265
interpreted = N
texte = Hi there,The shop I'm working on needs to calculate a shipping & handling cost based on 2 criteria: where it's going to be delivered, and the amount spent. So the [subTotal] has to be used in a calculation.In testing it was more straightforward: (in formulas.db) shipCost [lookup db=ShipCosts.db&lookInField=ShipMethod&value=[shipVia]&returnField=ShipCost](in ShipCost.db) ShipMethod ShipCost Within Australia 10.00 Outside Australia 20.00This would return $10 if the user selected 'Within Australia' and $20 if 'Outside Australia'. Very straight forward. But I don't know which way to attack it now...If the [subTotal] is <= $30, within Aust, the [ShipCost]=$4, but outside Aust [ShipCost]=$6.Similarly, if [SubTotal] is > 30 but < 60, Outside Aust, [shipCost]=10 etc etc.There two [shipCost] amounts for within Australia, and 4 for Outside Australia.Any ideas would be invaluable.Regards, TimTim Robinson Art Director imagine online tim@imagine.au.com http://www.imagine.au.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. Shipping Cost lookup and calculation (Tim Robinson 2000)
Hi there,The shop I'm working on needs to calculate a shipping & handling cost based on 2 criteria: where it's going to be delivered, and the amount spent. So the [subTotal] has to be used in a calculation.In testing it was more straightforward: (in formulas.db) shipCost [lookup db=ShipCosts.db&lookInField=ShipMethod&value=[shipVia]&returnField=ShipCost](in ShipCost.db) ShipMethod ShipCost Within Australia 10.00 Outside Australia 20.00This would return $10 if the user selected 'Within Australia' and $20 if 'Outside Australia'. Very straight forward. But I don't know which way to attack it now...If the [subTotal] is <= $30, within Aust, the [ShipCost]=$4, but outside Aust [ShipCost]=$6.Similarly, if [SubTotal] is > 30 but < 60, Outside Aust, [shipCost]=10 etc etc.There two [shipCost] amounts for within Australia, and 4 for Outside Australia.Any ideas would be invaluable.Regards, TimTim Robinson Art Director imagine online tim@imagine.au.com http://www.imagine.au.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/ Tim Robinson

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] [WSC] WebDNA Development Summit (2014) [WebDNA] maybe silly suggestion? [founditems] (2015) Banners (1997) return missing item (was:WebCat Sales) (1997) Need relative path explanation (1997) [WebDNA] Help with iTools 9/WebDNA setup MacTel (2009) PCS Frames (1997) 2003 include path issue (2004) [BoldWords] WebCat.acgib15Mac (1997) Preventing code execution (2003) ShowNext Command (1997) Trouble with [Math] (1998) WebCat b13 CGI -shownext- (1997) billing system (2003) Small problem (2001) Summing fields (1997) PROBLEM (1997) Problems with [Applescript] (1997) Performance Settings (2000) form data submission gets truncated (1997)