1

I want to track how many times customer logged in.

So as output it will be like report. From this to this day X day logged in X times.

6

You can create a separate module with separate database where you need to define a observer, in which you need to write how many times a customer logged in with time & date.

<customer_login>
    <observers>
        <yourobservername>
            <type>model</type>
            <class>yourmodule/path_to_class</class>
            <method>customerLogin</method>
        </yourobservername>
    </observers>
</customer_login>

Your observer class would look like this:

class YourCompany_YourModule_Model_Observer
{
    public function customerLogin($observer)
    {
        $customer = $observer->getCustomer();
        // ADD CURRENT SYSTEM DATE-TIME, CUSTOMER NAME, ID, ETC. IN THE DATABASE CREATED BY YOUR MODULE
    }
}
  • Thanks Rahul. Any free or paid plugin?. because i'm newbie to magento. – test Jun 10 '15 at 6:08
  • Sorry, but didn't find any extension specifically for your need. Either you need to do the coding by yourself, or contact an experienced Magento developer. – Rahul Kumar Das Jun 10 '15 at 6:22

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.