Is there a way to remove the password from one page?

New Member
1 0 1

Currently my shop is not populated with my product yet and I have it password protected, but I would like one particular page to be accessible without a password while the rest still require a password. 

 

Is there any way to accomplish anything like this?

1 Like
Pathfinder
115 20 38

If I were you, I'd disable the password and use a meta redirect to the only page that's available.

 

{% unless product.handle == 'something' %}
<meta http-equiv="refresh" content="0;url=http://example.com/" />
{% endunless %}

The idea here is that all the traffic will be redirected and funneled into a single product page.  If you want to allow them to checkout with the product, you'd need to also exclude the cart template as well.

2 Likes
Shopify Partner
457 78 88

You can acheive it, if you disable password protection and then do a small custom coding to hide all content, showing some overlay, which will say that site is under construction, and then for one page/ or for several, do a check for handles (using liquid) and don't show the overlay for that page.

Author: Hovhannes Sargsyan (aka sarhov).
An individual web developer focused on Shopify development.
Need more help? Feel free to send me a direct message or drop an email shopify@sarhov.com

Website: https://sarhov.com  
Email: shopify@sarhov.com
Skype: @sarhov
Messenger: @sarhov
Telegram: @sarhov
0 Likes
Tourist
12 0 0

What if I want to have one navigation menu item password-protected, but not the whole site? Is that possible? Thanks!

0 Likes
Shopify Partner
457 78 88

@Lani_S 

 

So you want only one page to be hidden ?

Author: Hovhannes Sargsyan (aka sarhov).
An individual web developer focused on Shopify development.
Need more help? Feel free to send me a direct message or drop an email shopify@sarhov.com

Website: https://sarhov.com  
Email: shopify@sarhov.com
Skype: @sarhov
Messenger: @sarhov
Telegram: @sarhov
0 Likes
Tourist
12 0 0

 

I want a collection page to be in the navigation menu, but when clicked on, a password page/dialog box pops up. This is for a wholesale section of the site.

0 Likes
Pathfinder
115 20 38

The best way to do this is to use customer tags.  So you would need the person getting wholesale prices to create an account first and then manually tag them with "wholesale" or something like that once you review their info and allow them to buy at wholesale prices.

 

{% if customer.tags includes 'wholesale' %}

// show the contents of the collection page

{% else %}

// show message that they need to be a wholesaler to view this page and maybe show an application form

{% endif %}
0 Likes
Highlighted
Shopify Partner
457 78 88

@LovableLumber 

 

As Eric said you can do it using customer tags, if customer has tag 'wholesale' then show them the content of the collection, if not then show warning or login form.

It is pretty quick job, about 30mins work.

Author: Hovhannes Sargsyan (aka sarhov).
An individual web developer focused on Shopify development.
Need more help? Feel free to send me a direct message or drop an email shopify@sarhov.com

Website: https://sarhov.com  
Email: shopify@sarhov.com
Skype: @sarhov
Messenger: @sarhov
Telegram: @sarhov
0 Likes