Re: math a various prices
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 12366
interpreted = N
texte = >I am looking at the manual about [math] and was wondering if there was a>way to configure the total cost using variables for bulk discounts.>>For instance:>Product A costs 100.00 for one item.>Product A costs 50.00 for purchases of 5-10 itemsYes, you can change the Formulas.db price information to reflect different pricing structures depending on certain conditions. The default formula in the GeneralStore simply does a lookup in the database for the price, but you could write a bunch of WebDNA in there that does something different.Something like-- Formulas.db --price [showif [quantity]>4]50.00[/showif][showif [quantity]<5]100.00[/showif]Of course, your actual formula will get much more complex than thatGrant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
>I am looking at the manual about
[math] and was wondering if there was a>way to configure the total cost using variables for bulk discounts.>>For instance:>Product A costs 100.00 for one item.>Product A costs 50.00 for purchases of 5-10 itemsYes, you can change the
formulas.db price information to reflect different pricing structures depending on certain conditions. The default formula in the GeneralStore simply does a lookup in the database for the price, but you could write a bunch of WebDNA in there that does something different.Something like--
formulas.db --price [showif [quantity]>4]50.00[/showif][showif [quantity]<5]100.00[/showif]Of course, your actual formula will get much more complex than thatGrant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/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:
HELP WITH DATES (1997)
10.4 Tiger Server with webdna (2005)
Referrer field to header field conversion (1997)
[searchString] (1997)
Quit revisited (1997)
test (2000)
WC2.0 Memory Requirements (1997)
WebCatalog on Linux/MacOSX/etc (2000)
Permission Denied Error (2001)
Re[2]: setlineitem quantity to zero? (2000)
expired beta (1997)
[delete] problem (1997)
database visibility (2000)
emailer (1997)
WebDNA-Talk Digest mode broken (1997)
Restricting templates from causing havoc (2000)
Help! WebCat2 bug (1997)
Question on the sandbox (2003)
ShowNext example for GeneralStore (1997)
[LOOKUP] (1997)