You can check if user is logged in in the application with this piece of code:
1 2 3 4 5 6 7 |
<?php if(!Mage::getSingleton('customer/session')->isLoggedIn()){ //not logged in }else{ // logged in } ?> |
Blog for Magento 2
| | |
You can check if user is logged in in the application with this piece of code:
1 2 3 4 5 6 7 |
<?php if(!Mage::getSingleton('customer/session')->isLoggedIn()){ //not logged in }else{ // logged in } ?> |
A descriptive sentence for the Call To Action (CTA).
Welcome to our blog!