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 Solution 11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. Re: math a various prices (Grant Hulbert 1997)
  2. math a various prices (Kevin Furuta 1997)
>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 Solution 11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/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:

Version f1 status (1997) Re:quit command on NT (1997) List Address Changed! (1998) Running _every_ page through WebCat ? (1997) multi-paragraph fields (1997) SiteEdit (1999) Huge databases and RAM (1998) do you have a webcatalog tool you want to sell? (1999) Banner DNA (1997) Updating a database once per day - An example (1998) Sorting by date (1997) Thanks Grant (1997) 2.01 upgrade problems (1997) no word on MacAuthorize... (1997) Vann's - nice new WebCatalog site (1998) setitems, one more thing (1997) Searching for foreign chars (2004) Country & Ship-to address & other fields ? (1997) [shell]? (2000) latest version? (1998)