Announcement

Collapse
No announcement yet.

Product Name contains Block

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Product Name contains Block

    Hi,
    I want to set up a block if statement that looks for words in the short description/product name. Is this possible? If so what would the condition look like.

    I basically want it to look at the product name and if it contains the words Wetsuit and [Brand] it shows the element within the block.

    Also, slightly off but one of our brand names is O'Neill. I can't type this in the condition editor as it has an apostrophe. Is there a way around this?

    Cheers.

    #2
    Try this as the Condition:
    Code:
    (stristr(<actinic:variable name="ProductName" encoding="perl" />, "wetsuit") !== false)
    &&
    (stristr(<actinic:variable name="ProductName" encoding="perl" />, "o\'neill") !== false)
    Note that I've used case insensitive testing.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Amazing, thanks so much Norman!

      Comment

      Working...
      X