This article shows how to create a Miva Merchant conditional that will check to see if there is any data in specific custom product field. If there is data in the custom product field then the product title will display the data in that custom field. If there is not input in the custom product field then the default product name will be used for the product title.
- Create a custom product field with the code ‘title’ and the name ‘Title’. Instructions
- Open the ‘Product Display’ page
- Replace this code near the beginning of the template
- Click Update
- Click the ‘Product Display Layout’ tab

Custom Field Title Miva Merchant
- Check the box next to ‘Title’ and click ‘Update’.
- Edit a product and click the ‘Custom Fields’
- Type whatever you would like to show up for the title for that product

Custom Field Title Miva Merchant
- Click ‘Update’
- Test that product
<title>&mvt:store:name;: &mvt:product:name;</title>
with this code:
<mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields:title">
<title>&mvt:product:customfield_values:customfields:title;</title>
<mvt:else>
<title>&mvt:product:name;</title>
</mvt:if>

Custom Field Title Miva Merchant