How Can I create custom pages for my members ?

Solved

How Can I create custom pages for my members ?

crzy
Tourist
4 1 0

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

Accepted Solution (1)
crzy
Tourist
4 1 0

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?

View solution in original post

Replies 7 (7)
crzy
Tourist
4 1 0

Thank you very much for your valuable time. Can you explain exactly where I should use this code?

crzy
Tourist
4 1 0

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?

sahilsharma9515
Shopify Partner
1171 147 224

Hi @crzy This can be accomplished from 2 ways:

 

  1. Custom Code: You can achieve it with the custom code, You need to work with the session variable and attach the page according to it.
  2. 3rd Party App: There are 3rd party app in the shopify app store which can provide you the same functionality, so you can use those app.

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

 Coffee Tip 

can create magic in coding ❤️❤️

- Need a Shopify Developer? CHAT ON WHATSAPP or EMAIL ME !


- Hopefully the solution will help you. If yes then Please hit

 Like 

and

 Mark it as solution! ❤️


crzy
Tourist
4 1 0

Hi ,

 

Can you help me ? How Can I contact you ?

sahilsharma9515
Shopify Partner
1171 147 224

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

 Coffee Tip 

can create magic in coding ❤️❤️

- Need a Shopify Developer? CHAT ON WHATSAPP or EMAIL ME !


- Hopefully the solution will help you. If yes then Please hit

 Like 

and

 Mark it as solution! ❤️


gr_trading
Shopify Partner
1891 145 199

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...

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee

JaviExpress
Shopify Partner
183 16 26

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.

Customer Accounts Concierge
All-in-One Customer Portal: Profile, Orders, Loyalty, Referral, Wishlist, Custom Forms, Social Login