/ Published in: PHP

How long customer is inactive ?
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$customer = Mage::getSingleton('customer/session')->getCustomer(); $log = Mage::getModel('log/customer')->load($customer->getId()); $inctive_time = now() - $log->getLastVisitAt();
URL: http://magentocookbook.wordpress.com/category/magento-coding/
Comments
