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:
updating the database (2000)
[searchString] (1997)
Summing fields (1997)
OK, here goes... (1997)
[WebDNA] Sales Tax on CUstom WebDNA Site (2008)
NT IIS number of files limit (2003)
Too Much Rootbeer Free Offer (1997)
Db design question (relational vs. flat?) (1998)
Error 11 (1996)
Close Databases Crash? (1998)
Bug? (1997)
document contains no data (1999)
Extended [ConvertChars] (1997)
HomePage Caution (1997)
Smart caching problems with 2.1b3? (1997)
PC Auth Hub+Merchant (1998)
Help! WebCat2 bug (1997)
Generating unique SKU from [cart] - Still Stumped... (1997)
test (2005)
[WebDNA] Emailer & SMTP (2009)