I'm a newbie and non-coder struggling with metafields

Topic summary

A store owner is trying to prevent size filters from appearing across unrelated product collections (e.g., jewelry sizes showing in rug collections). They attempted to create metafields and integrate them with Shopify’s Search & Discovery app but encountered issues.

The Problem:

  • Created metafields for “Rug Sizes” and “Table Runner Sizes”
  • These metafields don’t appear under “Select Source” in Search & Discovery
  • Screenshot shows the metafields were created at the category level, not product level

Key Advice Given:

  • Multiple responders identified the root cause: metafields were created as category metafields instead of product metafields
  • Correct approach: Create separate product metafields in Settings → Custom Data → Products for each product type
  • Map these metafields to relevant filters in Search & Discovery
  • Only populate metafield values for applicable products
  • Re-index store filters after making changes

Current Status:
The issue remains unresolved. Several developers offered hands-on assistance requiring store URL and collaborator access, but the original poster declined due to budget constraints ($200 mentioned).

Summarized with AI on October 23. AI used: claude-sonnet-4-5-20250929.

My store sells pillows along with various non-related items such as jewelry. I wish to display sizes, but I cannot figure out how to prevent sizes from the Jewelry collection from populating in the Rug collection. I assume I need to create metafields and add them to Search & Discovery, but nothing I’ve tried has worked. Any help offered is greatly appreciated. Thanks in advance!

1 Like

Hi Denise,

You’re absolutely right metafields are the way to go here! :blush:

To keep the Size options from showing in unrelated collections like Jewelry, you can do this:

  1. Create separate metafields for each product type (e.g., size_pillows, size_rugs, etc.) in your Settings → Custom Data → Products section.

  2. Then, in the Search & Discovery app, map those metafields only to the relevant product types or filters.

  3. Make sure each collection’s products have values only for their specific metafield. For example, jewelry items shouldn’t have any size metafield values filled in.

  4. Finally, re-index your store filters (sometimes it takes a few minutes for changes to appear).

This approach keeps your filters clean you’ll only see “Sizes” under categories where they actually apply.

1 Like

If you want to get a solution quickly, it is recommended here to attach a page URL and screenshot as an example, so that we can know how to proceed and check for you. A kind reminder here~

Please accept my apologies. My intention was not to break forum policy. I would appreciate help in solving my metafield problem, but $200 is not in my budget. Here’s where I’m at:

I created two Product Metafields, Rug Sizes and Table Runner Sizes, inputed the sizes, and Search & Discovery does not see them under “Select Source.” I have made sure that the filter is enabled.

1 Like

You need to create product metafields for this, not categorie metafields.

Hey @DeniseB,

The requested changes requires to do the custom code in your theme file.

Could you please share your store url along with the collab code so that I can take a look and do the requested changes.

Thanks

I have got what you said here. From what you edited in the screenshot, they are not product metafields, but category metafield, actually. This may be the reason you fail to see them under “Select Source”.

Hi @DeniseB

Ok dear, please share your store URL and collaborator code with me so I can check and provide you with the proper solution.

Best regards,
Devcoder :laptop: