Custom Data in Product Table Documentation
Summary
Using metafields, you can display custom data within your product table. This allows for enhanced product comparisons and detailed information display.
Setting Up Your Metafields
Displaying Product and Variant Metafields
Within your Theme Editor, navigate to Theme Settings > Product Cards.
Scroll down to Table Details.
Enter the designated metafield you’d like to display within your table.
Displaying Custom Data Using Metafields
Using the Metafield Block
Navigate to your Shopify Admin and select Settings > Custom Data.
Within the Metafield Definitions, click Products and select Add Definition.
For this example, use Weight. Ensure the Namespace and Key are labeled accordingly (e.g.,
custom.weight
). Set the type to Multi-line Text.Within the Metaobject Definitions, click Add Definition. Set a name according to your metafield definition. For Type, select Multi-line Text and choose a name (e.g.,
weight.custom
).Navigate back to a product page within your Shopify Admin, scroll to the bottom, and set the custom data within the Product Metafields.
To display your custom data, go to the Theme Editor, select the Product Comparison section, click Add Block, and select Metafield.
Creating Your Metafield Data
Navigate to Custom Data.
Add a Metafield Definition.
Add a Metaobject Definition.
Add text to the Product Metafields within your Shopify Admin.