LogoLogo
Back to PageFly.ioVideo Tutorials
English 🇺🇸
English 🇺🇸
  • PageFly Help Center
  • Getting Started
    • Overview
    • Quick start
      • How to Install PageFly
      • How To Use PageFly | Get started in 5 mins
      • How to Create a New Page from PageFly Templates
      • How can I access the PageFly LiveChat?
      • How PageFly work with your Shopify theme?
    • Pricing and billing
      • PageFly pricing plan
      • How PageFly billing work?
      • What happens if I uninstall PageFly?
      • PageFly refund policy
  • Pages & Sections Creation
    • Overview
    • General
      • Setting up PageFly Pages
      • What type of pages that PageFly support?
      • How to use PageFly pages and sections?
      • How to export and import PageFly pages and sections
    • Pages
      • How to create a Homepage with PageFly?
      • How to create a Product page with PageFly
      • How to create a Collection page with PageFly
      • How to create a Blog post page with PageFly
      • How to create a Password page with PageFly
      • How to create a FAQs page with PageFly?
      • How to create a Coming soon page with PageFly
      • How to create an About us page with PageFly
      • How to create a Contact Us page with PageFly
      • How to create a Landing Page with PageFly?
      • How to create A/B testing page with PageFly
    • Sections
      • How to use premade section and saved section to build page?
      • How to create a basic section with image and text
      • How to use parallax effect in a PageFly section?
      • How to create a full-width section in PageFly
      • How to make a sticky section without code in PageFly
  • Page Structure & Elements
    • Overview
    • Editor
      • User interface
        • How to work with PageFly editor?
        • How to work with PageFly on mobile?
        • Page Editor – Element Inspector
        • Page Editor - General Tab
        • Page Editor - Styling Tab
        • How to use Page outline to organize page layout?
        • How to make impressive mobile responsive page?
        • How to use autosave and version history ?
      • Extra Functions
        • How to manage custom option swatches for product variants?
        • How to use Global Styles to customize styles to use for all PageFly pages
        • How to use trash to manage deleted pages, sections, and media files?
        • How to Add Custom Font in PageFly
        • How to manage image and video in PageFly?
    • PageFly Elements
      • Universal Elements
      • Containers
        • Layout
        • Slideshow
        • Tabs
        • Accordion
        • Content List
      • Basic
        • Heading
        • Paragraph
        • Button
        • List
        • Icon
        • Divider
        • HTML/Liquid
      • Media
        • Image
        • Youtube video
        • Vimeo video
        • HTML video
        • Soundcloud
      • Social
        • Instagram feed
        • Facebook like & share
        • Facebook feed
        • Twitter feed
      • Advanced
        • QR code
        • Table
        • Countdown
        • Google map
        • Progress
        • Mailchimp form
    • Shopify elements
      • Custom Content
        • App blocks
      • Product
        • Product Variant Metafield
        • Product list
        • Product details
        • Product media
        • Product title
        • Product vendor
        • Product price
        • Product description
        • Product variant
        • Product quantity
        • Product Add to cart
        • Product view details
        • Product Metafield
        • Dynamic checkout button
      • Collection
        • Collection title
        • Collection image
        • Collection list
        • Collection view details
        • Collection details
        • Collection description
      • Form
        • Customer form
        • Customer form field
        • Customer form button
        • Contact form
        • Contact form field
        • Contact form button
        • Search form
      • Blog posts
        • Blog post list
        • Blog post details
        • Blog post image
        • Blog post title
        • Blog post content
        • Blog post meta
    • Optimization
      • How to use custom code editor to customize your page?
      • Page Analytics
      • How to speed up your Shopify store?
      • How to set up Facebook Pixel to understand the actions people take on website?
      • How to publish PageFly page to Shopify menu navigation?
      • How to use the Zakeke Product Customizer on PageFly pages?
      • How to use Langify to translate my page?
      • How to use Weglot to translate my pages?
      • How to use T Lab to translate PageFly’s page?
      • JSON Template with PageFly
      • How to Optimize Images with TinyIMG in the PageFly editor?
      • How to use Shoplift A/B Testing with PageFly?
      • How to use SEOAnt:AI SEO & Image Optimizer with PageFly?
      • Black Friday Sale Ideas
      • Optimize Pages for CRO with PageFly Elements
      • Optimize Sale On Valentines Day
      • How to set up Christmas Sale Page with PageFly | Best Guide in 2023
      • How to create a Flash sale section - Back to School
      • Optimize Your Store for Mother's Day: Create a Gift Guide with PageFly
    • Main Use Case
      • Align Elements on a Page
      • Direct to Links, Sections, Pop-ups
      • Edit Spacing, Margin and Padding
      • Flex Feature
      • Upload Files to Page
  • Integrations
    • Third-party Elements
      • How to activate integrated third party Shopify apps to use on your pages
      • What apps does PageFly integrate with?
      • Review & Rating
      • Upsell & Cross-sell
      • Badge & Seal
      • Appointment Booking
      • Delivery & Pickup
      • Subscriptions
      • Order Tracking
      • Upload Fields
      • Email Marketing
      • Product Information
      • Push Notifications
      • Referral & Affiliate Marketing
      • Image & Media
      • Loyalty & Rewards
      • Sustainability
      • Gifts
      • Internationalization
      • Advertising
      • Support
      • SMS Marketing
  • FAQ & Troubleshooting
    • Overview
    • FAQs
      • Issues with Shopify themes when using PageFly
      • How we comply with GDPR
      • The URL address of my page
      • PageFly Page editor - FAQs
      • Elements - FAQs
    • Troubleshooting
      • Live site issue
        • Cart Drawer does not Automatically Update
        • Responsive mobile horizontal scroll issue
        • YouTube, HTML Videos do not autoplay issue
        • Page not fully displayed in theme preview mode
        • Can't create locales file
        • Can't create theme.pagefly.liquid
        • How to hide Shopify's Default Product Details
        • PageFly Page List Won't Stop Loading
        • Remove the blank space on top of the page
        • Blog page not updated successfully
        • The page's style is broken
      • Error messages
        • PageFly Page List Won't Stop Loading
        • Page Size Limit
        • Limit elements on a page
        • Unable to import your data
        • Limit image size
        • Unknown error
  • Latest Update
    • PageFly is now compatible with Online Store 2.0
    • PageFly Referral Program
    • PageFly old pricing plan
  • PageFly Affiliate Program
    • Affiliate Success: Understanding what PageFly can do for Merchants
    • Affiliate Success: Dos & Don'ts - Everything to Know about Becoming a Successful PageFly Affiliate
    • Affiliate Success: Frequently Asked Questions
Powered by GitBook
LogoLogo

Product

  • Templates
  • Pricing
  • Happy Customer

Resource

  • Blog
  • Academy
  • Video Tutorials
  • Community
  • Feedback

Partners

  • Our Partners
  • Affiliate Program

Company

  • About Us
  • Careers
  • Privacy Policy
  • Terms of Service

Copyright © 2025 PageFly. All rights reserved.

On this page
  • About Product Variant Metafield Element
  • How To Create Variant Metafield With Shopify?
  • How To Configure Product Variant Metafield Element With PageFly?
  • How To Configure Variant Metafield Label And Value In PageFly
  • Common Issues
  • Frequently Asked Questions
  • Additional Resources

Was this helpful?

Edit on GitHub
  1. Page Structure & Elements
  2. Shopify elements
  3. Product

Product Variant Metafield

Last updated 9 hours ago

Was this helpful?

About Product Variant Metafield Element

If you're managing many products with diverse variants, each requiring specific information to be displayed, using the product variant metafield element will perfectly meet your needs. It’s a powerful solution for targeting customers effectively and optimizing your store's conversion rate. With just 3 steps you can display elements on your online store: creating a variant metafield with Shopify, configuring elements, and finally, publishing your page.

Note: To use this element, you must ensure that the product has at least a variant.

If you don’t have PageFly yet, you can install it for Free .

You can refer to our video tutorial

How To Create Variant Metafield With Shopify?

This is a 3-step tutorial that creates variant metafields: creating definitions, adding values to metafields, and displaying them on your page.

  1. Create A Variant Metafield Definition

  • Step 1: From Shopify Admin, go to Setting > Custom data > Variants.

  • Step 2: Click Add definition and fill in the fields including: Name, Namespace and key (optional), and Description (optional).

  • Step 3: Click Select type > Select the content type that best matches your metafield from the list > Set validation rules and additional configuration. There are two types of variant metafield values: One value and list of values.

    • One value: is just one piece of data, like a string of text, a number, or a date.

    • List of values: is a collection of single values. This could be a list of colors, for example.

  • Step 4: Click Save. You can organize variant metafield by pinning variant metafield definitions.

  1. Add Values To Variant Metafields

  • Step 1: From Shopify Admin, go to Products > Click a Product > Click a Variant you want to add more content.

  • Step 2: In Metafields, add the content you want to display following the content types.

  • Step 3: Click Save.

Repeat the steps above to add values to your metafield in other product variants.

Display Product Variant Metafield Element On Your PageFly Page

  • Step 1: From PageFly editor, click on Elements icon> go to Shopify tab > in Product category > Product variant metafield > Drag and drop element to the editor canvas.

  • Step 2: Select element > Go to General Tab > Content > Select Product source and Variant metafield definition. If you add the Variant metafield into a Product details element, the Product source will be set to auto.

  • Step 3: From Variant metafield definition > Click Select definition > Select a variant metafield definition in modal > Click Select.

How To Configure Product Variant Metafield Element With PageFly?

General Configuration

From PageFly editor > Click on the Product Variant Metafield element > General tab > Config Content parameter group of element:

Product source

  • Auto: If the Product variant metafield element is nested inside the Product details element.

  • Auto (by default) or Custom: If the Product variant metafield element is nested outside the Product details element and on the Product page.

  • Custom product: If the Product variant metafield element is not nested inside the Product details element and is on a non-product pag

Variant metafield definition This parameter specifies which part of your store a variant metafield applies to and what values the variant metafield can have.

Show label This is the name of the variant metafield shown by default.

Label position The position of the label can be on the left (by default) or above the values.

Note: Drag and drop Product variant metafield element into a product detail in the product list adds it to all products in the list. Elements will have the same definition but different values.

Styling Configuration

How To Configure Variant Metafield Label And Value In PageFly

Product variant metafield element includes two sub-elements: Variant metafield label and Variant metafield value.

Variant Metafield Label Configuration

This sub-element configures the name of the variant metafield. If not specified, it defaults to the name of the variant metafield definition.

General Configuration

From PageFly editor > click on the Variant metafield label element> Head over to General tab > Click on the input field and type the label of variant metafield.

Styling Configuration

Variant Metafield Value General Configuration

This sub-element configures the values of the variant metafield. Depending on your selected content type of variant metafield definition, a relevant parameter group will be available with variant metafield value.

General Configuration

PageFly currently supports 15 content types:

Date and time You can use this type to add launch event dates or product release dates.

Date This type can be used to add product expiration dates or order delivery dates.

Dimension The Dimension type can be used to add box heights or product lengths, such as the length of a scarf.

Volume You can use the Volume type to add the volume capacity of a water bottle.

Weight An example for using the Weight type is to add the weight of a product or ingredient.

Decimal This type can be used to add a carat weight for jewelry.

Integer The Integer type can be used to add a page count for books.

Multi-line text The Multi-line text type can be used to add shipping notes or return policies.

Single line text The Single line text can be used to add short notes and announcements.

Rich text The Rich text type can be used to add long-form stories about your brand or product, including styling.

True or false This type can be used to add whether an option is available, such as whether an item can be engraved.

Color Color type can be changed to match the color of each product variant.

Rating The Rating type can be used to add an audience score or a star rating for a product.

URL The URL type can be used to add a link to book reviews or product videos that are hosted on a specific website.

Money The Money type can be used to track product cost details, such as distributor cost or ship to warehouse cost.

Note: The list of values includes all parameters of one value, along with the following additional parameters:

List date and time:

Marker type (exclude Color type)

Marker position (exclude Color type)

Text indent (exclude Color type)

Adjust:

- Show date

- Date format

- Show time

- Time format

- Show time zone

Styling Configuration

Common Issues

The Product Variant Metafields Element Not Display

This happens due to a few reasons:

  • The product being displayed has no variants

  • You are not select Variant metafield definition to show

  • The product source of the element is "Custom product," but you haven't selected a product to customize.

The Product Variant Metafields Element Display The Message "No Values"

Because your variant metafield definition has no value. To resolve this message go to Shopify Admin > Products > Variants > Metafield > Define values.

Deleting Variant Metafield Definition

  • If you select “Delete definition field only", the element is still displayed normally in live view, but there is no variant metafield label if you don’t customize it.

  • If you select “Delete field and its saved values", content will no longer be visible anywhere.

Frequently Asked Questions

1. What is the difference between Product Metafield and Product Variant Metafield?

  • Product variant metafield can be used to store details related to a particular variant, like if we have Red and Green variants we can have different information for each variant.

  • Product metafield can be used to store details related to the product and it will be the same for all the variants of that product.

Additional Resources

Or check out from Shopify for more information about the metafields.

You can also get further information about ATTRIBUTES, VISIBILITY, ANIMATION parameters .

The Styling configuration for Product Variant Metafield element will follow the PageFly element styling .

The Styling configuration for Variant Metafield Label element will follow the PageFly element styling .

There are no special settings for this type.

There are no special settings for this type.

There are no special settings for this type.

There are no special settings for this type.

There are no special settings for this type.

- Link to URL: Makes the link clickable - Text link: Enter the anchor text you want to display for the link

The Styling configuration for Variant Metafield Value element will follow the PageFly element styling .

this article
here
here
here
here
How to add Metafield to Shopify Products with PageFly
How to Use Shopify Product Variant with PageFly
here