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(); |
发表评论(评论将通过邮件发给作者):