Re: Forumulas.db & Variables
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45830
interpreted = N
texte = >>I want shipping to be based on [shipvia] and tax to be based on [state] and>I can't used either of them in the Formulas.db because when I put them in,>they come up as blank...>Like I said, the Formulas.db will recognize only certain field names. (See the docs.) That's why a field name like [state] is unacceptable. You can, however, use the value of [state] if you name it TextA-E in the formula.On the page in which the item is selected to be added to the shopping cart, set the input name as [TextA-E] and its value as [state].In the Formulas.db, use the [TextA-E] values. The state=[state] or shipvia=[shipvia] values simply won't be used in the price calcs.In the orderfile contexts on the ShoppingCart page, you can have the state shown, but only if you call it [TextA-E].The use of variables in the Formulas.db and the orderfile context isn't intuitive, IMO, because of the restrictions on field names. It's a security thing to prevent unauthorized changing of [price].Glenn-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>>I want shipping to be based on [shipvia] and tax to be based on [state] and>I can't used either of them in the formulas.db because when I put them in,>they come up as blank...>Like I said, the formulas.db will recognize only certain field names. (See the docs.) That's why a field name like [state] is unacceptable. You can, however, use the value of [state] if you name it TextA-E in the formula.On the page in which the item is selected to be added to the shopping cart, set the input name as [TextA-E] and its value as [state].In the formulas.db, use the [TextA-E] values. The state=[state] or shipvia=[shipvia] values simply won't be used in the price calcs.In the orderfile contexts on the ShoppingCart page, you can have the state shown, but only if you call it [TextA-E].The use of variables in the formulas.db and the orderfile context isn't intuitive, IMO, because of the restrictions on field names. It's a security thing to prevent unauthorized changing of [price].Glenn-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Glenn Busbin
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:
webcat restarting script on Linux? (1999)
WebCatalog NT beta 18 problem (1997)
WebCat2b15MacPlugin - [protect] (1997)
$purchase WITHOUT creditcar (1997)
Download URL & access on the fly ? (1997)
Shipping Formula % (2003)
Credit Card Checksum (1997)
WebDNA handler in Httpd.conf being erased [fixed] (2005)
[Sum] function? (1997)
Webcatalog and foreign languages (1998)
Getting Values into Cart the easy way?* (1998)
apparently to problem isolated (1997)
WebCat2b13MacPlugIn - More limits on [include] (1997)
WebCommerce: Folder organization ? (1997)
japanese characters (1997)
UPS Rate Tables (2002)
New public beta available (1997)
Code intermittently reverts to previous state (2000)
Cart # Starting at 1000 (2000)
The code, one more time. (2003)