Shopify themes, liquid, logos, and UX
Is it possible to auto populate the product title field taking values from multiple other shopify fields and metafields?
e.g. We want the product title to follow a set format made up of " VENDOR | META1/META2/META3 | DESCRIPTION "
This so that anywhere within shopify or the online store the full product title as above would be displayed.
Thanks in advance for any advice or suggestions.
Hello @MyHealthOasis
Yes, it's possible to display other fields as a product title. Please follow the steps below:
Step 1: Go to admin and open Edit code
Step 2: Open the main-product.liquid section file to change on the product details page
Step 3: Find {{ product.title | escape }} and replace with {{ product.vendor | escape }} | {{ product.metafields.custom.META1 }}/{{ product.metafields.custom.META2 }}/{{ product.metafields.custom.META3 }} | {{ product.description }}
Note: Make sure to replace the meta fields namespace and key with your meta field namespace and key
Step 4: Save the file and check the result on the product details page
To change the product title over the product card, please follow the below steps:
Step 1: Open card-product.liquid (File may be different based on theme) snippets file
Step 2: Find {{ card_product.title | escape }} and replace it with {{ card_product.vendor | escape }} | {{ card_product.metafields.custom.META1 }}/{{ card_product.metafields.custom.META2 }}/{{ card_product.metafields.custom.META3 }} | {{ card_product.description }}
Note: Make sure to replace meta fields namespace and key with your meta field namespace and key
Step 3: Save the file and check the result over various pages where product cards display
Please hit Like and Mark it as a Solution if you find our reply helpful.
Thank You,
WebDesk Solution Support Team
Get a Free Quote | Email | Shopify Partner | Shopify Development Agency | Call Us 877.536.3789
Location: 150 King St. W. Toronto, ON M5H 1J9
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024