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 with individual discounts is that you are creating a deceptive orderfile. I think probably the biggest issue I run into as someone who works on existing webdna 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 works fine in his situation. However, what if you build an orderfile tracking system later down the road. Would you then have to recalculate the discounts to see the dicounted price for each lineitem? My point is that I think the integrity of the orderfile is highly underrated in many cases. If you keep a solid orderfile, it makes building tracking systems and integrating with gateways much much easier down the road. I would alter the 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:

    
  1. Re: Price override ( Alan White 2004)
  2. Re: Price override - solved ( Daryl Mitchell 2004)
  3. Re: Price override - solved ( Stuart Tremain 2004)
  4. Re: Price override ( Donovan Brooke 2004)
  5. Re: Price override ( John Peacock 2004)
  6. Re: Price override ( Alan White 2004)
  7. Re: Price override - solved ( Donovan Brooke 2004)
  8. Re: Price override - solved ( Daryl Mitchell 2004)
  9. Re: Price override ( Donovan Brooke 2004)
  10. Re: Price override - solved ( Daryl Mitchell 2004)
  11. Re: Price override ( Daryl Mitchell 2004)
  12. Re: Price override ( Daryl Mitchell 2004)
  13. Re: Price override ( Donovan Brooke 2004)
  14. Re: Price override ( Alan White 2004)
  15. Re: Price override ( Stuart Tremain 2004)
  16. Re: Price override ( "Sal D'Anna" 2004)
  17. Re: Price override ( Donovan Brooke 2004)
  18. Price override ( Daryl Mitchell 2004)
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 with individual discounts is that you are creating a deceptive orderfile. I think probably the biggest issue I run into as someone who works on existing webdna 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 works fine in his situation. However, what if you build an orderfile tracking system later down the road. Would you then have to recalculate the discounts to see the dicounted price for each lineitem? My point is that I think the integrity of the orderfile is highly underrated in many cases. If you keep a solid orderfile, it makes building tracking systems and integrating with gateways much much easier down the road. I would alter the 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)