Page 1 of 1

Make visitors count module

Posted: Sat Jun 06, 2015 10:59 pm
by Laily92
Hey.
I am new in OC and programming.
I have e-shop on OC 2.0.1.0. and I have a question - can I somehow make easy visitors count module at front office (at back office it is automatically in), if I take code from back office (you can find this code at admin -> model -> report -> customer.php ! If yes, where I should put this code, do I need to shrink it or what? I really need such a module, but I can't imagine how to get it. I looked at extensions which are for free, but there is nothing for 2.x. OC.
Please help if it possible to get easy visitors count module.

Re: Make visitors count module

Posted: Sun Jun 07, 2015 5:33 am
by D3MO
in admin section the report section calls the function that counts all rows in the customers table and shows the number on the front end it is not advised to use such function that all the time once has to display the number of total users will be counting the rows in database. (for every user that visits the website) it is heavy on your server such tasks. best practice would be create extra database entry for users number only in setting or custom table. and update it once user registers +1
i didnt seen that extension also available on opencart marketplace but if you interested in this to be created for you pm:)