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:

Include a big block of text (1997) WebCat2 - [format thousands] (1997) AAAH: stupid sendmail (2001) Requiring that certain fields be completed (1997) Protect (1997) redirect with frames (1997) Wanted: Broader string manipulation functions (1997) NT b19 sends extra MIME headers (1997) MacOSX/Apache? (1999) Security Levels... Possible? (2000) [IpAddress] Tag (1997) quitting (1997) WebCatalog stalls (1998) Was: Variables not being passed *back* (2000) database files in secure folder (1997) taxrate (1999) newbie Q: [cart] documentation (1999) For those of you not on the WebCatalog Beta... (1997) Help name our technology! (1997) Line items in table cells (1997)