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 w/Multi User Admins (1997)
Repeating Fields (1997)
Processing all html files through WebCat or Typhoon (1998)
A quickie question (1997)
shipping madness (2000)
WebCat cannot handle compatible search parameters? (1997)
timing out? (1997)
Thanks ! (1997)
Installing WebDNA on Linux (2007)
emailer error -108 (1997)
Attention SMSI - DOCS Error (2004)
Image download problem (2001)
Sorting Various Sizes (2003)
Multiple catalog databases and showcart (1997)
PCS Customer submissions ? (1997)
listfiles-looking for slick solution (1997)
[WebDNA] WebDNA 7 (2011)
Date Range search (1997)
[Sum] function? (1997)
Understanding texta (1997)