Solved

need help to check if user is logged in

suyash1
Shopify Partner
9135 1137 1485

hello all , this is my code, ideally it should show link to wish list if customer is logged in, and since I am staff it should show for me too, but it is not working, can you help me to find out why?

 

{% if customer %}
<a href="#">link to wishlist</a>
{% endif %}

To build shopify pages use pagefly You are welcome to contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
Paranormal story video using AI
Join me for beginner level training session
Accepted Solution (1)

MarinaPetrovic
Shopify Partner
552 124 180

This is an accepted solution.

Hi @suyash1 it doesn't matter if you're staff, you'd have to be logged in on your site in order to see this link. So it would be best to register as a customer and test 🙂 

M.Petrovic | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution

View solution in original post

Reply 1 (1)

MarinaPetrovic
Shopify Partner
552 124 180

This is an accepted solution.

Hi @suyash1 it doesn't matter if you're staff, you'd have to be logged in on your site in order to see this link. So it would be best to register as a customer and test 🙂 

M.Petrovic | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution