I have an if/else statement to display a product name that has more characters than Miva's &mvt:product:name; allows, and if I have that custom field filled in on the product custom field tab. If that field is not filled in, then display the regular product name. In dev, the long product name displayed in the browser. After "live" it will not display.
Here is the custom field:
<mvt:if expr="l.settings:product:customfield_values:custom fields:highlightTag AND l.settings:product:customfield_values:customfields :longname">
<h5>&mvt:product:customfield_values:customfields:l ongname; <span class="ico"><img src="graphics/00000001/images/&mvt:product:customfield_values:customfields:highl ightTag;.png" alt="&mvt:product:customfield_values:customfields: highlightTag;" /></span></h5>
<mvt:elseif expr="l.settings:product:customfield_values:custom fields:highlightTag">
<h5 class="title">&mvt:product:name; <span class="ico"><img src="graphics/00000001/images/&mvt:product:customfield_values:customfields:highl ightTag;.png" alt="&mvt:product:customfield_values:customfields: highlightTag;" /></span></h5>
<mvt:else>
<h5 class="title">&mvt:product:name;</h5>
</mvt:if>
Here is the custom field:
<mvt:if expr="l.settings:product:customfield_values:custom fields:highlightTag AND l.settings:product:customfield_values:customfields :longname">
<h5>&mvt:product:customfield_values:customfields:l ongname; <span class="ico"><img src="graphics/00000001/images/&mvt:product:customfield_values:customfields:highl ightTag;.png" alt="&mvt:product:customfield_values:customfields: highlightTag;" /></span></h5>
<mvt:elseif expr="l.settings:product:customfield_values:custom fields:highlightTag">
<h5 class="title">&mvt:product:name; <span class="ico"><img src="graphics/00000001/images/&mvt:product:customfield_values:customfields:highl ightTag;.png" alt="&mvt:product:customfield_values:customfields: highlightTag;" /></span></h5>
<mvt:else>
<h5 class="title">&mvt:product:name;</h5>
</mvt:if>
Comment