Shopify themes, liquid, logos, and UX
Hello Folks, I need to redirect to the user if they are not logged in from theme extension. Is there any way to identify whether an user logged in or not ? Thank you
Solved! Go to the solution
This is an accepted solution.
You can get this in two ways 1) By JavaScript Variable : If you do not get undefined value of ShopifyAnalytics.meta.page.customerId then user is logged in and variable returns customer id. 2) You can check by customer liquid object in top of liquid file of Theme Extension.
This is an accepted solution.
You can get this in two ways 1) By JavaScript Variable : If you do not get undefined value of ShopifyAnalytics.meta.page.customerId then user is logged in and variable returns customer id. 2) You can check by customer liquid object in top of liquid file of Theme Extension.
Awesome!
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025