Re: Shipping based in distance and weight

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 24845
interpreted = N
texte = try this first to commit new ship to state first. use ShipToState variable in cart. '__ShipTo State' is the input variable name on the checkout page, cahnge to match if necessary. that way it is available in file not just memory.[setheader cart=[cart]]ShipToState=[url][__ShipToState][/url][/setheader]i cant tell if this below works right or not but i'm sure you need to se the header to use the variable right away.[line items] [SetLineItem cart=[cart]&db=products.db&index=[lineindex]]unitShipCost=[lookup db=FactorFlete.db&value=[ShipToCity]&lookinfield=ShipToCity&returnfield=Shi pFactor][/SetLineItem]$[format thousands .2f][unitShipCost][/format] [/lineitems]Jym Rodolfo de la Garza wrote:> 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 -- _/_/_/CyberLive, Inc.\_\_\_ _/_/_/_/_/ Jym Duane \_\_\_\_\_\_ Marketing / Custom Design \ E-Commerce Phone: (949) 443-1323 Fax: (949)443-1360 Email: sales@cyberlive.com Web: http://www.cyberlive.com _/_/_/_/_/_/_/_/_/_/_/_/_/_/ \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ _/_/_/_/_/_/_/ The Internet Services Professionals \_\_\_\_\_\_\_ 31781 Camino Capistrano, Suite 302, San Juan Capistrano, CA 92675------------------------------------------------------------- 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)
try this first to commit new ship to state first. use ShipToState variable in cart. '__ShipTo State' is the input variable name on the checkout page, cahnge to match if necessary. that way it is available in file not just memory.[setheader cart=[cart]]ShipToState=[url][__ShipToState][/url][/setheader]i cant tell if this below works right or not but i'm sure you need to se the header to use the variable right away.[line items] [SetLineItem cart=[cart]&db=products.db&index=[lineindex]]unitShipCost=[lookup db=FactorFlete.db&value=[ShipToCity]&lookinfield=ShipToCity&returnfield=Shi pFactor][/SetLineItem]$[format thousands .2f][unitShipCost][/format] [/lineitems]Jym Rodolfo de la Garza wrote:> 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 -- _/_/_/CyberLive, Inc.\_\_\_ _/_/_/_/_/ Jym Duane \_\_\_\_\_\_ Marketing / Custom Design \ E-Commerce Phone: (949) 443-1323 Fax: (949)443-1360 Email: sales@cyberlive.com Web: http://www.cyberlive.com _/_/_/_/_/_/_/_/_/_/_/_/_/_/ \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ _/_/_/_/_/_/_/ The Internet Services Professionals \_\_\_\_\_\_\_ 31781 Camino Capistrano, Suite 302, San Juan Capistrano, CA 92675------------------------------------------------------------- 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 Jym Duane

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:

message board (2001) OT: 800x600 (2003) calculating time (2002) Problems with [Search] param - Mac Plugin b15 (1997) Just a thought (1998) Catalogs and W* (1996) WebDNA Solutions ... sorry! (1997) Running 2 two WebCatalog.acgi's (1996) WebCat2b15MacPlugin - showing [math] (1997) [TaxableTotal] - not working with AOL and IE (1997) Updating fields from different platforms (1998) WebCat2 several catalogs? (1997) OT: WebDNA and LINUX (2004) RE: Answer: WebDelivery downloads alias, not original ? (1997) using listfiles to build a database? more (2000) help! problem using [referrer] still in 2.01 (1997) Single Link browsing (1997) emailer (1997) Beta 18 (1997) [isfolder] and [filename] (1997)