Personalized checkout and custom promotions with Shopify Scripts
Hello, I’m looking for help implementing a functionality in my Shopify store. Here’s what I need:
Goal: I want the store to check if a user has a specific tag (e.g., "Verified" or "VIP").
Behavior:
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.
Additional Details:
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"
]
}
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.
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025