Re: When is unitShipCost calculated?

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 20433
interpreted = N
texte = PCS Technical Support wrote:> All lineitems are 'fixed' once they are added to the cart -- the > formula is applied at the moment of 'Add'. Usually we set up HTML > pages to ask for the shipping destination *before* the cart, just for > this reason. The GeneralStore example does this, for instance. > > For more complex stuff, you can go back and modify lineitems once they > are in the cart using [SetLineItem] as you already mentioned.Right, but what I mentioned was that it didn't work, as implemented. So I'm wondering if I'm using [setLineItem] the right way. Can I use it in a [lineitems] loop? Can I use it with a [lookup]? Can I use it in a house? Can I use it with a mouse?[lineItems] [lineindex]
[quantity] @ $[price]/each: [math][quantity]*[price][/math] [setlineitem cart=[cart]&db=software.db&index=[lineindex]]unitShipCost=[lookup db=unitShipCost.db&lookinfield=shipVia&value=[shipVia]&returnfield=unitShipCost][/setlineitem] [/lineItems]Even when I replace the [lookup] with a fixed number, it won't set, and since it's an invisible context, I can't see what's going wrong.Thanks,:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: : Brian.Drum :::::::::::::::::::::::::::::::: mailto:bdrum@aecsoft.com : : Web.Designer :::::::::::::::::::::::::::::::: http://www.aecsoft.com : : AEC.Software;.Inc.:::::::::::::::::::::::::::: tel:703.450.1980 :::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Associated Messages, from the most recent to the oldest:

    
  1. Re: When is unitShipCost calculated? (Luke Melia 1998)
  2. Re: When is unitShipCost calculated? (Brian Drum 1998)
  3. Re: When is unitShipCost calculated? (Brian Drum 1998)
  4. Re: When is unitShipCost calculated? (PCS Technical Support 1998)
  5. When is unitShipCost calculated? (Brian Drum 1998)
PCS Technical Support wrote:> All lineitems are 'fixed' once they are added to the cart -- the > formula is applied at the moment of 'Add'. Usually we set up HTML > pages to ask for the shipping destination *before* the cart, just for > this reason. The GeneralStore example does this, for instance. > > For more complex stuff, you can go back and modify lineitems once they > are in the cart using [setlineitem] as you already mentioned.Right, but what I mentioned was that it didn't work, as implemented. So I'm wondering if I'm using [setlineitem] the right way. Can I use it in a [lineitems] loop? Can I use it with a [lookup]? Can I use it in a house? Can I use it with a mouse?[lineitems] [lineindex]
[quantity] @ $[price]/each: [math][quantity]*[price][/math] [setlineitem cart=[cart]&db=software.db&index=[lineindex]]unitShipCost=[lookup db=unitShipCost.db&lookinfield=shipVia&value=[shipVia]&returnfield=unitShipCost][/setlineitem] [/lineItems]Even when I replace the [lookup] with a fixed number, it won't set, and since it's an invisible context, I can't see what's going wrong.Thanks,:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: : Brian.Drum :::::::::::::::::::::::::::::::: mailto:bdrum@aecsoft.com : : Web.Designer :::::::::::::::::::::::::::::::: http://www.aecsoft.com : : AEC.Software;.Inc.:::::::::::::::::::::::::::: tel:703.450.1980 :::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Brian Drum

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:

NT b19 sends extra MIME headers (1997) Re:Emailer and encryption (1997) Fun with Dates - revisited (1997) [WebDNA] Trigger stops executing (2017) [WebDNA] Change the charset of uploaded text file (2010) [WebDNA] Cookie Enabled/Disabled (2013) detecting if var is blank? (2007) [ModDate] & [ModTime] ? (1997) [Fwd: F3 database munching] (1997) [SearchString] usage (1997) Summing fields (1997) Training Tapes Improved (1998) Confused about QTY and QTY* price updating (1998) Authorize.net questions ... (2003) Locking up with WebCatalog... (1997) WebCat2b12plugin - [search] is broken ... not! (1997) Kill the webcat process (2000) Is there an alternative to emailer? (1999) [taxRate] [TaxTotal] ? (1997) Problems with [Search] param - Mac Plugin b15 (1997)