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!
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025