24/7 Support - 800.608.6482

Miva Merchant Community Forums

  1. #1
    Join Date
    Apr 2012
    Posts
    132

    Default Syntax Needed for Category Prefix

    Hi,

    I wanted change the following:
    <mvt:if expr="l.settings:category:code CIN 'PST_FOP'">

    to use the category prefix PST intead of the full category code. Basically, if the category prefix EQ 'PST' then . . .

    Just not sure of the syntax to use for the category prefix. This works for me know but I have 30+ categories and thought using the prefix will eliminate doing this 30+ times.


    Thanks in advance,
    Mike

  2. #2
    Join Date
    Apr 2012
    Posts
    132

    Default Re: Syntax Needed for Category Prefix

    Just in case this makes more sense I tried the following but it isn't working so I am assuming I don't have the syntax correct for the prefix.

    <mvt:if expr="g.catpre EQ 'PST'">

  3. #3
    Join Date
    Jul 2008
    Location
    NE Ohio - Go Cavs!
    Posts
    966

    Default Re: Syntax Needed for Category Prefix

    Try:

    Code:
    <mvt:if expr="'PST_' CIN l.settings:category:code">
    do this
    </mvt:if>
    Last edited by nottheusual1; 04-12-12 at 05:59 AM.

  4. #4
    Join Date
    Apr 2012
    Posts
    132

    Default Re: Syntax Needed for Category Prefix

    Perfect, that worked!

    Thanks so much,
    Mike

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •