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!
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