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:

virtual domain service (1997) logout after authenticated (2002) Tech support (2000) Mac OS X Server & WebCat (2003) database with 10,000+ web pages stored in it? (2000) WebDNS and RSS (2003) possible bug in unix version? (2000) Error.html (1997) Add to Cart & List of Products (1997) [WebDNA] Help with a search (2018) This message couldn't reach the list! (multi-column (1998) Setting up shop (1997) Up and running ... at last !! (1997) convertWords... (2001) Emailer Problem (2000) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Fax Broadcast (1998) Hide Ifs (2000) WebCatalog Features (1997) db access problem after switching to SSL (2001)