All things Shopify and commerce
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 %}
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025