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:
Help name our technology! (1997)
[Repost] Triggers, again (2000)
DataBaseHelper Flawed (1997)
I'm new (2001)
WebCatalog for Postcards ? (1997)
Protect (1997)
Tab Charactor (1997)
[WebDNA] WebDNA7 site randomly dropping tags (2011)
Initiating NewCart (1997)
searchable list archive (1997)
Huge databases and RAM (1998)
No luck with taxes (1997)
RE: Error -108 (1997)
syntax question, not in online refernce (1997)
WebCat2: Items xx to xx shown, etc. (1997)
RE: WebCat and image maps (1997)
WebCatalog for Postcards ? (1997)
headers (2004)
[Sum] function? (1997)
OT: Windows-based Code Editor (2002)