Re: Shipping.db
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 16134
interpreted = N
texte = >Ok, I have a project where I can't use my favorite showifs to figure>shipping, but must instead use the shipping table below. I understand how to>do lookups, that's not a problem, but what I don't understand is how to do a>case function to figure out which price range the subtotal falls into. >Please help me--->>Merchandise Regular Rush Express >Subtotals Delivery Delivery Delivery>Up to>$15.00............$3.90.......$8.90......$16.90>$15.01-$30.00.....$5.25......$10.25......$17.90>$30.01-$45.00.....$6.90......$11.90......$19.25Here's some people have done it:Rather than doing lookups, you can use [Search] to find the ranges. Perform a search that finds all the MerchandiseSubtotals in this table which are Less Than your order subtotal, and sort the results in descending order. You'll end up with a list which always has the record you're interested in at the top, so further setting max=1 will cause the list to *only* return the one record you want. At that point, [RegularDelivery] is the value you need for the shipping cost (or Rush or Express, depending...).Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>Ok, I have a project where I can't use my favorite showifs to figure>shipping, but must instead use the shipping table below. I understand how to>do lookups, that's not a problem, but what I don't understand is how to do a>case function to figure out which price range the subtotal falls into. >Please help me--->>Merchandise Regular Rush Express >Subtotals Delivery Delivery Delivery>Up to>$15.00............$3.90.......$8.90......$16.90>$15.01-$30.00.....$5.25......$10.25......$17.90>$30.01-$45.00.....$6.90......$11.90......$19.25Here's some people have done it:Rather than doing lookups, you can use
[search] to find the ranges. Perform a search that finds all the MerchandiseSubtotals in this table which are Less Than your order subtotal, and sort the results in descending order. You'll end up with a list which always has the record you're interested in at the top, so further setting max=1 will cause the list to *only* return the one record you want. At that point, [RegularDelivery] is the value you need for the shipping cost (or Rush or Express, depending...).Grant Hulbert, V.P. Engineering | ==== eCommerce for the Rest of Us ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Grant Hulbert
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] WebDNA 7 (2011)
Search design (1997)
Question (2001)
2.0Beta Command Ref (can't find this instruction) (1997)
Where's Cart Created ? (1997)
Location of Browser Info.txt file (1997)
WebCat2b15MacPlugin - [protect] (1997)
Interesting speed comparison .. (2003)
Multiple prices (1997)
WebCat2.0 acgi vs plugin (1997)
Using EIMS instead of Emailer (1998)
Re:multiple digests, please stop (1997)
Generating Report Totals (1997)
What am I missing (1997)
Problem with shownext (2003)
Happy New Year (2002)
limitation found on group searching (1997)
Webstar 4.2 Stops Serving (2000)
date math [2.x] (1999)
OT: Help Wanted (2007)