Return to Snippet

Revision: 49915
at August 2, 2011 06:48 by necode


Initial Code
$customer = Mage::getSingleton('customer/session')->getCustomer();
$log = Mage::getModel('log/customer')->load($customer->getId());
$inctive_time = now() - $log->getLastVisitAt();

Initial URL
http://magentocookbook.wordpress.com/category/magento-coding/

Initial Description
How long customer is inactive ?

Initial Title
Magento How long customer is inactive

Initial Tags
customer, magento

Initial Language
PHP