Product page: Hide a collapsable row with blank metafield

Hi,

We are using Minion theme and have added collapsable rows to the product page, and the rows are populated with metafields.

All these metafields are pulling through fine when we add copy in the backend for a product.

But the collapsable row we have created to put information about product size keeps populating with a number, even if there isn’t any copy in the back end.

See this product example: There is nothing in the back end metafield:

But on the front end the collapsable row is showing a number:

Hi @Slice_agency

Can you kindly share your store link (with the password, if any) with us? We will check it and suggest you a solution.

Hi – Thank you :slightly_smiling_face:

Here is a link to a product page where we are having this issue: https://petbayaus.myshopify.com/products/air-dried-beef-strips

And the password: otseaz

Hi @Slice_agency

We checked and saw that the metafield on your product page is not the metafield in the backend. The metafield in the currently displayed product page is installed at Themes > Edit Code > Product Page:

To display the backend metafield as you want, please follow these instructions: https://www.identixweb.com/an-ultimate-guide-to-shopify-variant-metafields-for-your-store/

I hope that this is useful for you.

Hi,

I’m not sure what you mean :slightly_smiling_face:

This first screenshot shows that we have a collapsable row with ‘size’ (a metadata field) as the content.

And then you can see the Size metadata field that we have in the back end here:

When there is something in that metafield on a product page it pulls through, but when there is nothing, like the screenshots in the first message, a number appears – that is the problem we are having.

Hi @Slice_agency

Maybe your store hasn’t reloaded yet. So after changing the metafield on this page, please reload the page to make sure the metafield is saved.

Then view the storefront via this button to make sure the storefront was reloaded correctly.

I hope that this is useful for you.

Hi, the site has reloaded, but we are still having the issue.

There is nothing in the metafield:

But the number 3 is showing on the front end:

I followed this video guide and followed steps to hide the metafileds from my product page which were blank:

Video: https://youtu.be/_9rtNdM6n1A