Re: Remove Multiple Line Items
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62831
interpreted = N
texte = On Aug 23, 2005, at 13:32, Stuart Tremain wrote:> Hi>> I am trying to remove multiple line items from a cart in one form>> If I have 10 items in a cart and want to remove 4 at once there is a > problem in that once the first item is removed the remaining items > change their [index] to take up the now removed row.>> Therefore if I wanted to remove items 1, 4, 5, 10> When number one is removed Item 4 becomes 3, 5 becomes 4, 9 becomes > 10. When 4 is removed it removes the original 5 which is now number 4, > the original 10 becomes 8.>> When 5 is removed the original 7 is removed - BAD and the original 10 > becomes 7, now there is no number 10 to remove.>> Any ideas ?Remove them in reverse index order. Simple, right?:)Or if there's only one line item per sku, remove then by sku.Sincerely,Kenneth Gromewww.kengrome.com-------------------------------------------------------------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 Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
On Aug 23, 2005, at 13:32, Stuart Tremain wrote:> Hi>> I am trying to remove multiple line items from a cart in one form>> If I have 10 items in a cart and want to remove 4 at once there is a > problem in that once the first item is removed the remaining items > change their [index] to take up the now removed row.>> Therefore if I wanted to remove items 1, 4, 5, 10> When number one is removed Item 4 becomes 3, 5 becomes 4, 9 becomes > 10. When 4 is removed it removes the original 5 which is now number 4, > the original 10 becomes 8.>> When 5 is removed the original 7 is removed - BAD and the original 10 > becomes 7, now there is no number 10 to remove.>> Any ideas ?Remove them in reverse index order. Simple, right?:)Or if there's only one line item per sku, remove then by sku.Sincerely,Kenneth Gromewww.kengrome.com-------------------------------------------------------------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 Web Archive of this list is at: http://webdna.smithmicro.com/
Kenneth Grome
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:
Append command (2000)
Another question (1997)
UPS Calculator (2003)
WebCat b13 CGI -shownext- (1997)
[WebDNA] Error 500 with SUMM=T (2017)
b12 cannot limit records returned and more. (1997)
Checking for WebCatalog Version (2000)
Updating a database once per day - An example (1998)
emailer (1997)
WebCatalog can't find database (1997)
AuthorizeNet Down? (2001)
referrer and no caches (1997)
WebCommerce: Folder organization ? (1997)
Misc Stuff That Might Help (1997)
Showif, Search and text ? (2003)
show if date < expiry date (small corrections) (2002)
Date problems-more (1997)
Price override (2004)
How far do [showif]s go? (1997)
No Answer on Web Merchant Problem? (2001)