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:

PSC recommends what date format yr 2000??? (1997) Shipcost update problem (1997) Search context not finding recent entries (1998) Integration with SQL (1997) Nesting format tags (1997) PCS Frames-Default page is solution! (1997) WebCat2b13MacPlugin - nested [xxx] contexts (1997) Mac Vs WindowsNT (1997) [shownext max=?] armed (1997) Popup Menu Options (1998) Search Criteria (2000) Any problems with Welcome & WebCat? (2000) Problem (1997) [ANN] The ZipBurst CGI 2.5 & Trial Size Special (2001) New Command prefs ... (1997) Plugin or CGI or both (1997) Help needed! (SIMS recommendation) (1998) Emailer file formats (1998) URGENT! Locked DB's (2001) Practice runs ? (1997)