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
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024