Hi guys
I’ve created a product metafield custom.alt_product_title which will house an Alternative Product Title.
I’d like to use some custom code on my Product Page and Collection Page templates so that if this metafield is not empty, it populates that, or it populates the standard product title field.
For example here’s a section of the theme code where it renders the Product Title:
{{- product.title | escape -}}
How would I write the code so that if the metafield custom.alt_product_title is not empty, it populates that instead?
Thanks!
Jacqui