Shipping based in distance and weight

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 24842
interpreted = N
texte = Hi there,Please somebody help me with this, I have several days trying different ways to do it and I'm very frustrated because I can find the correct way. The problem is that WebCatalog calculate the unitShipCost when you add a item to the shoppingCart, but at that time I don't know which city the item will be delivered, I know it when the user go to the invoice.tmpl because I ask this in the shoppingcart.tmpl.I try to put a [setlineitem]context inside the [lineitem]in the invoice.tmpl but it doesn't work, is something like:[line items] [SetLineItem cart=[cart]&index=[lineindex]&db=products.db]unitShipCost=[lookup db=FactorFlete.db&value=[ShipToCity]&lookinfield=ShipToCity&returnfield=Shi pFactor][/SetLineItem]$[format thousands .2f][unitShipCost][/format] [/lineitems]but it still the same the unitshipcost is not overwrited, I try also asking the city before they go to the shoppingCart (after the detail.tmpl), but if they add several items is very unusual asking the city each time they add an item to the cart.I think the best way is to rewrite the unitshipcost when the user pass to the invoice.tmpl but I don't know how, and I was trying lots of ways and didn't work.Could somebody help me with this?I'll appreciate your assistance. Regards. Rodolfo de la Garza ------------------------------------------------------------- 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:

    
  1. Re: Shipping based in distance and weight (Jym Duane 1999)
  2. Shipping based in distance and weight (Rodolfo de la Garza 1999)
Hi there,Please somebody help me with this, I have several days trying different ways to do it and I'm very frustrated because I can find the correct way. The problem is that WebCatalog calculate the unitShipCost when you add a item to the shoppingCart, but at that time I don't know which city the item will be delivered, I know it when the user go to the invoice.tmpl because I ask this in the shoppingcart.tmpl.I try to put a [setlineitem]context inside the [lineitem]in the invoice.tmpl but it doesn't work, is something like:[line items] [SetLineItem cart=[cart]&index=[lineindex]&db=products.db]unitShipCost=[lookup db=FactorFlete.db&value=[ShipToCity]&lookinfield=ShipToCity&returnfield=Shi pFactor][/SetLineItem]$[format thousands .2f][unitShipCost][/format] [/lineitems]but it still the same the unitshipcost is not overwrited, I try also asking the city before they go to the shoppingCart (after the detail.tmpl), but if they add several items is very unusual asking the city each time they add an item to the cart.I think the best way is to rewrite the unitshipcost when the user pass to the invoice.tmpl but I don't know how, and I was trying lots of ways and didn't work.Could somebody help me with this?I'll appreciate your assistance. Regards. Rodolfo de la Garza ------------------------------------------------------------- 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 Rodolfo de la Garza

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] webDNA and JSON (2011) WebDNA Solutions ... (1997) Loss in form (1998) OFF-TOPIC...list serve software for newsletter? (1998) Multiple Pulldowns (1997) unable to launch acgi in WebCat (1997) test (2000) relogin same user? (1998) Re[2]: Support suggestions - long (was politeness, et al) (2000) Altivec (Velocity engine) (2000) How to set up searching - properly (2000) [GROUPS] followup (1997) Dumb Question about Docs (1997) 2cd pair.. [math] and European Date format (2004) [WebDNA] TCPconnect and Bitcoin rate (2017) WebCat2b13MacPlugIn - [include] (1997) More than one db with the same namn (was: WC2f3) (1997) Checkboxes to add to cart... (1998) [WriteFile] problems (1997) multiple databases (1997)