0

We want to check if customer is login.

Only in that case we want to run particular script in Js file.

-1

We can do this by using : window.isCustomerLoggedIn & window.customerData

This returns true or false depends upon customer session.

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.