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 Formulaprice [math][showif [quantity]>0]0.9*[/showif][lookupdb=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 onthe Invoice.tpl or ShoppingCart.tpl pages.So it looks like I need to....what? Put the [quantity] info into a headerand 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:
>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 Formulaprice [math][showif [quantity]>0]0.9*[/showif][lookupdb=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 onthe Invoice.tpl or ShoppingCart.tpl pages.So it looks like I need to....what? Put the [quantity] info into a headerand 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)