PASSWORD PROTECTED PAGE

Highlighted
Shopify Partner
20 0 1

Can someone please tell me how to created just a "password protected page" with Shopify?  I don't want to password protect the entire site---just a "page" for wholesale and private label products.  Thanks so much!  Lisa

Lisa Carmichael Webmaster-Digital Entrepreneur- Instructor RANK FOR MORE THAN 300 KEYWORDS ON GOOGLE PAGE 1-4 IN JUST 23 MONTHS ORGANICALLY-BLOGGER, GOOGLE WEBMASTER TOOLS, PAY PER CLICK CONSULTING, LINKING, WHITE HAT SEO, WEB DESIGN, WP, MAC, BLOGGER, SHOPIFY, WEEBLY, AFFILIATE MARKETING, FACEBOOK AND TWITTER MARKETING, CAMPAIGN MARKETING, CROWDFUNDING, MAINTAINING YOUR KEYWORDS. EMAIL ME FOR CLASS INFORMATION. I NEED AT LEAST 5-BUT NO MORE THAN 7-8 ATTENDEES-BUT I CAN TEACH YOU HOW TO RISE ABOVE THE OTHERS AT LIGHTENING SPEED-AND I CAN TEACH YOU THE ART OF GROWTH-HACKING FOR THE REAL PASSIONATE ONES! CLEARSKINMINERALS@GMAIL.COM
0 Likes
Highlighted
Shopify Staff
Shopify Staff
804 41 123

Hey!

 

My name is Ava, I’m one of Shopify’s Gurus and I’m here to help :)

 

If you wanted to password protect certain products/collection/pages that are only for wholesale customers only, you can use an app called Locksmith. This app will allow you to hide pages from customers who do not have special access to these pages. Can you take a look at this app and see if it would work for you? There is a 15-day free trial also, so you can test it out first free of charge.

 

Let me know if you have any more questions, happy to help!

 

Ava

Social Care Guru | support@shopify.com

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

Highlighted
Tourist
9 0 13

its crazy how much shopify doesn't do - then you have to pay extra to a 3rd party.

is there currently no other way to do this?

Highlighted
Shopify Partner
13 1 8

it actually depends. you can either use an app like Shopify stuff was recommending or you can implement this functionality by yourself. I'd need to gather more information to get a sense of what exactly you need but for example if you want to just restrict one page, you can do password protected by checking if customer is logged in. 

 

% if customer %}
<div class="page-width">
  <div class="grid">
    <div class="grid__item medium-up--five-sixths medium-up--push-one-twelfth">
      <div class="section-header text-center">
        <h1>{{ page.title }}</h1>
      </div>
      <div class="rte">
        {{ page.content }}
      </div>
    </div>
  </div>
</div>
{% else %}
  {%- include 'lock-content-login' -%}
{% endif %}

Where lock-content-login will be the login form and reset password code. 

Now let's say that you want to tag wholesale customer only. Then you can add customerTags to the conditional 

 

{% assign customerTags = customer.tags | join:',' %}
{% if customerTags contains 'wholesale' %}   
Highlighted
Tourist
3 0 1

Hi Michel! Where do you paste this code?

I need to protect with password just one page and It would be perfect if it's visible only for customers that are logged in.

 

Cheers.

0 Likes
Highlighted
New Member
2 0 0

Thank you for providing that code. Where do you insert it? Where do you edit which specific product page needs this protection? Thank you so much!

0 Likes
Highlighted
New Member
2 0 0

You would paste that entire code block as a page template(theme>edit code).

You'll also have to select the template you created as the template for the page through your theme UI.

Whatever content and title you enter through the theme UI for the page will appear where the liquid interpreter code is.

 

0 Likes
Highlighted
New Member
6 0 0

Michael, 

I am wondering the same thing, I want to "lock" a collection with some kind of code that I can implement myself for an upcoming holiday collection. So for example, I want to give plp early access with a password or special link, lets say a day before the actual collection goes live to those that signed up. I of course then want the collection to drop the day that its supposed to for the rest of those to purchase, then establish this system again when I have another collection go live. 

I haven't found anyone but YOU that has come close to helping with this specific thing and wondering if there is any code that you could provide with instruction on where to code it. I just don't want to pay the monthly subscriptions that are too expensive for what I am looking for. 

Secondly, since you are a guru with coding, I am trying to add a "gift wrap option" I installed some code to my shop, but it has this terrible "checkmark" box that says "gift wrap this for 6$, but you can't see it well and its not like sticking out so people can see it, I want to be able to add pictures to it and I would also like to have an option where when they click on an item it would be nice to have something that pops up that says "would you like to gift wrap this for $6?? I hope that made sense. 

If this is too long to respond on here, you can email me at littlehouseonthehomesteadmn@gmail.com I am just REALLY needing some help.

Blessings,

Shelly

0 Likes
Highlighted
New Member
1 0 0

i too would love some personal assistance with creating a password protected page for my logged in customers only. 

0 Likes