Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

magento 2.3 check if customer is logged in

$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$customerSession = $objectManager->get('MagentoCustomerModelSession');
if($customerSession->isLoggedIn()) {
   // customer login action
}
 
PREVIOUS NEXT
Tagged: #magento #check #customer #logged
ADD COMMENT
Topic
Name
7+9 =