Shopify themes, liquid, logos, and UX
hello, I am trying to make my Shopify password page look and interact like the images above. I’d like to have a password form that people can enter a password and allows them into the store directly. If they don’t have a password they can press the join waitlist and it opens an email form where they can register. How can I achieve that?
thank you
Hello @Mazen98 ,
You can try to follow these steps:
{% layout none %}
{% comment %}
Template Name: Password Page
This template is used for the password page.
{% endcomment %}
{% if page.password_required %}
<div id="password-page">
<h2>Enter the Password</h2>
<form action="{{ routes.password }}" method="post" id="password-form">
<input type="password" name="password" id="password" placeholder="Enter the password" required>
<input type="submit" value="Submit">
</form>
<p class="join-waitlist-link">Don't have a password? <a href="#" id="join-waitlist-link">Join the Waitlist</a></p>
<div id="waitlist-form" style="display: none;">
<h2>Join the Waitlist</h2>
<form action="/contact" method="post">
<input type="email" name="email" id="email" placeholder="Enter your email" required>
<input type="submit" value="Submit">
</form>
</div>
</div>
<script>
document.getElementById('join-waitlist-link').addEventListener('click', function(event) {
event.preventDefault();
document.getElementById('password-form').style.display = 'none';
document.getElementById('waitlist-form').style.display = 'block';
});
</script>
{% else %}
<p>The password page is disabled. Please check your settings.</p>
{% endif %}
Hope this can help.
Ali Reviews team.
i want the same for my website. this code doesnt work. can you help me
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025