{{customer}} is not populated when customer logs in via checkout/SHOP button
Link to Shopify Store
Reproduction steps
add any product to cart, go to checkout page, click SHOP button and login into your account.
when you return back to the store - {{customer}} is not populated
Additional info
Is there any way to determine if customer is logged in via Liquid or JavaScript?
Thanks for reaching out about this!
The issue you’ve described is a current limitation of the express checkout flow that we’ll be addressing in the future.
In terms of checking whether a customer is logged in or not, {{ customer }} is the recommended method with Liquid. JavaScript can then utilize that data. If it’s returning null, that’s because the customer isn’t considered logged in at the storefront (in the case of this limitation they’re only considered logged in at checkout).