Post by Laily92 » Sat Jun 06, 2015 10:59 pm

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.

Newbie

Posts

Joined
Sat Jun 06, 2015 10:50 pm

Post by D3MO » Sun Jun 07, 2015 5:33 am

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:)

Opencart Expert | voldemaras@gmail.com

Extensions for Opencart @ https://www.opencartextensions.eu / or Opencart Marketplace

Need Custom Module? debug third party module or simply have any question related to Opencart? feel free to contact directly for a live chat session:) - INSTANT LIVE CHAT


User avatar
Active Member

Posts

Joined
Mon Apr 04, 2011 6:57 am
Who is online

Users browsing this forum: No registered users and 6 guests