Hide the product short description (metafields) for those not logged in

Topic summary

A Shopify user wants to hide product short descriptions (stored in metafields) containing bulk pricing information from visitors, making them visible only to logged-in customers.

Solution Provided:
Multiple respondents suggested wrapping the metafield code with a Liquid conditional statement:

{% if customer %}
{{ resource.metafields.namespace.key }}
{% endif %}

Implementation Steps:

  • Access Shopify admin → Sales channels → Online Store
  • Click theme’s three-dot menu → Edit code
  • Locate the relevant template file (typically product.liquid, varies by theme)
  • Add the conditional code around the metafield reference
  • Replace namespace.key with actual metafield definition (e.g., custom.rrp)

Alternative: One respondent recommended the Easify Product Options app, which includes built-in customer restriction features for content visibility.

Status: Original poster confirmed the solution works. A follow-up question from another user asks how to implement this specifically in the Dawn theme for a custom.rrp metafield.

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

Hi,

I am new here and don’t know if someone posted the same question but upon searching I do not read any answers that suit my question.

I put a small product description that says the prices whenever they buy in bulk, I want to keep this product description for those members/customers but I’d like to hide it if they are not logged in or not a customer yet with access. Please see my 2nd screenshot in the red box description that I want to keep but should be hidden for those customers who are logged out or visitors/non-customers. 1st screenshot is the backend metafield where I put the short description.

Any answers will be very much appreciated. I am new to Shopify also so I don’t know how to navigate it as well. I am still learning to use Shopify, so I would appreciate your step-by-step answer. Thank you all so much :slightly_smiling_face:

Hi @Ann07

If you want to hide this description. You have to do some coding in your theme. Here is a guide on how to edit your code and the code to use.

  1. Log in to your store and click “Sales channels” then navigate to “Online Store”

  2. Click on the theme 3 dot button. then click “Edit code”.

Then a code editor will open. here is a file where to put the code below -

{% if customer %}
{{ resource.metafields.namespace.key }}
{% else %}

{% endif %}

This is an example of code. But actually do that, it needs to know the metafield full definition. and find out the file and the exact position of the file. The file can be product.liquid. but it depends on the theme structure.

If you do not do it on your own. I will be happy to help you.

Thanks.

Abdullah.

Hello @Ann07 ,

Add the below condition to your Metafield:

{% if customer.has_account %}
Metafield Data
{% endif %}

Hi @Ann07 ,

Can you provide URL of your store? I will review the and let you know a quick solution. If not we will have to make custom changes on the theme files to get this done.

1 Like

Hi @Ann07 ,

You can consider using the Easify Product Options app for your product descriptions. With the Paragraph option type, you can create detailed descriptions. The Customer Restriction feature allows you to limit access tologged-in customers :hugs: .

Below is a demo for your case:

1 Like

Thank you for this. All works. Thanks!

Thank you so much. This helps :slightly_smiling_face:

Hi

I am trying to achieve the same thing in Dawn theme. I have added a metafield for products and I don’t want that to be displayed unless a customer is logged in. How do I achieve that?

My metafield namespace and key is custom.rrp