Post by Jaesin » Thu Mar 26, 2020 10:04 am

In the Opencart Online Report - Is there any way that I can keep opencart from recordeing the activity from my own IP?

New member

Posts

Joined
Wed Aug 23, 2017 11:31 pm

Post by letxobnav » Thu Mar 26, 2020 10:23 am

in config.php define all the ips you consider administrators

Code: Select all

define('ADMIN_IP', array('127.0.0.1','XXX.XXX.XXX.XXX','YYYY.YYYY.YYYY.YYY'));
in catalog/controller/common/footer.php change

Code: Select all

$this->model_tool_online->addOnline($ip, $this->customer->getId(), $url, $referer);
to

Code: Select all

if (!in_array($_SERVER['REMOTE_ADDR'],ADMIN_IP)) $this->model_tool_online->addOnline($ip, $this->customer->getId(), $url, $referer);
to exclude administrator ips from these recordings

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by Jaesin » Thu Mar 26, 2020 2:25 pm

Thankyou very much!!

New member

Posts

Joined
Wed Aug 23, 2017 11:31 pm
Who is online

Users browsing this forum: No registered users and 15 guests