24/7 Support - 800.608.6482

Miva Merchant Community Forums

Thread: Conditionally hiding an attribute prompt

  1. #1
    Join Date
    Aug 2008
    Location
    Pelham, AL
    Posts
    3,622

    Default Conditionally hiding an attribute prompt

    I have had to change the Merchant Notification email to use the attribute prompt instead of the attribute code (due to an issue with a 50 character limit). The attribute codes are now very human unfriendly which is why I switched it to the prompt. There is one prompt that is very long and I need to be able to have this specific one display the code. I'm trying to figure out how I can conditionally "swap" a prompt to a code.

    Any thoughts?

    Leslie
    Leslie Kirk (aka Leslie Nord leslienord)
    Miva Merchant Certified Developer
    Miva Merchant Specialist since 1998
    Previously of Webs Your Way

    Email me: leslie@lesliekirk.com
    www.lesliekirk.com

    Follow me: Twitter Twitter Twitter Twitter | Facebook | FourSquare | Pinterest | Flickr

  2. #2
    Join Date
    Mar 2006
    Posts
    11,203

    Default Re: Conditionally hiding an attribute prompt

    Maybe something like
    Code:
    <mvt:item name="toolkit" param="vlength|prompt_length|l.all_settings:item:option:opt_prompt" />
    <mvt:if expr="g.prompt_length GT 25">
    show code
    <mvt:else>
    show prompt
    </mvt:if>
    Last edited by wcw; 12-04-12 at 09:27 AM.

Posting Rules

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