I'm doing a custom JS code but i wanna know if user are logged in with Jquery.

  • can you please share your code. – Anas Mansuri Aug 10 at 5:26

Its available frontend via customerData (private data)


You can combine this with jquery. Something like this.



Please share your code if you are done...or please check with below url which have ajax login popup.



The references up can't help me cause i'm touching JS at checkout process. I finally solved it doing a jQuery check: if add new address button are visible in the code, then, the user are registered and configured they address.

Thanks for the help!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.