Re: Ship Cost Calculated via Subtotal
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 21083
interpreted = N
texte = David,Here's one that compares based on subtotal and then it goes to the ShipCosts.db to see if there is any additional cost for RUSH shipping versus STANDARD shipping.The breaks are< 30 4.9530-60 6.9560-100 8.95100-150 10.95150-250 12.95250+ 16.95Standard Ship 0.00RUSH Ship 14.00In formulas.dbshipCost [hideif [subTotal]>30.00][showif [subTotal]<30.00][math]4.95+[lookup db=ShipCosts.db&lookInField=ShipMethod&value=[shipVia]&returnField=ShipExtra][/m ath][/showif][/hideif][hideif [subTotal]>60.00][showif [subTotal]<60.00][math]6.95+[lookup db=ShipCosts.db&lookInField=ShipMethod&value=[shipVia]&returnField=ShipExtra][/m ath][/showif][/hideif] [hideif [subTotal]>100.00][showif [subTotal]<100.00][math]8.95+[lookup db=ShipCosts.db&lookInField=ShipMethod&value=[shipVia]&returnField=ShipExtra][/m ath][/showif][/hideif] [hideif [subTotal]>150.00][showif [subTotal]<150.00][math]10.95+[lookup db=ShipCosts.db&lookInField=ShipMethod&value=[shipVia]&returnField=ShipExtra][/m ath][/showif][/hideif] [hideif [subTotal]>250.00][showif [subTotal]<250.00][math]12.95+[lookup db=ShipCosts.db&lookInField=ShipMethod&value=[shipVia]&returnField=ShipExtra][/m ath][/showif][/hideif][hideif [subTotal]>100000.00][showif [subTotal]<100000.00][math]16.95+[lookup db=ShipCosts.db&lookInField=ShipMethod&value=[shipVia]&returnField=ShipExtra][/m ath][/showif][/hideif]In ShipCosts.dbShipMethod ShipExtraStandard Shipping 0.00Rush Shipping 14.00Hope it helps.Bill>Hello> I would like to calculate the shipping cost based on the subtotal.>Could someone show me the best way to do this. What I would like to do>is have a database that holds the cost of shipping. If the subtotal is>less than or equal to $25 dollars make the shipping cost $10.>>Subtotal ShipCost>Subtotal <= $25 $10>Subtotal <= $75 $7>Subtotal <= $100 $3>>Thank You In Advance>David Greensfelder>Origin Technology In Business>8044 Montgomery Rd. Suite 200W>Cincinnati, Ohio 45236>513-985-1414>david.greensfelder@us.origin-it.com--Bill Heissenbuttel PageHouse, Inc.bill@pagehouse.com Internet Presence Providerhttp://www.pagehouse.com (509) 892-1973
Associated Messages, from the most recent to the oldest:
David,Here's one that compares based on subtotal and then it goes to the ShipCosts.db to see if there is any additional cost for RUSH shipping versus STANDARD shipping.The breaks are< 30 4.9530-60 6.9560-100 8.95100-150 10.95150-250 12.95250+ 16.95Standard Ship 0.00RUSH Ship 14.00In
formulas.dbshipCost [hideif [subTotal]>30.00][showif [subTotal]<30.00]
[math]4.95+[lookup db=ShipCosts.db&lookInField=ShipMethod&value=[shipVia]&returnField=ShipExtra][/m ath][/showif][/hideif][hideif [subTotal]>60.00][showif [subTotal]<60.00]
[math]6.95+[lookup db=ShipCosts.db&lookInField=ShipMethod&value=[shipVia]&returnField=ShipExtra][/m ath][/showif][/hideif] [hideif [subTotal]>100.00][showif [subTotal]<100.00]
[math]8.95+[lookup db=ShipCosts.db&lookInField=ShipMethod&value=[shipVia]&returnField=ShipExtra][/m ath][/showif][/hideif] [hideif [subTotal]>150.00][showif [subTotal]<150.00]
[math]10.95+[lookup db=ShipCosts.db&lookInField=ShipMethod&value=[shipVia]&returnField=ShipExtra][/m ath][/showif][/hideif] [hideif [subTotal]>250.00][showif [subTotal]<250.00]
[math]12.95+[lookup db=ShipCosts.db&lookInField=ShipMethod&value=[shipVia]&returnField=ShipExtra][/m ath][/showif][/hideif][hideif [subTotal]>100000.00][showif [subTotal]<100000.00]
[math]16.95+[lookup db=ShipCosts.db&lookInField=ShipMethod&value=[shipVia]&returnField=ShipExtra][/m ath][/showif][/hideif]In ShipCosts.dbShipMethod ShipExtraStandard Shipping 0.00Rush Shipping 14.00Hope it helps.Bill>Hello> I would like to calculate the shipping cost based on the subtotal.>Could someone show me the best way to do this. What I would like to do>is have a database that holds the cost of shipping. If the subtotal is>less than or equal to $25 dollars make the shipping cost $10.>>Subtotal ShipCost>Subtotal <= $25 $10>Subtotal <= $75 $7>Subtotal <= $100 $3>>Thank You In Advance>David Greensfelder>Origin Technology In Business>8044 Montgomery Rd. Suite 200W>Cincinnati, Ohio 45236>513-985-1414>david.greensfelder@us.origin-it.com--Bill Heissenbuttel PageHouse, Inc.bill@pagehouse.com Internet Presence Providerhttp://www.pagehouse.com (509) 892-1973
Bill Heissenbuttel
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:
Running 2 two WebCatalog.acgi's (1996)
Country & Ship-to address & other fields ? (1997)
Re[2]: 2nd WebCatalog2 Feature Request (1996)
DrWatson Error! (1999)
LetterRip and WebCat & more (1998)
How do you hide [math]stuff[/math] (1997)
WebCat editing, SiteGuard & SiteEdit (1997)
emailer and other smtp (1998)
ShowNext (1997)
RAM variables (1997)
Random Order Sort? (2000)
QuitFeedback & DBNotOpened errors (1997)
label?! (2005)
Webcatalog-firesite and [referrer] tag (1997)
WebCat2b12--[searchstring] bug (1997)
[WebDNA] [WSC] WebDNA Development Summit (2014)
SiteEdit Pro Update Announcement (1997)
4.5.1 (2003)
Summ=T Problem (1997)
WC2b15 File Corruption (1997)