How to set up a members-only product collection in the Dawn template?

How to set up a members-only product collection in the Dawn template?

Starlords
Visitor
2 0 0

Hi,

I am using the dawn template and want to set up some products hidden from the general public (only accessible by members) I am new and don’t know coding or how to even start this?

Replies 7 (7)

Simonsron
Shopify Partner
699 87 122

Shopify itself does not support membership, if you need membership you can use the app to implement it.

Of course if you want to make a customer-specific collection, you can also make a collection and then the entry point to that collectiond is not on your website, but is available separately to your membersj for access.

banned
Starlords
Visitor
2 0 0

Great so how do I make a customer specific collection? Will it be visible to everyone or can I just tag the customers I want to have access?

Simonsron
Shopify Partner
699 87 122

What I mean by this is that once you have created the collection, the entry to this collection you do not want to display on your website, the entry to it needs to be sent to your specific customers via an email situation.

banned

Brett_Helium
Shopify Partner
270 51 121

One way to accomplish this would be using a permissions app such as Locksmith. This would allow you to create custom locks and keys - such as locking a specific collection or product unless a customer has a certain tag. This can all be done through the app interface without any coding!

Brett | Helium
Helium builds apps that thousands of merchants depend on:
- Customer Fields ✪✪✪✪✪ (350+ reviews)
- Meteor Mega Menu ✪✪✪✪✪ (280+ reviews)
macrofitbyppf
New Member
6 0 0

Do you know other app that is free?

Jahid-KlinKode
Excursionist
145 1 5

Hi @Starlords, check out this quick and easy tutorial on making your Shopify store exclusive:

 

mt686
Shopify Partner
56 9 19

Hello!

To set up member-exclusive products in your Shopify store, I would use customer tags and validate product access based on that. The high level would go like this:

  1. Tag Members
  2. Add Theme Code To Validate

Tagging Customers

In the customers section of your Shopify admin, you can select and filter customers, then bulk add tags. You can also use Shopify flow to automate that and add tags based on criteria like purchases.

Adding Validation In Theme Code

In your product.liquid or product-template.liquid file you're going to check if the customer has the required tag, then conditionally show the important parts of the page. I'll provide the general code below, then you would copy and paste your whole files contents in between the conditions. I also have it set to check for tags on the product, but you could create a separate template to use instead.

 

{% if product.tags contains 'Exclusive' %}
  {% if customer and customer.tags contains 'exclusive' %}
    <!-- Product details -->
  {% else %}
    <p>This product is only available for exclusive members.</p>
  {% endif %}
{% else %}
  <!-- Product details for non-exclusive products -->
{% endif %}​


This code checks if the product is tagged as 'Exclusive' and whether the logged-in customer has the 'exclusive' tag.

 

(optional) Step 3: Restrict Purchasing

  • In the cart.liquid or on an ATC event, check if they have the tag and if they don't, then remove the item from the cart. Let me know if that's something you'd want to use and I can write that out as well, but it will take some customization for each theme.

Another Option

Alternatively, you might consider using an app designed for exclusive product management, like  Latch. You can set it up to only allow customers with certain tags to purchase products. It will validate it on checkout as well, and provide a note to customers who don't have access. You can also upsell a required membership or product. As a disclaimer, I am the main developer for Latch.

Let me know if any of that works for you, best of luck!