Re: Remove Multiple Line Items

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 62833
interpreted = N
texte = Yep Simple ! Thanks :) Stuart Tremain idfk web developments, sydney, australia On 23 Aug 2005, at 7:12 PM, Kenneth Grome wrote: > 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 Grome > www.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 digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.smithmicro.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:

    
  1. Re: Remove Multiple Line Items ( Stuart Tremain 2005)
  2. Re: Remove Multiple Line Items ( Brian Fries 2005)
  3. Re: Remove Multiple Line Items ( Stuart Tremain 2005)
  4. Re: Remove Multiple Line Items ( Stuart Tremain 2005)
  5. Re: Remove Multiple Line Items ( Stuart Tremain 2005)
  6. Re: Remove Multiple Line Items ( Terry Wilson 2005)
  7. Re: Remove Multiple Line Items ( Kenneth Grome 2005)
  8. Remove Multiple Line Items ( Stuart Tremain 2005)
Yep Simple ! Thanks :) Stuart Tremain idfk web developments, sydney, australia On 23 Aug 2005, at 7:12 PM, Kenneth Grome wrote: > 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 Grome > www.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 digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.smithmicro.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/ Stuart Tremain

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:

SEARCH Peram (2003) WebCat2b13 Command Reference Doc error (1997) PIXO (1997) sendmail error (1997) [WebDNA] sort parameters in search (2015) WebCat2b12 CGI Mac - [shownext] problem (1997) multiple db's (2003) This [search] worked before update to 4.5.1 (2003) WC2b15 File Corruption (1997) WebDNA creates DUPLICATE SHOPPING CART NUMBERS (2004) Date problems (1997) Formating Tables w/[founditems] (1998) [WebDNA] WebDNA and MAMP/Apache (Mac) (2018) Cobalt RaQ Installation (2003) [WebDNA] grep again (2010) Storefornts (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) WebCat2 - [include] tags (1997) update on include (1997) WebCatalog for Postcards ? (1997)