[quantity] and quantity[lineindex]

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 26898
interpreted = N
texte = I'm getting confused about when to use [quantity] and its relationship to quantity[lineindex].On a product page I add an item with [quantity]=1. From here, I take the user to a shopping cart page that displays the contents of the cart. Following the tutorial, the quantity is supposedly displayed by: [lineitems] [/lineitems]However, this seems to display the [lineindex] as the quantity (i.e., the 2nd item you add has quantity=2, the 3rd quantity=3). I do let people update quantities on this page, and, using this same form item, the quantities update properly (i.e., I can set the quantity for item 2 to, say, 4, click Update and it will display properly on this same page). However, as soon as you add a new item, the quanitities all get reset to their lineindex values.Can someone explain what's going on here?Gratefully,Kevin Lippert ------------------------------------------------------------- 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: [quantity] and quantity[lineindex] (Brian Boegershausen 2000)
  2. [quantity] and quantity[lineindex] (Kevin Lippert 2000)
  3. Re: [quantity] and quantity[lineindex] (Sam Polk 2000)
I'm getting confused about when to use [quantity] and its relationship to quantity[lineindex].On a product page I add an item with [quantity]=1. From here, I take the user to a shopping cart page that displays the contents of the cart. Following the tutorial, the quantity is supposedly displayed by: [lineitems] [/lineitems]However, this seems to display the [lineindex] as the quantity (i.e., the 2nd item you add has quantity=2, the 3rd quantity=3). I do let people update quantities on this page, and, using this same form item, the quantities update properly (i.e., I can set the quantity for item 2 to, say, 4, click Update and it will display properly on this same page). However, as soon as you add a new item, the quanitities all get reset to their lineindex values.Can someone explain what's going on here?Gratefully,Kevin Lippert ------------------------------------------------------------- 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 Kevin Lippert

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:

writefile, csv, tab and excel import behavior (2004) Date search - yes or no (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) serial number dishing (1997) mailto: tag (2001) Sorting error (1997) HELLO (2000) Formulas.db not working (2006) FISKARS (2003) Extended [ConvertChars] (1997) WebDNA Solutions ... sorry! (1997) WebCat2b12plugin - [search] is broken ... not! (1997) setitems, one more thing (1997) setting line item numbers (1998) pop up menu's (1998) Erotic Sites (1997) Multiple instances of database (2003) Strange ThisURL under Linux (2000) Add to Cart & List of Products (1997) Formatting ModDate (2000)