Re: formula???

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34790
interpreted = N
texte = >are you using an add command or an [addlineitem] context?Add command. 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/ 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)
>are you using an add command or an [addlineitem] context?Add command. [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/ Glenn Busbin

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:

[Sum] function? (1997) More on the email templates (1997) Odd Cart Behavior (1997) service stop and restart (1997) Problems passing [SKU] with $Replace in 2.0 (1997) 3rd request: What are SMSI's upgrade policies? (2003) [LOOKUP] (1997) [group] ? (1997) encrypt (2000) Mac v. NT (1998) Global variables are not always global ... (2000) Showif, Hideif reverse logic ? (1997) Multiple prices (1997) Latin Characters (1998) WebCatalog2 Feature Feedback (1996) [ListFiles] & [loop] (1998) Search in 2 or more catalogs (1997) Associative lookup style? + bit more (1997) WebCat2.0 [format thousands .0f] no go (1997) [WebDNA] Feature requests - date format (2009)