using if statement for custom field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • c3idesign
    Mivite


    • Apr 2006
    • 198

    #1

    using if statement for custom field

    I'm trying to see if a value exists in a custom field - where the custom field is "bname" - what am I missing?


    <mvt:if expr="NOT ISNULL &mvte:product:customfield_values:customfields:bnam e;">

    <mvt:else>

    </mvt:if>
  • kat_oakos
    Mini Mivite

    • Jun 2020
    • 41

    #2
    You need to be using l.settings:product:customfield_values:customfields :bname instead of the &mvte format, if I'm not mistaken.

    Comment

    • PCINET - Andreas
      Developer Partner




      • Mar 2006
      • 2439

      #3
      Yes, "&mvt:" as prefix is used to display on a website and "l.settings:" to evaluate like in a conditional test.
      Andreas Toman
      PCINET, LLC

      Miva Merchant Design, Development, Integration & Support
      We built over 200 Miva Merchant stores!
      Miva shopping cart design & integration service and see our Portfolio!


      e-mail: [email protected]
      web: www.pcinet.com
      LinkedIn: Andreas Toman
      phone: (786) 250-2056 (Miami, FL)

      Comment

      • c3idesign
        Mivite


        • Apr 2006
        • 198

        #4
        Thank you! That was it.

        Comment

        Working...
        X