Re: LineItem variable set

This WebDNA talk-list message is from

2007


It keeps the original formatting.
numero = 68881
interpreted = N
texte = I always have better luck with the "contains" (^) tag but I suspect that it may be other issues involving being inside a lineitems context. G. At 10:37 AM 4/26/2007, you wrote: >I am trying to add a promotional item to the cart IF a line item description >contains a certain word. >For example, if a line item's description begins with the word "PROMO", then >I want to set a variable validitem to 't'. > >How do I do this? > >I thought this would work, but for some reason, it is not setting the >variable to t. > >[lineitems] >[showif [description]~PROMO] > [text show=t]validitem=t[/text] >[/showif] >[/lineitems] ------------------------------------------------------------- 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: LineItem variable set ( Marc Thompson 2007)
  2. Re: LineItem variable set ( thierry 2007)
  3. Re: LineItem variable set ( Jim Ziegler 2007)
  4. Re: LineItem variable set ( Ki Song 2007)
  5. Re: LineItem variable set ( Marc Thompson 2007)
  6. Re: LineItem variable set ( Donovan Brooke 2007)
  7. Re: LineItem variable set ( Ki Song 2007)
  8. Re: LineItem variable set ( Marc Thompson 2007)
  9. Re: LineItem variable set ( Ki Song 2007)
  10. Re: LineItem variable set ( Marc Thompson 2007)
  11. Re: LineItem variable set ( Gary Krockover 2007)
  12. LineItem variable set ( Ki Song 2007)
I always have better luck with the "contains" (^) tag but I suspect that it may be other issues involving being inside a lineitems context. G. At 10:37 AM 4/26/2007, you wrote: >I am trying to add a promotional item to the cart IF a line item description >contains a certain word. >For example, if a line item's description begins with the word "PROMO", then >I want to set a variable validitem to 't'. > >How do I do this? > >I thought this would work, but for some reason, it is not setting the >variable to t. > >[lineitems] >[showif [description]~PROMO] > [text show=t]validitem=t[/text] >[/showif] >[/lineitems] ------------------------------------------------------------- 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:

Auto Submit (2000) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) [WebDNA] Imagemagick (2018) Conditional searching & displaying (1997) [Sum] function? (1997) How long until WebDNA makes the list? :( (2004) WebCatalog NT beta 18 now available (1997) SQL connection (2000) Sort Floating Point Number (2008) [OT] WebStar SSL (2004) tpl and Explorer (1998) pictures / referrer etc. (1998) Spawn Wishes (1998) Showif probably dumb question (1997) Email within tmpl ? (1997) [Fwd: Rotating Banners ... (was LinkExchange)] (1997) won't serve .tpl (2000) Email...Thanks (1997) FORMS: Returning a specific page (1997) Concatenating Form Variables (1998)