jason customisation

jason customisation

air_con
Visitor
2 0 0

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": "<p>Exclusively for Companies and contractors that signed up for out trade account programe</p>"
}
}
},
"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"
]
}

Reply 1 (1)

enam_ShopiDevs
Shopify Partner
11 1 2

Hello 

 

You can achive that with metaobjects. 

enam_ShopiDevs_0-1735281499853.png

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

enam_ShopiDevs_1-1735281574961.png

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

 

If it is solved then please like and mark the solution as accepted. Check out these apps below...
Slider Revolution - Create sliders, theme sections, banners, videos, pages, advanced animation, and social feeds.
Essential Grid Gallery - Create photo galleries, video galleries, portfolio galleries, product gallery, collection gallery and more.
EasyDisplay: Product Showcase - Easily display collections, related products, discounts, recently viewed items, and best sellers