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:

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)