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
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.
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024