All things Shopify and commerce
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
I have a little section on my website in the cart, that reminds customers to use their loyalty rewards if they have any, with a button to login. Once the customer is logged in, how can I make the content be hidden, or change to something else??
Hey there,
you can use logic to check if the customer is logged in.
{% unless customer %}
<p style="text-align: center;"><span style="font-size: 20px;">Have Rewards? 🌸</span></p>...other code...
<p style="text-align: center;">Not enrolled yet? No problem! You can check out now and start earning rewards next time.</p>
{% endunless %}