Re: Associative lookup style? + bit more
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 10818
interpreted = N
texte = >Using the above input form in the shoppingcart.tmpl didn't work.I might be wrong about ciel(). Try [format .0f]...[/format] instead. B16 will definitely have ciel() back in it, though.>I think >it is because we get the quantities for each product type ordered in that >same template (I guess you can have one input value depend on another in >the same web page)?Right, it has no idea what those quantities will be until you FORM thru to the next page (HTML sucks). Try embedding that big math/lineitems thing right into your formula instead. That way it will have a chance to see those quantities after the user enters them, and you won't have those ugly intermediate equation/form variables to pass thru.>The formula for shipCost still ends up with zero. Does the formula for >shipcost only get invoked when moving from the shoppingcart.tmpl -> >invoice.tmpl?No, all formulas are evaluated at $Add, $Remove, $ShowCart, and $Purchase times. WebCatalog has no idea you are going to an invoice page -- they're all just templates to it.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court, #462 | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
>Using the above input form in the shoppingcart.tmpl didn't work.I might be wrong about ciel(). Try [format .0f]...[/format] instead. B16 will definitely have ciel() back in it, though.>I think >it is because we get the quantities for each product type ordered in that >same template (I guess you can have one input value depend on another in >the same web page)?Right, it has no idea what those quantities will be until you FORM thru to the next page (HTML sucks). Try embedding that big math/lineitems thing right into your formula instead. That way it will have a chance to see those quantities after the user enters them, and you won't have those ugly intermediate equation/form variables to pass thru.>The formula for shipCost still ends up with zero. Does the formula for >shipcost only get invoked when moving from the shoppingcart.tmpl -> >invoice.tmpl?No, all formulas are evaluated at $Add, $Remove, $ShowCart, and $Purchase times. WebCatalog has no idea you are going to an invoice page -- they're all just templates to it.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court, #462 | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Grant Hulbert
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:
version 2 for NT (1997)
WebCat2.0 [format thousands .0f] no go (1997)
File Security (1999)
Oracle XE (2006)
Dummy Credit Card Number for debug? (1997)
Searching multiple fields from one form field (1997)
Admin Edit prob. (1997)
[ShowIf] and empty fields (1997)
emailer w/F2 (1997)
Time Tracking (2003)
Digest for 4/18/97 (1997)
writefile - continued (1997)
default error on NT? (1997)
Notepad problems (1998)
For those of you not on the WebCatalog Beta... (1997)
Applescript, WebDNA, and PDF (1997)
[include ...] behavior (1997)
tabs as delimiters (2004)
[WebDNA] Auction (2009)
ShowNext (1997)