Re: Prices coming up 0.00

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 39992
interpreted = N
texte = Glenn Busbin wrote: > > > > > > You need price in only one place. > > > >But there is no harm in having it both places. > > I gotta differ with you on that one, JP. > > Aside from a duplication of effort, there's always some chance that a price may be changed in one place, but not in the other. IMHO, it's not good practice to do stuff twice when once is enough.But the _price_ itself is only in the main database and the _formula_ is in the formulas.db so there is never an instance where it could be changed in one place and not the other, unless of course your formula is price 10:~0> > Using a formula to calculate a different price from that in the product db is useful, but unless there is a reason to change it, let the price in the product db stand on its own and forget using a formula. > This is the default price formula: [lookup db=products.db&lookInField=sku&value=[sku]&returnField=price]which does a fast lookup into the very database where the price itself is.WebCat looks at, in order: 1) whether there is a price formula in the formulas.db in the same directory as the template 2) whether there is a price field in the master databaseSo there is absolutely no time savings to deleting the price record from the formulas.db.John-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747------------------------------------------------------------- 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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Prices coming up 0.00 (Velma Kahn 2001)
  2. Re: Prices coming up 0.00 (John Peacock 2001)
  3. Re: Prices coming up 0.00 (Stephen Russo 2001)
  4. Re: Prices coming up 0.00 (John Peacock 2001)
  5. Re: Prices coming up 0.00 (Glenn Busbin 2001)
  6. Re: Prices coming up 0.00 (John Peacock 2001)
  7. Re: Prices coming up 0.00 (Glenn Busbin 2001)
  8. Re: Prices coming up 0.00 (John Peacock 2001)
  9. Re: Prices coming up 0.00 (Stephen Russo 2001)
  10. Re: Prices coming up 0.00 (John Peacock 2001)
  11. Re: Prices coming up 0.00 (John Peacock 2001)
  12. Re: Prices coming up 0.00 (John Peacock 2001)
  13. Re: Prices coming up 0.00 (Glenn Busbin 2001)
  14. Re: Prices coming up 0.00 (Stephen Russo 2001)
  15. Re: Prices coming up 0.00 (Stephen Russo 2001)
  16. Re: Prices coming up 0.00 (John Peacock 2001)
  17. Re: Prices coming up 0.00 (Donovan Brooke 2001)
  18. Prices coming up 0.00 (Stephen Russo 2001)
Glenn Busbin wrote: > > > > > > You need price in only one place. > > > >But there is no harm in having it both places. > > I gotta differ with you on that one, JP. > > Aside from a duplication of effort, there's always some chance that a price may be changed in one place, but not in the other. IMHO, it's not good practice to do stuff twice when once is enough.But the _price_ itself is only in the main database and the _formula_ is in the formulas.db so there is never an instance where it could be changed in one place and not the other, unless of course your formula is price 10:~0> > Using a formula to calculate a different price from that in the product db is useful, but unless there is a reason to change it, let the price in the product db stand on its own and forget using a formula. > This is the default price formula: [lookup db=products.db&lookInField=sku&value=[sku]&returnField=price]which does a fast lookup into the very database where the price itself is.WebCat looks at, in order: 1) whether there is a price formula in the formulas.db in the same directory as the template 2) whether there is a price field in the master databaseSo there is absolutely no time savings to deleting the price record from the formulas.db.John-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747------------------------------------------------------------- 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://search.smithmicro.com/ John Peacock

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:

Time/date formatting %X doesn't work ... (1997) Getting it as [raw] (2004) Banners (1997) Protecting webdelivery (1997) encryption madness (2003) SSL do I need it?? (1998) RE: [WebDNA] Crashing (2008) Windows 2.1b4 WebCatalog available (1997) my price won't move (1997) How true is this? (1999) Redirect frame targets (1998) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Num Found by category (2000) Running on Empty (1999) wrong input values? (1997) [referrer] tag (1997) HTML encoding in URLs (1997) Can't add a field (1998) Not really WebCat (1997) Requiring that certain fields be completed (1997)