Re: Colors in cart

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 41285
interpreted = N
texte = When I add the following code, from your suggestions, the values are still coming up blank.[showif [command]=add] [formvariables name=Font][addlineitem cart=[cart]&sku=[value]&db=admin/amdv.db]quantity=[quantity] &texta=[selectedsizes]&textb=[selectedcolors][/addlineitem][/formvariables][/showif]S- -----Original Message----- From: Robert Wade [mailto:robert@outboundcreative.com] Sent: Tuesday, July 09, 2002 10:26 AM To: WebCatalog Talk Subject: Re: Colors in cart You might want to consider just setting the texta and text be fields when you add the item with your addlineitem and get rid of that setlineitem context all together.[addlineitem cart=[cart]&sku=[sku]&db=yourdatabase.db]quantity=[quantity]&texta=[selectedsizes]&textb=[selectedcolors][/addlineitem]Also know that when using a setlineitem you have to define which lineitem you are setting. You do this with the index= parameter.[setlineitem cart=[cart]&index=[yourIndexValue]]quantity=[quantity]&texta=[selectedsizes]&textb=[selectedcolors][/setlineitem]You have to define somehow your index value. Usually the setlineitem might be within a lineitems loop, and using a showif to determine which one shows. If you are using a lineitems loop you would use [lineindex] as the value.This is all in the docs, BTW.HTH -Robertstephen wrote:> On the shoppingcart page, after the ADDLINEITEM tag, I have: > > [setlineitem cart=[cart]]texta=[selectedsizes]&textb=[selectedcolors][/setlineitem] > > Then in the lineitems section, cart, I have [texta] to show size and [textb] to show color. > > It is coming up blank now. > > -----Original Message----- > From: Robert Wade [mailto:robert@outboundcreative.com] > Sent: Tuesday, July 09, 2002 9:54 AM > To: WebCatalog Talk > Subject: Re: Colors in cart > > Make sure you save the value in one of the text headers of your lineitems. (texta, textb, textc, textd, or > texte). You may want to post your addlineitem or setlineitem contexts that you are using so we can get a > better idea of what you're doing wrong. > > stephen wrote: > > > I am having the user select a color before they add it to the cart. > > I pass the value thru the form calling it selectedcolor. > > > > It works, but when I add another item with a different color, it changes the other item to that color value. > > > > How can make each color be unique to its lineitem? > > > > S- > > > > ------------------------------------------------------------- > > 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://search.smithmicro.com/ > > -- > > ================================================ > Robert Wade > Outbound Creative, Inc. > robert@outboundcreative.com > ================================================ > |[ ] L|| '||' ||} |[ ] L|| ||\| ||) > ================================================ > > ------------------------------------------------------------- > 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://search.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://search.smithmicro.com/--================================================ Robert Wade Outbound Creative, Inc. robert@outboundcreative.com ================================================ |[ ] L|| '||' ||} |[ ] L|| ||\| ||) ================================================------------------------------------------------------------- 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://search.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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Colors in cart (Robert Wade 2002)
  2. Re: Colors in cart (Robert Wade 2002)
  3. Re: Colors in cart (stephen 2002)
  4. Re: Colors in cart (Robert Wade 2002)
  5. Re: Colors in cart (stephen 2002)
  6. Re: Colors in cart (Robert Wade 2002)
  7. Re: Colors in cart (stephen 2002)
  8. Re: Colors in cart (Robert Wade 2002)
  9. Re: Colors in cart (stephen 2002)
  10. Re: Colors in cart (Robert Wade 2002)
  11. Colors in cart (stephen 2002)
When I add the following code, from your suggestions, the values are still coming up blank.[showif [command]=add] [formvariables name=Font][addlineitem cart=[cart]&sku=[value]&db=admin/amdv.db]quantity=[quantity] &texta=[selectedsizes]&textb=[selectedcolors][/addlineitem][/formvariables][/showif]S- -----Original Message----- From: Robert Wade [mailto:robert@outboundcreative.com] Sent: Tuesday, July 09, 2002 10:26 AM To: WebCatalog Talk Subject: Re: Colors in cart You might want to consider just setting the texta and text be fields when you add the item with your addlineitem and get rid of that setlineitem context all together.[addlineitem cart=[cart]&sku=[sku]&db=yourdatabase.db]quantity=[quantity]&texta=[selectedsizes]&textb=[selectedcolors][/addlineitem]Also know that when using a setlineitem you have to define which lineitem you are setting. You do this with the index= parameter.[setlineitem cart=[cart]&index=[yourIndexValue]]quantity=[quantity]&texta=[selectedsizes]&textb=[selectedcolors][/setlineitem]You have to define somehow your index value. Usually the setlineitem might be within a lineitems loop, and using a showif to determine which one shows. If you are using a lineitems loop you would use [lineindex] as the value.This is all in the docs, BTW.HTH -Robertstephen wrote:> On the shoppingcart page, after the ADDLINEITEM tag, I have: > > [setlineitem cart=[cart]]texta=[selectedsizes]&textb=[selectedcolors][/setlineitem] > > Then in the lineitems section, cart, I have [texta] to show size and [textb] to show color. > > It is coming up blank now. > > -----Original Message----- > From: Robert Wade [mailto:robert@outboundcreative.com] > Sent: Tuesday, July 09, 2002 9:54 AM > To: WebCatalog Talk > Subject: Re: Colors in cart > > Make sure you save the value in one of the text headers of your lineitems. (texta, textb, textc, textd, or > texte). You may want to post your addlineitem or setlineitem contexts that you are using so we can get a > better idea of what you're doing wrong. > > stephen wrote: > > > I am having the user select a color before they add it to the cart. > > I pass the value thru the form calling it selectedcolor. > > > > It works, but when I add another item with a different color, it changes the other item to that color value. > > > > How can make each color be unique to its lineitem? > > > > S- > > > > ------------------------------------------------------------- > > 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://search.smithmicro.com/ > > -- > > ================================================ > Robert Wade > Outbound Creative, Inc. > robert@outboundcreative.com > ================================================ > |[ ] L|| '||' ||} |[ ] L|| ||\| ||) > ================================================ > > ------------------------------------------------------------- > 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://search.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://search.smithmicro.com/--================================================ Robert Wade Outbound Creative, Inc. robert@outboundcreative.com ================================================ |[ ] L|| '||' ||} |[ ] L|| ||\| ||) ================================================------------------------------------------------------------- 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://search.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://search.smithmicro.com/ stephen

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:

Mozilla/4. and Browser Info.txt (1997) Reversing [ipaddress] normalization (1998) looping table rows (1999) WebCat2: Found Items syntax, etc. (1997) [OT] BBedit Blank Line removal (2003) RE: [isfolder] and [filename] (1997) WebCat for mass emailings (1997) 4.5 Upgrade (2003) Quit revisited (1997) Re:my First Ship table (1998) problems with 2 tags (1997) Date Sorting (1997) [shownext max=?] armed (1997) [Sum] function? (1997) webcat license???? (1997) WebCat2.0 acgi vs plugin (1997) webcat plugin issue (2001) [WebDNA] Installation on windows 2008 server (2010) [WebDNA] Credit card processing (2012) Choices (2000)