I see that Shopify’s metafields are category specific. How can I add product metafields to specific categories?
Topic summary
Issue: Limit product metafields (custom attributes) in Shopify 2.0 so they appear only for relevant product categories (Shopify “Category”/standard product type), e.g., show “Processor” for laptops/desktops but not monitors or bags.
Context and examples:
- Current behavior: Product metafields appear on all products during creation/editing, regardless of category.
- Desired behavior: When assigning a product to a category (e.g., Laptop), only that category’s relevant fields should be visible/fillable.
- Examples cited: “Processor” for laptops/desktops; “Screen Size” for laptops/monitors should not show for bags.
Approaches discussed:
- Custom code: Advised as difficult because it would require checking all metafields per product and conditionally displaying them; not practical at scale.
- Apps: Recommended to manage conditional metafields visibility.
- Category metafields: OP notes Shopify shows category-specific metafields and asks how to add product metafields to specific categories or whether to rely on category metafields instead.
Status and open questions:
- No confirmed built-in method provided to restrict product metafields by category in the admin UI.
- Suggestion: use an app; clarity on configuring category-specific fields remains unresolved.
- An image (admin screenshot) is referenced to illustrate category-specific metafields.
