Re: Formulas.db
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 40009
interpreted = N
texte = >Hello, Our company has somewhat complex discounting for its products depending on sku, quantity etc... It's the etc part that bothers me, but here's what I did long ago for quantity discounts.price [showif [quantity]<3][lookup db=My.db&lookInField=sku&value=[sku]&returnField=price1to2][/showif][hideif [quantity]>5][showif [quantity]>2][lookup db=My.db&lookInField=sku&value=[sku]&returnField=price3to5][/showif][/hideif][hideif [quantity]>11][showif [quantity]>5][lookup db=My.db&lookInField=sku&value=[sku]&returnField=price6to11][/showif][/hideif][showif [quantity]=12][lookup db=My.db&lookInField=sku&value=[sku]&returnField=price12][/showif][showif [quantity]>12][lookup db=My.db&lookInField=sku&value=[sku]&returnField=priceover12][/showif]-------------------------------------------------------------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:
>Hello, Our company has somewhat complex discounting for its products depending on sku, quantity etc... It's the etc part that bothers me, but here's what I did long ago for quantity discounts.price [showif [quantity]<3][lookup db=My.db&lookInField=sku&value=[sku]&returnField=price1to2][/showif][hideif [quantity]>5][showif [quantity]>2][lookup db=My.db&lookInField=sku&value=[sku]&returnField=price3to5][/showif][/hideif][hideif [quantity]>11][showif [quantity]>5][lookup db=My.db&lookInField=sku&value=[sku]&returnField=price6to11][/showif][/hideif][showif [quantity]=12][lookup db=My.db&lookInField=sku&value=[sku]&returnField=price12][/showif][showif [quantity]>12][lookup db=My.db&lookInField=sku&value=[sku]&returnField=priceover12][/showif]-------------------------------------------------------------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/
Glenn Busbin
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:
French characters in variables (2001)
[WebDNA] max=0 returns all records (2010)
Editor Recommendation for NT Users (1998)
Remove Command not working (2000)
Opinion: [input] should be called [output] ... (1997)
WebCat2 beta 11 - new prefs ... (1997)
[showif] not working (2003)
Configuring E-mail (1997)
(2000)
Protecting webdelivery (1997)
RAM variables (1997)
WebCat virtual postcard is done! Thanks for the help! (1998)
sendmail tag when with in comment tags. (2000)
about this server and links to who (1997)
More DateMath problems (1997)
Re:quit command on NT (1997)
Date Range Sorting (1997)
Unix DB Permission Error (2002)
Document contains no data... (1999)
Email notification to one of multiple vendors ? (1997)