B-219 Sec-55 Noida, India
+918010221733

Find how long customer is inactive in magento website ?

$customer = Mage::getSingleton(‘customer/session’)->getCustomer();
$log = Mage::getModel(‘log/customer’)->load($customer->getId());
$inctive_time = now() – $log->getLastVisitAt();
(Visited 98 times, 1 visits today)

Leave a reply