All things Shopify and commerce
The store I am building has a wide variety of products with the product pages being heavy on product information (populated via metafields); however, the metafields required for some products don't apply to the rest of the products in my store. For example:
Is there any way to specify which metafields appear on certain product pages in the admin? Or do all metafields need to appear for every single product on the site?
I hope this makes sense. Thanks!
Solved! Go to the solution
This is an accepted solution.
I see what you're getting at! In Shopify's admin interface, the default behavior is to show all metafields for every product, which can be overwhelming if you have many metafields defined. However, as of now, Shopify does not provide a built-in way to conditionally hide metafields in the admin product page based on product type.
{% if product.metafields.custom.benefits %}
<div class="product-benefits">
<h3>Benefits</h3>
<p>{{ product.metafields.custom.benefits }}</p>
</div>
{% endif %}
{% if product.metafields.custom.features %}
<div class="product-features">
<h3>Features</h3>
<p>{{ product.metafields.custom.features }}</p>
</div>
{% endif %}
I know that I can customize what is displayed on the front end of the site. I am talking about the product ADMIN.
I want to avoid showing every single metafield (potentially 20+ in my store) when only a few apply to each product type.
This is an accepted solution.
I see what you're getting at! In Shopify's admin interface, the default behavior is to show all metafields for every product, which can be overwhelming if you have many metafields defined. However, as of now, Shopify does not provide a built-in way to conditionally hide metafields in the admin product page based on product type.
I figured as much. Thanks for the confirmation!
You're welcome!
Hi @MadeByFrom 👋 Currently no such feature for conditional metafield definition pinning.
Either a metafield definition is pinned and shows for all products, or unpinned and only show in the metafields list clicked through from the admin for the resources(products,collections,etc).
Make sure to file a feature request, https://help.shopify.com/en/support/support-type
Some workarounds are:
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025