Re: Formulas.db
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 40008
interpreted = N
texte = thanks.John Peacock wrote:> Donovan Brooke wrote:> >> > Hello, Our company has somewhat complex discounting for its products depending on sku, quantity etc... My question is should I> > do> > all the discount formulas in a formulas.db so that price is entered including the discounts> > in each item added to the cart? Since this has to be one line in a database the script could get long I think.> > Are there other solutions to complex discounting.> > thanks.>> If you do not do the discount calculations at the time of entering the item> into the cart, you will need to do a [lineitems] loop and set the price at> some time later in the transaction. If you allow the user to change the> quantities at some later time, you will need to do that too, to recalculate> the price (since the price formula is ONLY used when add a lineitem to the> cart).>> I believe people have in the past used include files to encapsulate the price> calculation (so it is available both at time of insertion into the cart as> well as later).>> It would be really useful to have a new context [RecalcCart] which would go> through all of the cart lines and redo the original price calculation.>> HTH>> John>> -->-- Donovan D. BrookeSystems Administrator/Assc. Art DirectorEpsen Hillmer Graphics-------------------------------------------------------------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:
thanks.John Peacock wrote:> Donovan Brooke wrote:> >> > Hello, Our company has somewhat complex discounting for its products depending on sku, quantity etc... My question is should I> > do> > all the discount formulas in a formulas.db so that price is entered including the discounts> > in each item added to the cart? Since this has to be one line in a database the script could get long I think.> > Are there other solutions to complex discounting.> > thanks.>> If you do not do the discount calculations at the time of entering the item> into the cart, you will need to do a [lineitems] loop and set the price at> some time later in the transaction. If you allow the user to change the> quantities at some later time, you will need to do that too, to recalculate> the price (since the price formula is ONLY used when add a lineitem to the> cart).>> I believe people have in the past used include files to encapsulate the price> calculation (so it is available both at time of insertion into the cart as> well as later).>> It would be really useful to have a new context [RecalcCart] which would go> through all of the cart lines and redo the original price calculation.>> HTH>> John>> -->-- Donovan D. BrookeSystems Administrator/Assc. Art DirectorEpsen Hillmer Graphics-------------------------------------------------------------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/
Donovan Brooke
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:
[include ...] behavior (1997)
copyfile (2003)
Web Browser %Numbers - A must read for web developers (2003)
unable to launch acgi in WebCat (1997)
WebCat2b15MacPlugin - showing [math] (1997)
emailer settings and control questions (1997)
Web Catalog 2 demo (1997)
[WriteFile] problems (1997)
PSC recommends what date format yr 2000??? (1997)
Calculating Standard Deviation (2005)
[middle] (2000)
Tax Moratorium Expiring (2001)
Webcat/Webmerchant part II (1998)
Not really WebCat (1997)
Mac: LModelDirector bug fix (1997)
WebCatalog 2.1b4/Mac available (1997)
WebDNA Solutions ... sorry! (1997)
[WriteFile] problems (1997)
Nav. 4 probs with cart - Serious problem (1997)
Multiple prices (1997)