Re: Price override

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 60048
interpreted = N
texte = Hi Donovan I do see what you are saying but what is wrong with keeping my lineitems intact (pricewise) so that I can use different discounts depending on situation? I do realise that this is what the pricechange capability is for but I chose to do it like this seeing as I have to do a host of calculations / comparisons anyway, although I may add the change to lineitem etc if that is the best way to do it. There were a number of contributing factors on each lineitem that affected whether or not it was getting discounted and thus I kept an incremental discount total in order to apply my subtotal recalculation. I would argue that I haven't infact created a deceptive orderfile as all my products get discounted at the end of lineitems. Other reasons for me going down this route was that we are not plugged into a live gateway and process all orders in house and also that I have built a subtotal based discount before. I don't however follow what an orderfile tracking system is, can you elaborate a little as I am unclear as to how to answer the question of recalculating the discounts... have I not already done this? Anyway, I am still learning every day and open to suggestions so if I am truely barking up the wrong tree then I can make the necesarry adjustments but are we not skinning the same cat in multiple ways...? I welcome feedback on this before I go and go live though ;-) Thanks Alan > 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 > ------------------------------------------------------------- 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)
Hi Donovan I do see what you are saying but what is wrong with keeping my lineitems intact (pricewise) so that I can use different discounts depending on situation? I do realise that this is what the pricechange capability is for but I chose to do it like this seeing as I have to do a host of calculations / comparisons anyway, although I may add the change to lineitem etc if that is the best way to do it. There were a number of contributing factors on each lineitem that affected whether or not it was getting discounted and thus I kept an incremental discount total in order to apply my subtotal recalculation. I would argue that I haven't infact created a deceptive orderfile as all my products get discounted at the end of lineitems. Other reasons for me going down this route was that we are not plugged into a live gateway and process all orders in house and also that I have built a subtotal based discount before. I don't however follow what an orderfile tracking system is, can you elaborate a little as I am unclear as to how to answer the question of recalculating the discounts... have I not already done this? Anyway, I am still learning every day and open to suggestions so if I am truely barking up the wrong tree then I can make the necesarry adjustments but are we not skinning the same cat in multiple ways...? I welcome feedback on this before I go and go live though ;-) Thanks Alan > 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 > ------------------------------------------------------------- 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/ Alan White

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:

HomePage Caution (1997) database problems (1999) [include ...] behavior (1997) [WebDNA] Version 7.x: webdna.ini and EmailerPrefs (2012) 2 easy questions re: [showif] and [sendmail] (1997) Mozilla/4. and Browser Info.txt (1997) For those annoying clients... (2003) RE: Writefile outside WebSTAR hierarchy? (1997) Repeating Fields (1997) SiteCheck & WebCat ? (1997) Dark Horse Comics success story (1997) nslookup (2000) [Repost] Triggers, again SM??? (2000) Possible Bug in 2.0b15.acgi (1997) textA (1998) Signal Raised error (1997) [format xs] freeze (1997) Bug? (1997) Bad File: DeleteCommand.html (1998) Intermitent problem using [referrer] (1997)