---
title: "How to Show Custom Data on Product Page using Metafield in Shopify"
url: "https://magecomp.com/blog/show-custom-data-on-product-page-using-metafield-shopify/"
date: "2023-06-06T16:14:58+00:00"
modified: "2025-02-03T11:51:33+00:00"
author:
  name: "Bharat Desai"
  url: "https://magecomp.com"
categories:
  - "Shopify Tutorials"
word_count: 304
reading_time: "2 min read"
summary: "Hello Shopify Friends,"
description: "Metafields help to customize the functionality and appearance of the store. Learn How To Show Custom Data on Product Page using Metafield in Shopify."
keywords: "Shopify Tutorials"
language: "en"
schema_type: "Article"
related_posts:
  - title: "How to Report Tax on Shopify?"
    url: "https://magecomp.com/blog/report-tax-shopify/"
  - title: "How to Add an Internal Note to an Order on Shopify?"
    url: "https://magecomp.com/blog/add-internal-note-to-order-on-shopify/"
  - title: "How to Cancel an Order Fulfillment in Shopify?"
    url: "https://magecomp.com/blog/cancel-order-fulfillment-shopify/"
---

# How to Show Custom Data on Product Page using Metafield in Shopify

_Published: June 6, 2023_  
_Author: Bharat Desai_  

![](https://magecomp.com/blog/wp-content/uploads/2023/06/How-to-Show-Custom-Data-on-Product-Page-using-Metafield-in-Shopify-1024x512.webp)

**Hello Shopify Friends,**

In this Shopify blog, we will learn How to Show Custom Data on Product Page using Metafield in Shopify.
Metafields in Shopify allow you to add custom fields to your products, allowing you to store and display additional information beyond the default product attributes in Shopify. Metafields allow you to display specialized information differently within your Shopify online store.
[![Shopify Mobile App Builder](https://magecomp.com/blog/wp-content/uploads/2024/12/Shopify-Mobile-App-Builder-1.webp)](https://apps.shopify.com/mobile-app-builder-by-magecomp)

Let us learn how you can show custom data to a product page using Metafield in Shopify.
## Steps to Show Custom Data on Product Page using Metafield in Shopify:
**Step 1:** Go to your **Shopify admin,** and in Shopify admin, click on **Settings**.
[![Settings](https://magecomp.com/blog/wp-content/uploads/2023/06/Settings.png)](https://magecomp.com/blog/wp-content/uploads/2023/06/Settings.png)

**Step 2:** After that, click on **Custom data** and go to **Products** metafield.
[![Custom Data - Products](https://magecomp.com/blog/wp-content/uploads/2023/06/Custom-Data-Products.png)](https://magecomp.com/blog/wp-content/uploads/2023/06/Custom-Data-Products.png)

**Step 3:** Now click on **Add definition**.
[![Add Definition](https://magecomp.com/blog/wp-content/uploads/2023/06/Add-Definition.png)](https://magecomp.com/blog/wp-content/uploads/2023/06/Add-Definition.png)

**Step 4:** Fill up the **name of metafield** and select the **type** you want to add. Also, add a description if you want.
[![Metafield details](https://magecomp.com/blog/wp-content/uploads/2023/06/Metafield-details.png)](https://magecomp.com/blog/wp-content/uploads/2023/06/Metafield-details.png)

**Step 5:** After selecting the type of metafield, click on **Storefronts** to show that data in the online store, then **Save** it.
[![Storefronts](https://magecomp.com/blog/wp-content/uploads/2023/06/Storefronts.png)](https://magecomp.com/blog/wp-content/uploads/2023/06/Storefronts.png)

[![Hire Shopify Developers](https://magecomp.com/blog/wp-content/uploads/2024/12/Hire-Shopify-Developers-png.webp)](https://magecomp.com/services/expert-shopify-developers/)

**Step 6:** Open any product on your admin, fill up the **Metafields** option, and **Save** it.
[![Metafields](https://magecomp.com/blog/wp-content/uploads/2023/06/Metafields.png)](https://magecomp.com/blog/wp-content/uploads/2023/06/Metafields.png)

This is your namespace and key to show data on the product page.
[![Namespace and Key](https://magecomp.com/blog/wp-content/uploads/2023/06/Namespace-and-Key.png)](https://magecomp.com/blog/wp-content/uploads/2023/06/Namespace-and-Key.png)

**Step 7:** Click on the **Online store**, click **Edit code,** and search your main product page to add code.
[![Online Store - Edit Code](https://magecomp.com/blog/wp-content/uploads/2023/06/Online-Store-Edit-Code.png)](https://magecomp.com/blog/wp-content/uploads/2023/06/Online-Store-Edit-Code.png)

**Step 8:** Add the below code in your product page
```
{% if product.metafields.custom.custom_text.value  %}
     <p> {{ product.metafields.custom.custom_text.value }} </p>
{% endif %}
```

**Step 9:** Now your output looks like the below screenshot
[![Frontend custom data](https://magecomp.com/blog/wp-content/uploads/2023/06/Frontend-custom-data.png)](https://magecomp.com/blog/wp-content/uploads/2023/06/Frontend-custom-data.png)

## Conclusion:
By following these steps, you can create and utilize metafields to store and display custom data for your products in Shopify.
Related Article – [**How To Add Products To Shopify?**](https://magecomp.com/blog/add-products-to-shopify/)

[![Shopify SEO](https://magecomp.com/blog/wp-content/uploads/2024/12/Shopify-SEO-png.webp)](https://magecomp.com/services/shopify-seo/)

Share this tutorial to display custom data on the product page using Metafield in Shopify. Stay updated with us for more articles.
**Happy Reading!**


---

_View the original post at: [https://magecomp.com/blog/show-custom-data-on-product-page-using-metafield-shopify/](https://magecomp.com/blog/show-custom-data-on-product-page-using-metafield-shopify/)_  
_Served as markdown by [Third Audience](https://github.com/third-audience) v3.5.3_  
_Generated: 2026-10-28 20:50:13 UTC_  
