What is WebDNA

WebDNA is a scripting and database system designed to easily build web applications.

WebDNA and BioType

BioType service is a biometric keystroke dynamic system. It will be part of WebDNA 8.5

Download WebDNA

Download WebDNA freeware, try it and register later if you want.

WebDNA resources

The list of all WebDNA instructions.
WebDNA
Software Corporation
Search WebDNA Site
 Menu


HOME


DOWNLOADS


LEARN


EDUCATION


NEWS


COMMUNITY


STORE


SUPPORT


CONTACT

Re: formula???

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34800
interpreted = N
texte = price is already a header in the lineitems portion of the orderfile (do we call those headers down there?). You don't have to try to store it somewhere else in the orderfile.Glenn Busbin wrote:> >are you using an add command or an [addlineitem] context? > > Add command. > HREF=ShoppingCart.tpl?command=add&cart=[cart]&db=mydatabase.db&sku=[url][sku][/ > url]>Add to your Shopping Cart > > >Add a [writefile] to your formula to write out the value of > >[quantity] to make sure it's what you think it is. > > Good suggestion. My formula is: > Name Formula > price [math][showif [quantity]>0]0.9*[/showif][lookup > db=mydatabase.db&lookInField=sku&value=[sku]&returnField=price][/math] > [writefile file=test&secure=F][quantity][/writefile] > > [quantity] ISN'T what it should be. It's always 1, no matter what it is on > the Invoice.tpl or ShoppingCart.tpl pages. > > So it looks like I need to....what? Put the [quantity] info into a header > and use that in the formula? > > Thanks, > Glenn > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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: formula??? (John Peacock 2000)
  2. Re: formula??? (John Peacock 2000)
  3. Re: formula??? (Glenn Busbin 2000)
  4. Re: formula??? (John Butler 2000)
  5. Re: formula??? (John Butler 2000)
  6. Re: formula??? (Glenn Busbin 2000)
  7. Re: formula??? (WebDNA Support 2000)
  8. Re: formula??? (Glenn Busbin 2000)
  9. Re: formula??? (Arturo Vargas 2000)
  10. Re: formula??? (WebDNA Support 2000)
  11. Re: formula??? (John Butler 2000)
  12. Re: formula??? (Glenn Busbin 2000)
  13. Re: formula??? (John Peacock 2000)
  14. Re: formula??? (Glenn Busbin 2000)
  15. Re: formula??? (John Peacock 2000)
  16. formula??? (Arturo Vargas 2000)
price is already a header in the lineitems portion of the orderfile (do we call those headers down there?). You don't have to try to store it somewhere else in the orderfile.Glenn Busbin wrote:> >are you using an add command or an [addlineitem] context? > > Add command. > HREF=ShoppingCart.tpl?command=add&cart=[cart]&db=mydatabase.db&sku=[url][sku][/ > url]>Add to your Shopping Cart > > >Add a [writefile] to your formula to write out the value of > >[quantity] to make sure it's what you think it is. > > Good suggestion. My formula is: > Name Formula > price [math][showif [quantity]>0]0.9*[/showif][lookup > db=mydatabase.db&lookInField=sku&value=[sku]&returnField=price][/math] > [writefile file=test&secure=F][quantity][/writefile] > > [quantity] ISN'T what it should be. It's always 1, no matter what it is on > the Invoice.tpl or ShoppingCart.tpl pages. > > So it looks like I need to....what? Put the [quantity] info into a header > and use that in the formula? > > Thanks, > Glenn > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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 Butler

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:

WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) Listfiles on network with NT (2000) [WebDNA] UTF-8 encoding issues (2010) can WC render sites out? (1997) Filling in fields conditionally (1998) Problems with Frames (1998) Digest for 4/18/97 (1997) [OT] XML data to tab delimited database (2003) Emailer again & again (1997) read and write you own cookies with webcat (1997) Encrypt broken on Mac 3.05b13?? (2000) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) unable to launch acgi in WebCat (1997) Next (1997) Size limit for tmpl editor ? (1997) Search on Dates (2000) Multiple Users.db Possible? (1997) PhotoMill -> PhotoMaster (1997) WebCat2.0 [format thousands .0f] no go (1997)