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 Solution 11770 Bernardo Plaza Court, #462 | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/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 Solution 11770 Bernardo Plaza Court, #462 | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/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:

[WriteFile] problems (1997) RE: Adding a product from another site (1997) sorting month by month (2004) suffix mapping for NT? (1997) [delete] problem (1997) setcookie expires (2004) Sorting Problems (2004) WebCat and WebTV (1997) Associative lookup style? + bit more (1997) Kaaaaahhhhhhhnnnnnnn! (1997) & Aftermath (1999) WebMerchant 3.0? (1998) Cart# (1997) Re:2nd WebCatalog2 Feature Request (1996) To Err or Not Custom Error (1999) Form Submition (2003) Running 2 two WebCatalog.acgi's (1996) Finding max value for a field (1997) Document Contains No Data! (1997) Associative lookup style? + bit more (1997)