Re: Adding Items to Cart

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 49713
interpreted = N
texte = Just on the smithmicro webdna reference at http://webdna.smithmicro.com/ref/index.html. I would think that putting it under [loop] would be a nice example there of looping through formvariables to add multiple items to a cart. Just go to contexts, then loops and then at the bottom click on the gray colored pencil icon next to the User contributed notes to add your snippet. I'm sure it will come in handy for somebody sometime down the road....and digging through the list archives can be a as we all know :)Thanks! GK----- Original Message ----- From: Kimberly D. Walls To: WebDNA Talk Sent: Tuesday, April 22, 2003 10:15 PM Subject: Re: Adding Items to Cart > I would love to post it, just tell me where and how. =) > > > > -----Original Message----- > From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of > Gary Krockover > Sent: Tuesday, April 22, 2003 11:04 PM > To: WebDNA Talk > Subject: Re: Adding Items to Cart > > Very nice....I think I smell a snippet for the WebDNA Interactive > Reference, > care to post it? > > :) > > GK > > ----- Original Message ----- > From: Kimberly D. Walls > To: WebDNA Talk > Sent: Tuesday, April 22, 2003 9:55 PM > Subject: Re: Adding Items to Cart > > > > YAY!!! I took what you showed me and combined it with the > > [text]sku=[value][/text] that I had come up with. This is what works > and > > it works like a charm!!!! > > > > [loop start=1&end=[numadd]] > > [text show=T]ndx=[index][/text] > > [formvariables name=sku_[ndx]&exact=T] > > [text show=T]sku=[value][/text] > > [/formvariables] > > [formvariables name=quantity_[ndx]&exact=T] > > [text show=T]quantity=[value][/text] > > [/formvariables] > > [showif [quantity]!0] > > [addlineitem > > cart=[cart]&sku=[sku]&db=catalog.txt]quantity=[quantity][/addlineitem] > > [/showif] > > [/loop] > > > > THANK YOU SOOOOO VERY VERY MUCH!!!!! =) > > > > > > > > > > -----Original Message----- > > From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf > Of > > Glenn Busbin > > Sent: Tuesday, April 22, 2003 10:41 PM > > To: WebDNA Talk > > Subject: Re: Adding Items to Cart > > > > > > > > > > > On order.html, try this: > > > > [formvariables] > > [name], [value]
> > [/formvariables] > > > >
> > > > [Loop start=1&end=[numAdd]] > > [Text Show=F]ndx=[index][/Text] > > [formvariables name=sku_[ndx]&exact=T] > > sku: [name], [value]
> > [formvariables name=quantity_[ndx]&exact=T] > > qty: [name], [value]
> > [/formvariables] > > [/formvariables] > > [/Loop] > > > > If the right names and values appear, you can then add in the > > AddLineItem stuff. > > > > Lemme know how it works. My solution didn't involve a cart. I was > > appending stuff to a db after carrying several related variables, > > though. > > > > Glenn ------------------------------------------------------------- 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: Adding Items to Cart (Gary Krockover 2003)
  2. Re: Adding Items to Cart (Kimberly D. Walls 2003)
  3. Re: Adding Items to Cart (Gary Krockover 2003)
  4. Re: Adding Items to Cart (Kimberly D. Walls 2003)
  5. Re: Adding Items to Cart (Glenn Busbin 2003)
  6. Re: Adding Items to Cart (Glenn Busbin 2003)
  7. Re: Adding Items to Cart (Kimberly D. Walls 2003)
  8. Re: Adding Items to Cart (Kimberly D. Walls 2003)
  9. Re: Adding Items to Cart (Glenn Busbin 2003)
  10. Adding Items to Cart (Kimberly D. Walls 2003)
Just on the smithmicro WebDNA reference at http://webdna.smithmicro.com/ref/index.html. I would think that putting it under [loop] would be a nice example there of looping through formvariables to add multiple items to a cart. Just go to contexts, then loops and then at the bottom click on the gray colored pencil icon next to the User contributed notes to add your snippet. I'm sure it will come in handy for somebody sometime down the road....and digging through the list archives can be a as we all know :)Thanks! GK----- Original Message ----- From: Kimberly D. Walls To: WebDNA Talk Sent: Tuesday, April 22, 2003 10:15 PM Subject: Re: Adding Items to Cart > I would love to post it, just tell me where and how. =) > > > > -----Original Message----- > From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of > Gary Krockover > Sent: Tuesday, April 22, 2003 11:04 PM > To: WebDNA Talk > Subject: Re: Adding Items to Cart > > Very nice....I think I smell a snippet for the WebDNA Interactive > Reference, > care to post it? > > :) > > GK > > ----- Original Message ----- > From: Kimberly D. Walls > To: WebDNA Talk > Sent: Tuesday, April 22, 2003 9:55 PM > Subject: Re: Adding Items to Cart > > > > YAY!!! I took what you showed me and combined it with the > > [text]sku=[value][/text] that I had come up with. This is what works > and > > it works like a charm!!!! > > > > [loop start=1&end=[numadd]] > > [text show=T]ndx=[index][/text] > > [formvariables name=sku_[ndx]&exact=T] > > [text show=T]sku=[value][/text] > > [/formvariables] > > [formvariables name=quantity_[ndx]&exact=T] > > [text show=T]quantity=[value][/text] > > [/formvariables] > > [showif [quantity]!0] > > [addlineitem > > cart=[cart]&sku=[sku]&db=catalog.txt]quantity=[quantity][/addlineitem] > > [/showif] > > [/loop] > > > > THANK YOU SOOOOO VERY VERY MUCH!!!!! =) > > > > > > > > > > -----Original Message----- > > From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf > Of > > Glenn Busbin > > Sent: Tuesday, April 22, 2003 10:41 PM > > To: WebDNA Talk > > Subject: Re: Adding Items to Cart > > > > > > > > > > > On order.html, try this: > > > > [formvariables] > > [name], [value]
> > [/formvariables] > > > >
> > > > [Loop start=1&end=[numAdd]] > > [Text Show=F]ndx=[index][/Text] > > [formvariables name=sku_[ndx]&exact=T] > > sku: [name], [value]
> > [formvariables name=quantity_[ndx]&exact=T] > > qty: [name], [value]
> > [/formvariables] > > [/formvariables] > > [/Loop] > > > > If the right names and values appear, you can then add in the > > AddLineItem stuff. > > > > Lemme know how it works. My solution didn't involve a cart. I was > > appending stuff to a db after carrying several related variables, > > though. > > > > Glenn ------------------------------------------------------------- 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/ Gary Krockover

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:

Extended [ConvertChars] (1997) Counting records (2000) Additional Subtotals (1999) [WebDNA] max-age (2016) quantity minimum problem (1997) webcatalog [date] bug (1999) [WebDNA] Date/time server vs. browser (2015) Password and Allow commands (1998) [include] and v.email (1998) Writefile problem (1999) page redirect in webDNA (1997) a search based on ^(contains) (1998) security (1997) problems with 2 tags (1997) attn: smitmicro - cart limitation (2002) Question about replacing words (1998) many-to-one problem (1998) Another new bug found ... (2000) Frames and WebCat (1997) unable to launch acgi in WebCat (1997)