Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $state = $this->_objManager->get('MagentoFrameworkAppState');
- $state->setAreaCode('frontend');
- $customerSession = $this->_objManager->get('MagentoCustomerModelSession');
- var_dump($customerSession->isLoggedIn());exit; // printing false either customer is logedin
Add Comment
Please, Sign In to add comment