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 thoseheaders down there?). You don't have to try to store it somewhere else in theorderfile.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:
price is already a header in the lineitems portion of the orderfile (do we call thoseheaders down there?). You don't have to try to store it somewhere else in theorderfile.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:
Dumb Question about Docs (1997)
[OT] search engine Q (2001)
[AppendFile] problem (WebCat2b13 Mac .acgi) (1997)
problems with 2 tags (1997)
what servers are supported for Typhoon? (1997)
Using Plug-In while running 1.6.1 (1997)
converted seed value? (1998)
Rookie/New User Question (2003)
Changing price for a SLU based on options (size, etc.) (1997)
Apple event reply error (-1) (1997)
pictures / referrer etc. (1998)
Bug Report, maybe (1997)
Template Cache problem -- new plugin for ya' (2000)
How did *you* learn Web Catalog? (2000)
Sort Order on a page search (1997)
Just another thing regarding my weird ShoppingCarts (2003)
5.0 Pricing (2003)
Re:listfiles-looking for slick solution (1997)
frames & carts (1997)
MSSQL - ODBC - OSX (2005)