Shipcost lookup?
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 12199
interpreted = N
texte = hi all,Just working on a couple of scenerios with the GeneralStore demo.In formulas.db ther is a lineshipCost [lookup db=ShipCosts.db&lookInField=ShipMethod&value=[shipVia]&returnField=ShipCost]Wich refernces the shipcosts.dbcurently it has entries such asShipMethod ShipCostFEDEX 5.00UPS 6.00etc.I want to create a ship cost based on what the subtotal is. So something like below, which doesn't work.ShipMethod ShipCostAustralia [showif[subtotal]<100] 5 [/showif][showif[subtotal]>100] 10 [/showif]International [showif[subtotal]<100] 10 [/showif][showif[subtotal]>100] 20 [/showif]If I put [lookup[showif[subtotal]<100] 5 [/showif]] directly into formulas.db, then that works.Any ideas from WC-land.cheers,Rick---------------------------------------------------------------------------Key Options Pty. Ltd.P.O. Box 1150Castle Hill, NSW, 2154AustraliaTel:+61-2-9899-9564Fax:+61-2-9899-9318Mob: 0412-205-113-----BEGIN PGP PUBLIC KEY BLOCK-----mQBPAzNMLcoAAAECAL5yuN2krMXeMwfcZPvWFJ0d6oMd++Pafsx0MkIGoTmHLz9iLYHOiyZfeWNcLRd4c6xHlPN36lyPe9Uw9jwbaQEAEQEAAbQiUmljaGFyZCBXeWxpZSA8cmlja3dAbWFnbmEuY29tLmF1PokAVQMFEDNLoSp71TD2PBtpAQEB3kMCAKQ5zd+aPODE2zw2Rht1duf4kVV6yXdC+ZSGYT0uGmkidgHS/Jw+uJvzHnKvR2ziAFrVpYMY6WMaf06yWFvekvc==prwK-----END PGP PUBLIC KEY BLOCK-----
Associated Messages, from the most recent to the oldest:
hi all,Just working on a couple of scenerios with the GeneralStore demo.In
formulas.db ther is a lineshipCost [lookup db=ShipCosts.db&lookInField=ShipMethod&value=[shipVia]&returnField=ShipCost]Wich refernces the shipcosts.dbcurently it has entries such asShipMethod ShipCostFEDEX 5.00UPS 6.00etc.I want to create a ship cost based on what the subtotal is. So something like below, which doesn't work.ShipMethod ShipCostAustralia [showif[subtotal]<100] 5 [/showif][showif[subtotal]>100] 10 [/showif]International [showif[subtotal]<100] 10 [/showif][showif[subtotal]>100] 20 [/showif]If I put [lookup[showif[subtotal]<100] 5 [/showif]] directly into
formulas.db, then that works.Any ideas from WC-land.cheers,Rick---------------------------------------------------------------------------Key Options Pty. Ltd.P.O. Box 1150Castle Hill, NSW, 2154AustraliaTel:+61-2-9899-9564Fax:+61-2-9899-9318Mob: 0412-205-113-----BEGIN PGP PUBLIC KEY BLOCK-----mQBPAzNMLcoAAAECAL5yuN2krMXeMwfcZPvWFJ0d6oMd++Pafsx0MkIGoTmHLz9iLYHOiyZfeWNcLRd4c6xHlPN36lyPe9Uw9jwbaQEAEQEAAbQiUmljaGFyZCBXeWxpZSA8cmlja3dAbWFnbmEuY29tLmF1PokAVQMFEDNLoSp71TD2PBtpAQEB3kMCAKQ5zd+aPODE2zw2Rht1duf4kVV6yXdC+ZSGYT0uGmkidgHS/Jw+uJvzHnKvR2ziAFrVpYMY6WMaf06yWFvekvc==prwK-----END PGP PUBLIC KEY BLOCK-----
Richard Wylie
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:
Formating Tables w/[founditems] (1998)
Cancel Subscription (1996)
Not really WebCat (1997)
nesting limits? (1998)
WebCat editing, SiteGuard & SiteEdit (1997)
Wanted: Broader string manipulation functions (1997)
[isfolder] and [filename] (1997)
[WebDNA] Please send hosting details (2009)
[WebDNA] Sorting questions (2009)
converchars in sendmail context.... (2004)
Scoping rules in WebDNA 4.0 (2000)
storing javascript variables (2005)
Install WebDNA 6.0 into MAMP/Apache 2.0 on OS X ... (2005)
carriage returns in data (1997)
PCS Emailer's role ? (1997)
Pithy questions on webcommerce & siteedit (1997)
Associative lookup style? (1997)
Locking up with WebCatalog... (1997)
Encrypt and Commit Me (1998)
Not carrying Zero (2000)