Miva Merchant Community Forums

  1. #1
    Join Date
    Apr 2012
    Posts
    116

    Default Custom Product Field issue

    Hello,

    I am having trouble getting a text field to populate using a custom product field value.

    I set up the custom product field, "Headline" and added the data for the product.

    We are using Sebenza Product template manager if that helps.

    I can't make the custom product field active and having trouble figuring out the right code. What I have below is not working but thought it would be easier to show where I am going with this.

    I need this to work IF the category code prefix EQ "PST_" then display the text "Your Headline:" with the text field "Hdline" populated with a value unique to the product. I just assumed putting it in the same line would be ok. I broke it out into it's own line without any luck.

    <mvt:if expr="('PST_' CIN l.settings:category:code) AND (NOT ISNULL l.settings:product:customfield_values:customfields :Headline)">
    Your Headline:
    <INPUT TYPE="text" NAME="Hdline" VALUE="&mvt:product:customfield_values:customfield s:Headline;" Size="40"><br><br>
    </mvt:if>


    Thanks,
    Mike

  2. #2
    Join Date
    Jul 2008
    Location
    NE Ohio - Go Cavs!
    Posts
    900

    Default Re: Custom Product Field issue

    First, make sure you've activated the custom field:

    Pages > PROD > Product Display Layout

    Then, try this:

    Code:
    <mvt:if expr="'PST_' CIN l.settings:category:code">
    <mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields:Headline)">
    Your Headline:
    &mvt:product:customfield_values:customfields:Headline;
    </mvt:if>
    </mvt:if>

  3. #3
    Join Date
    Apr 2012
    Posts
    116

    Default Re: Custom Product Field issue

    Thank you, I completely missed activating them on that screen. I never knew where to look to do it.

    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
  •