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:
[WebDNA] Feature requests - date format (2009)
Security Question (1997)
[WebDNA] Froala Editor working with WebDNA (2016)
[Listfiles] vs Netfinder (1997)
file truncation -- Mac plugin (2000)
Carts & Refering URLs (1997)
Field name-subcategory (1997)
embedded showif statements (2000)
Variables containing ! breaking HIDEIF's (1999)
[WebDNA] client request (2010)
Emailer (WebCat2) (1997)
Does [Sendmail] create html? (2002)
can WC render sites out? (1997)
shipcost (1997)
WebCatalog for guestbook ? (1997)
newbies to web, spaces in email address (1998)
PCS Frames (1997)
Email (1998)
HTML Email and Images (2004)
numfound=0 for a search after going into the SSL (2003)