You can use metafields to add custom fields to objects such as products, customers, and orders. Metafields are useful for storing specialized information, such as part numbers, customer titles, or blog post summaries. They can be used by apps and channels to track data for internal use.
Metafields have three parts:
- Namespace - A category or container that differentiates your metadata from other metafields.
- Key - The name of the metafield.
- Value - The content of the metafield. In most cases, the value is what will be displayed on the storefront or used by the app.
Step 1: We need an application to add metafield in product or collection. Recommended metafield app that is free Click here to install
Step 2: Open theme editor and goto product template
Step 3: Find {{ product.title }} and add this line below {{ product.title }}
Step 3: Find {{ product.title }} and add this line below {{ product.title }}
{{product.metafields.myproduct.subtitle}}
Step 4 : Open installed app and select product to add sub title.
Step 5: Click on product where you want to add metafield
Step 6 : Click on Create Metafield button
Step 7 : Add myproduct in namespace field and subtitle in Key field like this
Step 8 : Click on save.
Try Shopify for free, and explore all the tools and services you need to start, run, and grow your business.
How to add subtitle of product using metafield in shopify store?
Reviewed by Navjeet Singh
on
July 01, 2019
Rating:
You have got the hang of it. Good job!
ReplyDeleteThis need some code modification on collection page.
ReplyDelete