Re: LineItem variable set
This WebDNA talk-list message is from 2007
It keeps the original formatting.
numero = 68882
interpreted = N
texte = Ki,Try [showif [description]^PROMO] instead.^=containsMarcKi Song 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/> -- -------------------------------------------Marc ThompsonSoftware EngineerOffice of Information TechnologyUniversity of Utah801.585.9264marc.thompson@utah.edu--------------------------------------------------------------------------------------------------------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:
Ki,Try [showif [description]^PROMO] instead.^=containsMarcKi Song 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/> -- -------------------------------------------Marc ThompsonSoftware EngineerOffice of Information TechnologyUniversity of Utah801.585.9264marc.thompson@utah.edu--------------------------------------------------------------------------------------------------------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/
Marc Thompson
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:
[OT] Shell script (2004)
Sendmail and SMTP AUTH (2005)
[WebDNA] Group results but continuous (2016)
the dreaded unitShipCost (2003)
Looping through all records (2000)
unitshipcost vs shipcosts (1997)
Document Contains No Data! (1997)
Version 2.1.3 changes ... (1998)
[isfile] ? (1997)
re:check boxes (1997)
[WebDNA] Need to convert unix date? (2009)
japanese characters (1997)
Wierd thing in ViewOrder.tpl (1999)
what servers are supported for Typhoon? (1997)
foreign character sets and conversions (1998)
Anyone awake? Just testing... (2005)
still having search problem, please help :) (2004)
random images (1997)
[if] and [showif] (2002)
How to Sort Summ data ? (1997)