Re: Price override
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 60040
interpreted = N
texte = Alan White wrote:> Hi Daryl> > I am currently building a discounting system that merely displays the > results of calculations on each of the lineitems etc until the point of > no return (point of sale) where I actually modify the subtotal using :-> > [setheader > cart=[cart]]nonTaxableTotal=[afterDiscount]&taxableTotal=0&HEADER39=[discountFactor][/setheader] > > > Up until that point it is all merely simulated using a few calculations > with Header39 being the simulated subtotal that is calculated in this case.> > I don't know if there are substantial overheads using this method but it > saves a lot of confusion and it is pretty straight forward...> > HTH
The problem I have with altering the nonTaxableTotal when dealing withindividual discounts is that you are creating a deceptive orderfile. I thinkprobably the biggest issue I run into as someone who works on existingwebdna sites is the improper use of the orderfile "philosophy".Now, I don't want to tell Alan that his code is wrong because it probably worksfine in his situation. However, what if you build an orderfile tracking systemlater down the road. Would you then have to recalculate the discounts to see thedicounted price for each lineitem?My point is that I think the integrity of the orderfile is highly underrated inmany cases. If you keep a solid orderfile, it makes building tracking systemsand integrating with gateways much much easier down the road. I would alterthe nonTaxableTotal upon subtotal based discounts but not lineitem discounts.The formulas.db and [setlineitem] are for lineitem discounts.Donovan =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <- Graphic Design, Custom Tags and Labels -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Alan White wrote:> Hi Daryl> > I am currently building a discounting system that merely displays the > results of calculations on each of the lineitems etc until the point of > no return (point of sale) where I actually modify the subtotal using :-> > [setheader > cart=[cart]]nonTaxableTotal=[afterDiscount]&taxableTotal=0&HEADER39=[discountFactor][/setheader] > > > Up until that point it is all merely simulated using a few calculations > with Header39 being the simulated subtotal that is calculated in this case.> > I don't know if there are substantial overheads using this method but it > saves a lot of confusion and it is pretty straight forward...> > HTHThe problem I have with altering the nonTaxableTotal when dealing withindividual discounts is that you are creating a deceptive orderfile. I thinkprobably the biggest issue I run into as someone who works on existingwebdna sites is the improper use of the orderfile "philosophy".Now, I don't want to tell Alan that his code is wrong because it probably worksfine in his situation. However, what if you build an orderfile tracking systemlater down the road. Would you then have to recalculate the discounts to see thedicounted price for each lineitem?My point is that I think the integrity of the orderfile is highly underrated inmany cases. If you keep a solid orderfile, it makes building tracking systemsand integrating with gateways much much easier down the road. I would alterthe nonTaxableTotal upon subtotal based discounts but not lineitem discounts.The formulas.db and [setlineitem] are for lineitem discounts.Donovan =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <- Graphic Design, Custom Tags and Labels -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------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://webdna.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:
[WebDNA] WebDNA glitch, no response required ... (2009)
WebCatalog seems to choke on large (2meg) html files. (1998)
Authorize.net growing pains (2002)
Moment of Thanks (1997)
Where is f2? (1997)
Me know logical no need (2002)
apache 2.x (2002)
SSL/Non-SSL Database problems (2005)
TeaRoom Order fields email account remain empty even though thewy are filled. (1997)
Search Form (2000)
WC2f3 (1997)
Shipcost update problem (1997)
format and math on the fly (1998)
WCS Newbie question (1997)
WebCatalog can't find database (1997)
How to put the Trademark Symbol (%99) in Sendmail? (2003)
A quickie question (1997)
Template Cache problem, bombing WebSTAR problem (2000)
trouble updating records in database (1998)
Undocumented date issues? (1998)