Re: Number of Line Items

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 18771
interpreted = N
texte = At 16:44 Uhr -0800 09.07.1998, josh wrote: >Is their a method for determining the number of lineitems in a shopping >cart? I would like to display this number on each page so a shopper will >know how many items they have and the subtotal. First, define a counter and set it to zero. Within [OrderFile] do a [lineitems] loop and increment the counter. After the loop your counter will contain the number of items and you can display the value: [OrderFile cart=[cart]] [math show=f]cartitems=0[/math] [lineitems] [math show=f cartitems=cartitems+1[/math] [/lineitems] You have [math]cartitems[/math] items in your shopping cart. [/OrderFile] Peter__________________________________________ Peter Ostry - po@ostry.com - www.ostry.com Ostry & Partner - Ostry Internet Solutions Auhofstrasse 29 A-1130 Vienna Austria fon ++43-1-8777454 fax ++43-1-8777454-21 Associated Messages, from the most recent to the oldest:

    
  1. Re: Number of Line Items (Peter Ostry 1998)
  2. Re: Number of Line Items (Peter Ostry 1998)
  3. Number of Line Items (josh 1998)
  4. Re: Number of Line Items (PCS Technical Support 1998)
At 16:44 Uhr -0800 09.07.1998, josh wrote: >Is their a method for determining the number of lineitems in a shopping >cart? I would like to display this number on each page so a shopper will >know how many items they have and the subtotal. First, define a counter and set it to zero. Within [orderfile] do a [lineitems] loop and increment the counter. After the loop your counter will contain the number of items and you can display the value: [OrderFile cart=[cart]] [math show=f]cartitems=0[/math] [lineitems] [math show=f cartitems=cartitems+1[/math] [/lineitems] You have [math]cartitems[/math] items in your shopping cart. [/OrderFile] Peter__________________________________________ Peter Ostry - po@ostry.com - www.ostry.com Ostry & Partner - Ostry Internet Solutions Auhofstrasse 29 A-1130 Vienna Austria fon ++43-1-8777454 fax ++43-1-8777454-21 Peter Ostry

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:

Calculating Shipping charges for multiple items and qtys > 1 (1997) Or Operator (2005) WebCat2.0 [format thousands .0f] no go (1997) WebDNA v6 & MySQL (2008) [ShowNext] (1997) Calculating multiple shipping... (1997) WCS Newbie question (1997) Authenticate (1997) Bad suffix error (1997) Showing unopened cart (1997) [sendmail] possible modification needed... (2000) HomePage Caution (1997) WebStar 3 crackable !!!! (1998) RE: Missing contexts on NT (1997) WebCat2: Items xx to xx shown, etc. (1997) August 15th WebDNA Chat Transcript (2002) [shownext max=?] armed (1997) SetHeader not Working (2006) Who is doing sign-ups-got it (1998) Count regular expressions in a file (2007)