How can I hide certain products for non-registered members?

Solved

How can I hide certain products for non-registered members?

Orsi
Shopify Partner
14 0 2

Hi,

 

There are products that I would like to sell for just those who are signed up on my site.

So pretty much there would be a page containing those products and it would only be visible for those who are signed up.

If someone is not, they would get the page "sign up to see the details" - or something like this.

 

I looked at membership apps, but I don't need people to pay, just need them to sign up 🙂

 

Is there a code or app that could do only this?

 

thanks,

Orsi

Accepted Solution (1)

Iris
Shopify Staff
826 67 109

This is an accepted solution.

Hi @Orsi ,

 

That's a great question!

 

You can create a members-only store by showing a login or register page when customers navigate to your website. This tutorial will guide you through the steps to achieve this feature. 

 

Please note that Shopify does not support this tutorial, and knowledge of HTML, CSS, JavaScript, and Liquid is required. Consider hiring a Shopify Expert if you aren't comfortable doing the steps in the tutorial. 

 

Alternatively, the app Locksmith is an excellent way for you to create members-only areas of your store. This app will allow you to lock down pages, products, collections, etc. Only people with a specific login account can get in! 

 

Also, there is an app called Customer Pricing. Although it doesn't lock specific areas of your store, it lets you show different prices to different customers depending on their login details. So it might be a good alternative in this case!

 

How is everything else going for you with the store? Are you also doing any marketing you would like to discuss? I would love to hear about your business and anything you are working on!

Iris | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

View solution in original post

Replies 9 (9)

KetanKumar
Shopify Partner
37043 3644 12027

@Orsi 

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community!😊
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Orsi
Shopify Partner
14 0 2

Hi,
Thanks for getting back to me!

I created a page where I want to add those specific products. They are not uploaded yet, I wanted to see if I can even hide the page. There is one test product though.

 

https://pranveraskincare.myshopify.com/pages/face-reality-skincare

pw: tregge

thanks!

Orsi

KetanKumar
Shopify Partner
37043 3644 12027

@Orsi 

There are two ways, which are completely equivalent.

1st 

{% if customer %}
  This customer is logged in.
{% else %}
  This customer is not logged in.
{% endif %}

2nd Way

{% unless customer %}
  This customer is not logged in.
{% endunless %}
If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Orsi
Shopify Partner
14 0 2

Hi Kumar,

thanks for the code. Would this work on the whole site or just that page? The idea would be that the site is visible for everyone, and only that page needs signing in.

 

 

I actually found a code and tried to use it, but it didn't work. I think I couldn't target properly the 'template contains' part so it was probably not set up correctly.

 

This is the code and the highlighted on is what I think was wrong, but not sure. Can you please let me know where and how can I add this code (or yours) to make it work?

 

 {% unless customer %} 

  {% if template contains ‘customers’ %}

 {% assign send_to_login = false %}  

 {% elsif template contains 'details-sectionshopify-section page-details-section' %}

 {% assign send_to_login = true %}  

 {% endif %} 

 {% endunless %} 

 

 {% if send_to_login %}

< meta content= “0; url=/account/login?checkout_url= {{ shop.url }}  “ http-equiv=“refresh” />

 

{% else %}  

{% endif %}

Iris
Shopify Staff
826 67 109

This is an accepted solution.

Hi @Orsi ,

 

That's a great question!

 

You can create a members-only store by showing a login or register page when customers navigate to your website. This tutorial will guide you through the steps to achieve this feature. 

 

Please note that Shopify does not support this tutorial, and knowledge of HTML, CSS, JavaScript, and Liquid is required. Consider hiring a Shopify Expert if you aren't comfortable doing the steps in the tutorial. 

 

Alternatively, the app Locksmith is an excellent way for you to create members-only areas of your store. This app will allow you to lock down pages, products, collections, etc. Only people with a specific login account can get in! 

 

Also, there is an app called Customer Pricing. Although it doesn't lock specific areas of your store, it lets you show different prices to different customers depending on their login details. So it might be a good alternative in this case!

 

How is everything else going for you with the store? Are you also doing any marketing you would like to discuss? I would love to hear about your business and anything you are working on!

Iris | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

Orsi
Shopify Partner
14 0 2

Thank you! The Locksmith app worked perfectly! 🙂

 

Orsi
Shopify Partner
14 0 2

Thank you so much!

magecomp
Shopify Partner
417 29 42

Hello @Orsi 

 

Several Shopify apps can help you achieve this functionality with more flexibility and features. Here are a few popular options:

  • Wholesale All In One: This app allows you to create different customer groups with different pricing and product visibility settings. You can create a "wholesale" group for your registered users and only make the restricted products visible to them.

  • Wholesale Club by Bold Commerce: This app offers similar features to Wholesale All In One, but with additional functionalities like tiered pricing and order minimums.

  • Memberstack: This app allows you to create membership levels with different access permissions. You can create a free membership level for registered users and give them access to the restricted products.

  • Shoplock Required Login https://apps.shopify.com/required-login-for-customers
Helping voluntarily. Please like and accept the solution if it helps. Thanks!
Our Bestseller Shopify Apps    |      Mobile App Builder by MageComp    |      Shoplock Hide Pages/Collections

Need a developer?  Just visit MageComp website

Jahid-KlinKode
Excursionist
145 1 5

Hi @magecomp, learn how to restrict specific products or pages on Shopify with this easy-to-follow YouTube tutorial: