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:

POST Datamissing? (1998) Formulas.db + Users.db (1997) [OT] - Credit card processing company fees (2004) Template Cache problem -- new plugin for ya' (2000) Nested [xxx] contexts & Bad Suffix (1998) WebCat2b15MacPlugin - showing [math] (1997) Search in 2 or more catalogs (1997) Secure Sever and showcart errors (1997) Snake Bites (1997) SiteGuard Admin Feature ? (1997) Great product and great job ! (1997) Image maps/Webcat (1997) RE: protect tag on NT (1997) Another question (1997) Verifying both name and password (was: THANKS) (1997) Bannerad Demo (1998) Uh...can someone help me out with the b10? (1997) re: emailer prob (1998) Passing WebCat data to SSL server (1997) emailer (1997)