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:

The USArea® Network web site ... (1997) WCS Newbie question (1997) Typhoon Rev. and PCS store problems (1999) [showif] / [hideif] (1997) &fieldsdir=ra truely random?? (2000) quotes and truncating? (1997) Emailer [cart] file names (1997) Not really WebCat (1997) [WebDNA] How do we tell what's misconfigured? Or which WebDNA 7 version to use? (2011) [shownext] and sort (1998) [WebDNA] Downloadable file protection (2011) random images (1997) Summing fields (1997) Status of variable hierarchy changes? (2000) Can you identify the [body]? (1999) case sensitivity in lookups (1997) Duplicate Cart ID (2001) Help formatting search results w/ table (1997) WebCat2.0 [format thousands .0f] no go (1997) WebMerchant 1.6 and SHTML (1997)