Code: Select all
'limit' => $this->config->get('config_limit_admin')
Code: Select all
'limit' => X
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
OC v.3.x online.php -- OC v.1.5.6.x customer_online.php
----
Code: Select all
'start' => ($page - 1) * $this->config->get('config_limit_admin'),
'limit' => $this->config->get('config_limit_admin')
----
'start' => ($page - 1) * 50,
'limit' => 50
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
The config_limit_admin key was not always built-in. On older OC versions until more recent ones, the limits were defined manually.IP_CAM wrote: ↑Sun Feb 09, 2020 10:12 amseems to be the same in most all Versions, just the file name is a little different,
OC v.3.x online.php -- OC v.1.5.6.x customer_online.php
----Code: Select all
'start' => ($page - 1) * $this->config->get('config_limit_admin'), 'limit' => $this->config->get('config_limit_admin') ---- 'start' => ($page - 1) * 50, 'limit' => 50
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
i think there is some opencart code that is deleting entries older than 1 hour can any one tell how to filx it . it keeps at least 3 or 4 hour . 24 hour is the best
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Assuming you are using the latest version of OpenCart 3.0.3.2 at time of writing this
Edit: catalog/model/tool/online.php
Find:
Code: Select all
$this->db->query("DELETE FROM `" . DB_PREFIX . "customer_online` WHERE date_added < '" . date('Y-m-d H:i:s', strtotime('-1 hour')) . "'");
Code: Select all
$this->db->query("DELETE FROM `" . DB_PREFIX . "customer_online` WHERE date_added < '" . date('Y-m-d H:i:s', strtotime('-24 hours')) . "'");
Good to know ...uksitebuilder wrote: ↑Tue Feb 11, 2020 5:52 amHi
Assuming you are using the latest version of OpenCart 3.0.3.2 at time of writing this
Edit: catalog/model/tool/online.php
Find:Change to suit (e.g. -24hours):Code: Select all
$this->db->query("DELETE FROM `" . DB_PREFIX . "customer_online` WHERE date_added < '" . date('Y-m-d H:i:s', strtotime('-1 hour')) . "'");
Code: Select all
$this->db->query("DELETE FROM `" . DB_PREFIX . "customer_online` WHERE date_added < '" . date('Y-m-d H:i:s', strtotime('-24 hours')) . "'");
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Can you also tell how to add H1 tag arround logo . i dont know where is source fileuksitebuilder wrote: ↑Tue Feb 11, 2020 5:52 amHi
Assuming you are using the latest version of OpenCart 3.0.3.2 at time of writing this
Edit: catalog/model/tool/online.php
Find:Change to suit (e.g. -24hours):Code: Select all
$this->db->query("DELETE FROM `" . DB_PREFIX . "customer_online` WHERE date_added < '" . date('Y-m-d H:i:s', strtotime('-1 hour')) . "'");
Code: Select all
$this->db->query("DELETE FROM `" . DB_PREFIX . "customer_online` WHERE date_added < '" . date('Y-m-d H:i:s', strtotime('-24 hours')) . "'");
Users browsing this forum: No registered users and 13 guests