MembershipsAdvanced
Hidden Sections
Make parts of your store only accessibel to customers with a specific membership.
With memberr memberships it is possible to create hidden sections in your store that are only available to customers that have a certain membership. The code below serves as a starting point to create such a section.
Liquid Code
<div class="hidden-membership-container">
{% unless customer %}
<div class="logged-out-message">
<p>Please login to see your personal information.</p>
<div class="login-buttons">
<a href="{{ routes.account_login_url }}" class="btn-login">Login</a>
<a href="{{ routes.account_register_url }}" class="btn-register">Register</a>
</div>
</div>
{% else %}
display hidden customer information here
{% endunless %}
</div>