Metaobjects/ Site Design

Topic summary

Goal: Hide the product page section that showcases featured ingredients for products that don’t need it.

  • The section is built with Shopify metafields and metaobjects so ingredients match each product. Some products have no featured ingredients, yet the section still appears.
  • The developer confirms it’s feasible to show the section only when data exists, using conditional logic tied to the metafield.

Current state and evidence:

  • OP shows a product with an empty metafield where the section still renders. Multiple screenshots are provided and are central to understanding the issue.
  • OP confirms use of metafields with metaobjects; no data is set for the example product.

Next steps and open items:

  • Developer requests theme code review to implement a condition that hides the section when the metafield/metaobject is empty or unassigned.
  • Developer asks for store access and proposes continuing via WhatsApp. No code snippet or final fix shared yet.

Notes:

  • Metafields: custom data fields per product. Metaobjects: reusable structured content linked via metafields.
  • Status: Unresolved; awaiting theme code updates to add conditional rendering.
Summarized with AI on December 13. AI used: gpt-5.

Hello,

I have added the following section to highlight key product ingredients. I built in metaobjects, so the ingredients match the products. However, I also have some products that do not need this feature. Is there a way to get rid of this section for specific products?

1 Like

Hello @ssarasmit
You need different featured ingredients data for each product, right?

1 Like

I have some products that I don’t need the featured ingredient list for. I
have it figured out to show different featured ingredients accordingly for
the products that need it, but I have certain products where I don’t want
this section to show for. Is that possible?

1 Like

Hello @ssarasmit

Yes, this is possible. The section will only display for products where we add featured ingredient data, and it won’t display for those where we don’t add it. This can be done using metafields.

1 Like

Here is an example of a product I don’t have it added for because I don’t need the featured ingredients on this one. See how the section still appears? How do I get this section to not show for these types of products?

1 Like

Hello @ssarasmit

Did you do this using metafields? And can you send me a screenshot after clicking on the column?

1 Like

Yes, using metafields with metaobjects. For this product, I don’t have anything listed in the metafield.

1 Like

Hello @ssarasmit
Okay, for this, I will need to check the code in the theme to see how it has been implemented. Based on that, I will need to use a condition.

1 Like

Hello @ssarasmit
Please send me store access, and I will check and provide an update. Also, message me on WhatsApp so we can discuss the details further. and liking and accepting the all solution.

1 Like