Re: how to know the [LineIndex] number webcat generated during a [AddLineItem]?

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 26173
interpreted = N
texte = No I hadn't thought of that Seannie... thank you both (Rob too) for the tips. I would have missed the points you made. It's a wonder programmers stay sane trying to account for every possible situation. :-) -Johnelive talklists wrote:> what happens when the lineitmes loop gets to the product you > have split up later in the orderfile? > be sure to reduce the numinstock figure otherwise it might try to > split it again if the order quantity is more than double the numinstock > > maybe you thought of this already... > > sr > > ---------- > >From: John Butler > >To: (WebCatalog Talk) > >Subject: Re: how to know the [LineIndex] number webcat generated during a > [AddLineItem]? > >Date: Fri, Jan 14, 2000, 18:55 > > > > > Rob, you mean something like this- (?) > > > > [math]NumCartItems=0[/math] > > > > [LineItems] > > [math]NumCartItems=[NumCartItems]+1[/math] > > [/LineItems] > > > > [LineItems] > > [!]--START split up---[/!] > > > > [SetLineItem > > > cart=[cart]&index=[lineindex]&db=products.db]quantity=[NumInStock][/SetLineI > tem] > > [AddLineItem > > > cart=[cart]&sku=[SKU]&db=products.db]quantity=[NumOuttaStock]&textA=[textA]& > textB=[te > > xtB]&textC=[textC][/AddLineItem] > > > > > > [math]NumCartItems=[NumCartItems]+1[/math] > > [!]--END split up---[/!] > > [/LineItems] > > > > Do I have it right? Comprehensive enough to not miss anything? > > > > -John > > > > Rob Marquardt wrote: > > > >> On 1/14/00 11:46 am, John Butler so noted... > >> > >> >how do I determine what > >> >is the LineIndex number for the lineitem webcat just added while executing > >> >the [AddLineItem]...[/AddLineItem]? > >> > >> It's going to be the total number of items in your cart before the split, > >> plus one. Be sure your routine that does the splitting tracks how many > >> splits are done, since multiple splits could occur in a single order. > >> > >> Rob Marquardt > >> Designer/Resident Wirehead > >> Toast Design > >> > >> 800 Washington Avenue North > >> Minneapolis MN 55401 > >> 612.330.9863 v > >> 612.321.9424 f > >> www.toastdesign.com > >> > >> ------------------------------------------------------------- > >> 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 > > > > ------------------------------------------------------------- > 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: how to know the [LineIndex] number webcat generated during a [AddLineItem]? (John Butler 2000)
  2. Re: how to know the [LineIndex] number webcat generated during a [AddLineItem]? (John Butler 2000)
  3. Re: how to know the [LineIndex] number webcat generated during a [AddLineItem]? (Rob Marquardt 2000)
No I hadn't thought of that Seannie... thank you both (Rob too) for the tips. I would have missed the points you made. It's a wonder programmers stay sane trying to account for every possible situation. :-) -Johnelive talklists wrote:> what happens when the lineitmes loop gets to the product you > have split up later in the orderfile? > be sure to reduce the numinstock figure otherwise it might try to > split it again if the order quantity is more than double the numinstock > > maybe you thought of this already... > > sr > > ---------- > >From: John Butler > >To: (WebCatalog Talk) > >Subject: Re: how to know the [LineIndex] number webcat generated during a > [addlineitem]? > >Date: Fri, Jan 14, 2000, 18:55 > > > > > Rob, you mean something like this- (?) > > > > [math]NumCartItems=0[/math] > > > > [lineitems] > > [math]NumCartItems=[NumCartItems]+1[/math] > > [/LineItems] > > > > [lineitems] > > [!]--START split up---[/!] > > > > [SetLineItem > > > cart=[cart]&index=[lineindex]&db=products.db]quantity=[NumInStock][/SetLineI > tem] > > [AddLineItem > > > cart=[cart]&sku=[SKU]&db=products.db]quantity=[NumOuttaStock]&textA=[textA]& > textB=[te > > xtB]&textC=[textC][/AddLineItem] > > > > > > [math]NumCartItems=[NumCartItems]+1[/math] > > [!]--END split up---[/!] > > [/LineItems] > > > > Do I have it right? Comprehensive enough to not miss anything? > > > > -John > > > > Rob Marquardt wrote: > > > >> On 1/14/00 11:46 am, John Butler so noted... > >> > >> >how do I determine what > >> >is the LineIndex number for the lineitem webcat just added while executing > >> >the [addlineitem]...[/AddLineItem]? > >> > >> It's going to be the total number of items in your cart before the split, > >> plus one. Be sure your routine that does the splitting tracks how many > >> splits are done, since multiple splits could occur in a single order. > >> > >> Rob Marquardt > >> Designer/Resident Wirehead > >> Toast Design > >> > >> 800 Washington Avenue North > >> Minneapolis MN 55401 > >> 612.330.9863 v > >> 612.321.9424 f > >> www.toastdesign.com > >> > >> ------------------------------------------------------------- > >> 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 > > > > ------------------------------------------------------------- > 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 John Butler

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:

ERASING DATABASE (1997) Calendar (1997) Logging purchases (1997) Client-side Image Maps and WebCat? (1998) RE: Languages (1997) Price recalc based on quantity (1997) [subtotal] problems -- help? (1998) Disappearing Databases (2000) Emailer Set Up (1997) can WC render sites out? (1997) Country & Ship-to address & other fields ? (1997) [redirect] question (2005) WebCatalog can't find database (1997) Error:Too many nested [xxx] contexts (1997) WebCatalog can't find database (1997) PSC recommends what date format yr 2000??? (1997) WebCatalog 3.x (2003) Calendar using WebCatalog? (1997) Opinion: [input] should be called [output] ... (1997) NT 2.1b10 (1998)