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:

Make sure I understand this??? (1997) Migrating to NT (1997) quantity minimum problem (1997) Database Not Found Problem (2004) Bulletin Board.... (2000) Include an include file as raw webDNA (2002) Return records from another (1997) Help! WebCat2 bug (1997) page chokes on hideif when false and ignored (1998) auto enter dates (1998) Before I Can Begin . . . (1998) shell problems again... (2003) Wait, I forgot something! (was authenticating a seconduser, the sequel) (1997) Re2: frames & carts (1997) [WebDNA] WebDNA slow processing (2011) WebCat cannot handle compatible search parameters? (1997) WebCat2b15MacPlugin - showing [math] (1997) Newbie problem blah blah blah (1997) WebCatalog NT beta 18 now available (1997) Help name our technology! I found it (1997)