numero = 26900
interpreted = N
texte = When adding a product to the cart you can use quantity=5, or whatever amountyou want to make the initial add because you are specifying the sku. Whenusing the shopping cart or any instance or the lineitems, you need to havespecified which item gets which quantity. This is where the lineindex comesin. If you just state quantity, webcat will not know which sku gets thatquantity. Each item in the cart is given a line index to show which productit is. This goes for the qty as well.The first product will have a lineindex of 1, a sku and a quantity calledquantity named quantity1. The 1 comes from the [lineindex] It is aplaceholder 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 BoegershausenWebCatalog Programmerwww.orderbywire.com----- Original Message -----From: Kevin Lippert To: WebCatalog Talk Sent: Wednesday, February 02, 2000 3:37 PMSubject: [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 MessagingServer.> 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:
Re: [quantity] and quantity[lineindex] (Brian Boegershausen 2000)
When adding a product to the cart you can use quantity=5, or whatever amountyou want to make the initial add because you are specifying the sku. Whenusing the shopping cart or any instance or the lineitems, you need to havespecified which item gets which quantity. This is where the lineindex comesin. If you just state quantity, webcat will not know which sku gets thatquantity. Each item in the cart is given a line index to show which productit is. This goes for the qty as well.The first product will have a lineindex of 1, a sku and a quantity calledquantity named quantity1. The 1 comes from the [lineindex] It is aplaceholder 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 BoegershausenWebCatalog Programmerwww.orderbywire.com----- Original Message -----From: Kevin Lippert To: WebCatalog Talk Sent: Wednesday, February 02, 2000 3:37 PMSubject: [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 MessagingServer.> 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
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...