Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi guys,
I hope you're all good. My question is that I want to create a campaigns page from my website. I want this campaigns page to be seen only by users who are members of my website.
So when they click on the link to the campaigns page, if they are Log In, they will see the page, but if they are not Log In, I want it to redirect them to log in first and then return to the campaign page.
I hope I was able to explain my problem. I am looking forward to the help of knowledgeable people.
Regards everyone
Solved! Go to the solution
This is an accepted solution.
Thank you for your time, but I have two important questions.
1. How can I describe the content of this custom page in the code?
2. Where exactly do I need to place this code?
Thank you very much for your valuable time. Can you explain exactly where I should use this code?
This is an accepted solution.
Thank you for your time, but I have two important questions.
1. How can I describe the content of this custom page in the code?
2. Where exactly do I need to place this code?
Hi @crzy This can be accomplished from 2 ways:
If you will unable to implement the same then I'm happy to do this for you, let me know. I can implement the code changes so that this will work well for you.
Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!
Best Regards
Sahil
- Your
Hi ,
Can you help me ? How Can I contact you ?
Hi @crzy You can connect with me over whatsapp or email or in private message in shopify, whichever is suitable for you.
Best Regards
Sahil
- Your
I'd like some assistance in doing the same thing. I can't seem to private message you on shopify - how can I get in touch?
Hi @crzy ,
Write the below code in theme.liquid before </head>
{% if customer %}
{% if customer.tags contains 'X Member' %}
{% else %}
<meta http-equiv = "refresh" content = "1; url = SHOP_URL "/>
{% endif %}
{% endif %}
Hope this will help...
So any logged-in customer would be a member of your site?
You can use an app like the one in my signature, Customer Accounts, to personalize the account page and add custom content and pages. The account page is only accessible after the customer logs in.
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