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 ShipCostWithin Australia 10.00Outside 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 RobinsonArt Directorimagine onlinetim@imagine.au.comhttp://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:
|
- 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 ShipCostWithin Australia 10.00Outside 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 RobinsonArt Directorimagine onlinetim@imagine.au.comhttp://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:
Some Questions (1997)
[WebDNA] 6.2 Monitor (2012)
WebCat consulting $ (1998)
I assume it is a safe bet this does not help (1998)
MATH PROBLEM (1997)
[OT] .php3 extension (2000)
$Quit, $CloseDatabase corrections (1997)
Using Cookie for client specific info? (1997)
Formating found categories (1997)
normal users.db calls ... (1998)
Re:trouble (1997)
shipcost (1997)
Postgresql books/resources? (2002)
Protecting webdelivery (1997)
WebCatb15 Mac CGI -- [purchase] (1997)
A two part question (1999)
OH CRAP!!!!!- Template not found error!!! (1999)
Quickie question on the email templates (1997)
can WC render sites out? (1997)
Help formatting search results w/ table (1997)