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:
Nested search index (2000)
WebCat editing, SiteGuard & SiteEdit (1997)
Setting up shop (1997)
unique ascending numbers (2003)
WebCat2 beta 11 - new prefs ... (1997)
WebCatalog Plug-in for Webstar. (1997)
typhoon vs. webcatalog (1997)
WebCat2 beta FTP site (1997)
WebDNA within the shell (2004)
Sku numbers (1997)
template includes encrypted template (1999)
Another bug -- in the docs ... (2002)
_ in front of field name (1998)
[WebDNA] help with [ReturnRaw] - why is it killing the parse of the [include] file? (2009)
[cart] (1998)
Shopping Cart ID (1998)
Uh...can someone help me out with the b10? (1997)
Online reference (1997)
Banner Ads (2000)
bug in [SendMail] (1997)