Re: [quantity] and quantity[lineindex]

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 26900
interpreted = N
texte = When adding a product to the cart you can use quantity=5, or whatever amount you want to make the initial add because you are specifying the sku. When using the shopping cart or any instance or the lineitems, you need to have specified which item gets which quantity. This is where the lineindex comes in. If you just state quantity, webcat will not know which sku gets that quantity. Each item in the cart is given a line index to show which product it is. This goes for the qty as well. The first product will have a lineindex of 1, a sku and a quantity called quantity named quantity1. The 1 comes from the [lineindex] It is a placeholder so webcat knows where to put everything in the cart. Any other product will be named with quantity2, quantity3...respectively. Hope that helps you.Brian Boegershausen WebCatalog Programmer www.orderbywire.com ----- Original Message ----- From: Kevin Lippert To: WebCatalog Talk Sent: Wednesday, February 02, 2000 3:37 PM Subject: [quantity] and quantity[lineindex] > 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 ------------------------------------------------------------- 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)
When adding a product to the cart you can use quantity=5, or whatever amount you want to make the initial add because you are specifying the sku. When using the shopping cart or any instance or the lineitems, you need to have specified which item gets which quantity. This is where the lineindex comes in. If you just state quantity, webcat will not know which sku gets that quantity. Each item in the cart is given a line index to show which product it is. This goes for the qty as well. The first product will have a lineindex of 1, a sku and a quantity called quantity named quantity1. The 1 comes from the [lineindex] It is a placeholder so webcat knows where to put everything in the cart. Any other product will be named with quantity2, quantity3...respectively. Hope that helps you.Brian Boegershausen WebCatalog Programmer www.orderbywire.com ----- Original Message ----- From: Kevin Lippert To: WebCatalog Talk Sent: Wednesday, February 02, 2000 3:37 PM Subject: [quantity] and quantity[lineindex] > 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 ------------------------------------------------------------- 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 Brian Boegershausen

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:

listwords and delimiters.. showing blank word? (2004) Stumpted Again (1997) problems with 2 tags (1997) Re:HELP - NONE STOP DIGESTS. Digest for 4/24/97) (1997) unable to launch acgi in WebCat (1997) suffix mapping for NT? (1997) Forms Search Questions (1997) OT: ASP Developer (1999) SQL (2004) Where's Cart Created ? (1997) snicker, snicker (1997) Mozilla/4. and Browser Info.txt (1997) YA 4.5.1 problem (2004) WebCat Code and WebStar Search? (2000) refreshing IE with posted .tmpl (1997) how to know the [LineIndex] number webcat generated during a [AddLineItem]? (2000) Re2: Calculating multiple shipping... (1997) Problem with [Search] inside of [Loop]? (1997) WebCat2 several catalogs? (1997) off topic - dna snipets (1997)