Re: Calculate UnitShipCost in Formulas.db
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 24825
interpreted = N
texte = On 11/25/1999 2:14 PM, Rodolfo de la Garza atlistas@edifika.com wrote:> I look at the archive and docs and I understand the > unitshipcost is calculated when the user add a item> to the shoppingcart.tmpl. at that time I don't know > in wich city the user want the product to be > delivered, in the shoppingcart.tmpl there are an > option to select the city and then they pass to the > invoice.tmpl. I have in the formulas.db this:>>unitShipCost [Lookup db=products.db&lookInField=sku&>value=[sku]&returnField=unitShipCost]*[lookup >db=ShipCosts.db&value=[city]&lookinfield=ShipCity&>returnfield=ShipFactor]I'm pretty sure that since the ShipToCity isn't setuntil they enter it in shoppingcart.tmpl, you willhave to set the unitShipCost in a [setlineitems]context on invoice.tmpl rather than in formulas.db.Either that, or maybe if you use the actual ShipToCityfield that is used by the shopping cart/order file,the formula might calculate it correctly -- right nowyou're using [city] instead of [shiptocity]Hope this isn't the blind leading the blind...__________________________________________________Do You Yahoo!?Thousands of Stores. Millions of Products. All in one place.Yahoo! Shopping: http://shopping.yahoo.com-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to
.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
Associated Messages, from the most recent to the oldest:
On 11/25/1999 2:14 PM, Rodolfo de la Garza atlistas@edifika.com wrote:> I look at the archive and docs and I understand the > unitshipcost is calculated when the user add a item> to the shoppingcart.tmpl. at that time I don't know > in wich city the user want the product to be > delivered, in the shoppingcart.tmpl there are an > option to select the city and then they pass to the > invoice.tmpl. I have in the formulas.db this:>>unitShipCost [Lookup db=products.db&lookInField=sku&>value=[sku]&returnField=unitShipCost]*[lookup >db=ShipCosts.db&value=[city]&lookinfield=ShipCity&>returnfield=ShipFactor]I'm pretty sure that since the ShipToCity isn't setuntil they enter it in shoppingcart.tmpl, you willhave to set the unitShipCost in a [setlineitems]context on invoice.tmpl rather than in formulas.db.Either that, or maybe if you use the actual ShipToCityfield that is used by the shopping cart/order file,the formula might calculate it correctly -- right nowyou're using [city] instead of [shiptocity]Hope this isn't the blind leading the blind...__________________________________________________Do You Yahoo!?Thousands of Stores. Millions of Products. All in one place.Yahoo! Shopping: http://shopping.yahoo.com-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .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
Chris Vargas
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:
Looking for a Manual (1997)
(1997)
Webcat 2.0.1b1 bug with IE 3.01/4.0p1 (1997)
Serial Number Question (1997)
[/application] error? (1997)
Searching multiple databases (1998)
if else problem (2003)
SuperFlush stumped on simple sort (1999)
Re1000002: Setting up shop (1997)
Stats (2001)
Document Contains No Data! (1997)
Frames (1997)
PSC recommends what date format yr 2000??? (1997)
[WebDNA] Setting Content-Type within [returnraw] - not working on Linux (2010)
Mac Programs (1998)
Error.html (1997)
DB not found error (2004)
customer info (2001)
ShowNext (1997)
random in arizona (2003)