Jason customisation

Topic summary

A Shopify store owner wants to restrict page access based on customer tags (e.g., “Verified” or “VIP”). The desired functionality would check if logged-in users have specific tags and either grant access or display a message prompting them to sign in or contact support.

Current Challenge:

  • Uncertain how to implement conditional tag checking using Liquid code
  • Needs solution for specific pages/sections only
  • Working with a JSON-formatted page template

Proposed Solution:
A developer suggested using Shopify metaobjects to achieve this functionality. The approach involves:

  • Creating metaobjects in Shopify admin
  • Setting custom text in the customer page settings
  • Using Liquid code to check metaobject values conditionally

The developer offered to provide complete code implementation if needed. The discussion remains open, awaiting the original poster’s response on whether they need the full code example.

Summarized with AI on November 3. AI used: claude-sonnet-4-5-20250929.

Hello, I’m looking for help implementing a functionality in my Shopify store. Here’s what I need:

  1. Goal: I want the store to check if a user has a specific tag (e.g., “Verified” or “VIP”).

  2. Behavior:

    • If the tag exists, allow the user to proceed and access the desired content or page.
    • If the tag does not exist, display a message that says, “You cannot open this page. Please sign in or contact us for access.”
  3. What I’ve Tried: I’ve looked into Liquid code and theme customization options, but I’m not sure how to conditionally check tags for logged-in customers and display the appropriate message.

  4. Additional Details:

    • I’d like this feature to apply only to certain pages or sections of my store.
    • The message should be user-friendly and provide options for users to either sign in or contact us via a provided link.

I’d appreciate any guidance on how to implement this or examples of similar setups. If code snippets are needed for context, let me know, and I’ll share what I’ve been working with.

Thank you in advance for your help!

the page is in jason format and the code is the following /*


  • IMPORTANT: The contents of this file are auto-generated.
  • This file may be updated by the Shopify admin theme editor
  • or related systems. Please exercise caution as any changes
  • made to this file may be overwritten.

*/
{
“sections”: {
“main”: {
“type”: “main-page”,
“disabled”: true,
“settings”: {
“padding_top”: 28,
“padding_bottom”: 28
}
},
“rich_text_QNnQC4”: {
“type”: “rich-text”,
“blocks”: {
“heading_MaAPEB”: {
“type”: “heading”,
“settings”: {
“heading”: “Welcome to Year long Discounts”,
“heading_size”: “h1”
}
},
“text_y4RjKC”: {
“type”: “text”,
“settings”: {
“text”: “

Exclusively for Companies and contractors that signed up for out trade account programe


}
}
},
“block_order”: [
“heading_MaAPEB”,
“text_y4RjKC”
],
“settings”: {
“desktop_content_position”: “center”,
“content_alignment”: “center”,
“color_scheme”: “”,
“full_width”: true,
“padding_top”: 40,
“padding_bottom”: 52
}
},
“featured_collection_TPUz87”: {
“type”: “featured-collection”,
“settings”: {
“title”: “{{ section.settings.collection.title }}”,
“heading_size”: “h1”,
“description”: “”,
“show_description”: false,
“description_style”: “body”,
“collection”: “hi-wall-split-airconditioners-trade”,
“products_to_show”: 6,
“columns_desktop”: 2,
“full_width”: false,
“show_view_all”: true,
“view_all_style”: “solid”,
“enable_desktop_slider”: true,
“color_scheme”: “”,
“image_ratio”: “adapt”,
“image_shape”: “default”,
“show_secondary_image”: false,
“show_vendor”: false,
“show_rating”: false,
“quick_add”: “none”,
“columns_mobile”: “2”,
“swipe_on_mobile”: false,
“padding_top”: 36,
“padding_bottom”: 36
}
},
“featured_collection_tearXg”: {
“type”: “featured-collection”,
“settings”: {
“title”: “{{ section.settings.collection.title }}”,
“heading_size”: “h1”,
“description”: “”,
“show_description”: false,
“description_style”: “body”,
“collection”: “evaporative-air-conditioning-trade”,
“products_to_show”: 4,
“columns_desktop”: 4,
“full_width”: false,
“show_view_all”: true,
“view_all_style”: “solid”,
“enable_desktop_slider”: false,
“color_scheme”: “”,
“image_ratio”: “adapt”,
“image_shape”: “default”,
“show_secondary_image”: false,
“show_vendor”: false,
“show_rating”: false,
“quick_add”: “none”,
“columns_mobile”: “2”,
“swipe_on_mobile”: false,
“padding_top”: 36,
“padding_bottom”: 36
}
},
“featured_collection_6G8rzG”: {
“type”: “featured-collection”,
“settings”: {
“title”: “{{ section.settings.collection.title }}”,
“heading_size”: “h1”,
“description”: “”,
“show_description”: false,
“description_style”: “body”,
“collection”: “ducted-reverse-cycle-air-conditioning-trade”,
“products_to_show”: 6,
“columns_desktop”: 3,
“full_width”: false,
“show_view_all”: true,
“view_all_style”: “solid”,
“enable_desktop_slider”: false,
“color_scheme”: “”,
“image_ratio”: “adapt”,
“image_shape”: “default”,
“show_secondary_image”: false,
“show_vendor”: false,
“show_rating”: false,
“quick_add”: “none”,
“columns_mobile”: “2”,
“swipe_on_mobile”: false,
“padding_top”: 36,
“padding_bottom”: 36
}
},
“featured_collection_jLwjrt”: {
“type”: “featured-collection”,
“settings”: {
“title”: “{{ section.settings.collection.title }}”,
“heading_size”: “h1”,
“description”: “”,
“show_description”: false,
“description_style”: “body”,
“collection”: “ceiling-floor-cassettes-trade”,
“products_to_show”: 4,
“columns_desktop”: 4,
“full_width”: false,
“show_view_all”: true,
“view_all_style”: “solid”,
“enable_desktop_slider”: false,
“color_scheme”: “”,
“image_ratio”: “adapt”,
“image_shape”: “default”,
“show_secondary_image”: false,
“show_vendor”: false,
“show_rating”: false,
“quick_add”: “none”,
“columns_mobile”: “2”,
“swipe_on_mobile”: false,
“padding_top”: 36,
“padding_bottom”: 36
}
},
“featured_collection_Ca8G8g”: {
“type”: “featured-collection”,
“settings”: {
“title”: “{{ section.settings.collection.title }}”,
“heading_size”: “h1”,
“description”: “”,
“show_description”: false,
“description_style”: “body”,
“collection”: “portable-air-conditioners-trade”,
“products_to_show”: 16,
“columns_desktop”: 4,
“full_width”: false,
“show_view_all”: true,
“view_all_style”: “solid”,
“enable_desktop_slider”: true,
“color_scheme”: “”,
“image_ratio”: “adapt”,
“image_shape”: “default”,
“show_secondary_image”: false,
“show_vendor”: false,
“show_rating”: false,
“quick_add”: “none”,
“columns_mobile”: “2”,
“swipe_on_mobile”: false,
“padding_top”: 36,
“padding_bottom”: 36
}
},
“featured_collection_Lxn3zK”: {
“type”: “featured-collection”,
“settings”: {
“title”: “{{ section.settings.collection.title }}”,
“heading_size”: “h1”,
“description”: “”,
“show_description”: false,
“description_style”: “body”,
“collection”: “window-air-conditioners-trade”,
“products_to_show”: 4,
“columns_desktop”: 4,
“full_width”: false,
“show_view_all”: true,
“view_all_style”: “solid”,
“enable_desktop_slider”: false,
“color_scheme”: “”,
“image_ratio”: “adapt”,
“image_shape”: “default”,
“show_secondary_image”: false,
“show_vendor”: false,
“show_rating”: false,
“quick_add”: “none”,
“columns_mobile”: “2”,
“swipe_on_mobile”: false,
“padding_top”: 36,
“padding_bottom”: 36
}
},
“featured_collection_nydKRX”: {
“type”: “featured-collection”,
“disabled”: true,
“settings”: {
“title”: “{{ section.settings.collection.title }}”,
“heading_size”: “h1”,
“description”: “”,
“show_description”: false,
“description_style”: “body”,
“collection”: “installation-accessories-trade”,
“products_to_show”: 4,
“columns_desktop”: 4,
“full_width”: false,
“show_view_all”: true,
“view_all_style”: “solid”,
“enable_desktop_slider”: false,
“color_scheme”: “”,
“image_ratio”: “adapt”,
“image_shape”: “default”,
“show_secondary_image”: false,
“show_vendor”: false,
“show_rating”: false,
“quick_add”: “none”,
“columns_mobile”: “2”,
“swipe_on_mobile”: false,
“padding_top”: 36,
“padding_bottom”: 36
}
}
},
“order”: [
“main”,
“rich_text_QNnQC4”,
“featured_collection_TPUz87”,
“featured_collection_tearXg”,
“featured_collection_6G8rzG”,
“featured_collection_jLwjrt”,
“featured_collection_Ca8G8g”,
“featured_collection_Lxn3zK”,
“featured_collection_nydKRX”
]
}

Hello

You can achive that with metaobjects.

You can create metaobject from here, then younwill be able to set the text from here in customer page

Then in liquid you can check by the metaobject name. if you need the whole code please let me know.