Re: multiple price line in formula.db

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 56317
interpreted = N
texte = Steve Chun wrote: > Having problems with getting one price for retail and one price for > wholesale customers. I have two different price fields and the following > in the formula.db for the price line. > > > [if cust=wholesale > [then][lookup > db=inventory.db&lookInField=SKU&value=[SKU]&returnField=wprice] > [/then] > [else] > [lookup db=inventory.db&lookInField=SKU&value=[SKU]&returnField=rprice] > [/else] > [/if] > > > Should I be using the [showif] instead? > > > > sc Hi Steve, the formulas.db can not have returns in it. you can comment out your returns like: [if ..][!] [/!][then][!] [/!][/then][!] [/!][else][!] [/!][/else][!] [/!][/if] You should also encase the sku value in an URL. [url][sku][/url] 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, and Pre-Press Consultation -> 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: multiple price line in formula.db ( Donovan Brooke 2004)
  2. Re: multiple price line in formula.db ( Gary Krockover 2004)
  3. Re: multiple price line in formula.db ( Steve Chun 2004)
  4. Re: multiple price line in formula.db ( Tim Robinson 2004)
  5. Re: multiple price line in formula.db ( Gary Krockover 2004)
  6. Re: multiple price line in formula.db ( Tim Robinson 2004)
  7. Re: multiple price line in formula.db ( Steve Chun 2004)
  8. Re: multiple price line in formula.db ( Donovan Brooke 2004)
  9. Re: multiple price line in formula.db ( Donovan Brooke 2004)
  10. Re: multiple price line in formula.db ( Tim Robinson 2004)
  11. Re: multiple price line in formula.db ( Steve Chun 2004)
  12. Re: multiple price line in formula.db ( Tim Robinson 2004)
  13. Re: multiple price line in formula.db ( Steve Chun 2004)
  14. Re: multiple price line in formula.db ( Donovan Brooke 2004)
  15. Re: multiple price line in formula.db ( Donovan Brooke 2004)
  16. multiple price line in formula.db ( Steve Chun 2004)
Steve Chun wrote: > Having problems with getting one price for retail and one price for > wholesale customers. I have two different price fields and the following > in the formula.db for the price line. > > > [if cust=wholesale > [then][lookup > db=inventory.db&lookInField=SKU&value=[SKU]&returnField=wprice] > [/then] > [else] > [lookup db=inventory.db&lookInField=SKU&value=[SKU]&returnField=rprice] > [/else] > [/if] > > > Should I be using the [showif] instead? > > > > sc Hi Steve, the formulas.db can not have returns in it. you can comment out your returns like: [if ..][!] [/!][then][!] [/!][/then][!] [/!][else][!] [/!][/else][!] [/!][/if] You should also encase the sku value in an URL. [url][sku][/url] 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, and Pre-Press Consultation -> 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:

IIS3.0 Microsoft's Fix (1998) Banners (1997) Text data with spaces in them... (1997) WebCat2b15MacPlugin - showing [math] (1997) Webcatalog on MacOs (2000) Cancel Subscription (1996) [WebDNA] anyone write an RFC-822 date-time converter? (2008) Cookies (1999) [OT] Ecommerce Insurance (2000) WCS Newbie question (1997) [WebDNA] grep again (2010) WebCat2b15MacPlugin - [protect] (1997) Emailer Set Up (1997) What am I missing (1997) RE: protect tag on NT (1997) Multiple Pulldowns (1997) WebCat2b15MacPlugin - showing [math] (1997) WebCatalog/Mac 2.1b2 - PIXO (1997) Talk List Suggestions (1997) WebCat2b12plugin - [search] is broken ... not! (1997)