How long customer is inactive ?

piaoling  2011-08-05 14:10:05
  $customer = Mage::getSingleton('customer/session')->getCustomer();
  $log = Mage::getModel('log/customer')->load($customer->getId());
  $inctive_time = now() - $log->getLastVisitAt();

 

类别 :  magento(258)  |  浏览(3655)  |  评论(0)
发表评论(评论将通过邮件发给作者):

Email: