hide cart content when logged in

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 %}

Have Rewards? :cherry_blossom:

...other code...

Not enrolled yet? No problem! You can check out now and start earning rewards next time.

{% endunless %}

1 Like