0

I want to display prommatically the last customers loggin since yesterday from 21:00 . I think i could get this data from

Mage::getSingleton('customer/session')->getCustomer();

Mage::getModel('log/customer')->loadByCustomer($custom);

But can't, and i was looking for other codes and didn't found anything.

0

At least i found the database log on log_customers Using Mage_log then i get:

$collection = Mage::getModel('log/visitor')->getCollection();
$collection->getSelect()->join(array('log_customer'=>$collection->getTable('log/customer')),´main_table.´visitor_id´=log_customer.visitor_id´');
foreach($collection->getItems() as $custom) {
   print_r($custom->getData());
}

But i don't know why, there is only a few results in the database.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.