Re: Adding up weights

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17215
interpreted = N
texte = [math show=F]boxweight=[lineitems][textd]*[quantity]+[/lineitems]0[/math]I use this equation on my final invoice page where I already know all the quantities, etc. of the items. TextD happens to be where I store the weight in the shopping cart. I use the math expression because I reuse the number several times comparing the cost of different ship methods.Good luck!Sandy >Hi > >I'm using WebCatalog 2.1 on a Mac > >All my shopping site works except... > >Each of my products has a fixed weight but the shipping cost is based on >total order weight, I want to add the weights (multiplied by the quantity) >together on my invoice page so that I have a total weight to work out the >shipping cost > >How do I get the lineitems to add up? > >I think it would be something like- > >Weight total = [math][lineitems][[lineindex]weight]+[/lineitems][/math] > >but I just can't get my head around it. > > >Paul Willis > > Associated Messages, from the most recent to the oldest:

    
  1. Re: Adding up weights (Jay Van Vark 1998)
  2. Re: Adding up weights (Brian B. Burton 1998)
  3. Re: Adding up weights (PCS Technical Support 1998)
  4. Re: Adding up weights (Sandra L. Pitner 1998)
  5. Adding up weights (Paul Willis 1998)
[math show=F]boxweight=[lineitems][textd]*[quantity]+[/lineitems]0[/math]I use this equation on my final invoice page where I already know all the quantities, etc. of the items. TextD happens to be where I store the weight in the shopping cart. I use the math expression because I reuse the number several times comparing the cost of different ship methods.Good luck!Sandy >Hi > >I'm using WebCatalog 2.1 on a Mac > >All my shopping site works except... > >Each of my products has a fixed weight but the shipping cost is based on >total order weight, I want to add the weights (multiplied by the quantity) >together on my invoice page so that I have a total weight to work out the >shipping cost > >How do I get the lineitems to add up? > >I think it would be something like- > >Weight total = [math][lineitems][[lineindex]weight]+[/lineitems][/math] > >but I just can't get my head around it. > > >Paul Willis > > Sandra L. Pitner

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:

WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) breaking & sorting (2000) WebCat2b12plugin - [search] is broken ... not! (1997) carriage returns in data (1997) restarting service remotely on NT (1997) Multiple 'Users.db' files not possible (1997) HTML editing and webcatalog (2000) Frames and WebCat (1997) SPAM (OT) (2004) totals (1997) WebCatalog and barcodes (2000) suffix mapping, use of cache, etc. (1997) [WebDNA] isolatin-1 to utf-8 conversion (2013) web delivery (1997) Building Calendars (1997) WebCat2 beta 11 - new prefs ... (1997) strangeness with the form