Page 1 of 1

Auto Refresh Admin Dashboard

Posted: Thu Feb 09, 2012 4:54 pm
by rudy1976s
Hello all
I have the need to refresh programatically the admin dashboard: we use the opencart as order facility and we need to refresh the page to check for new orders.
Is there anyone had the same need and find some way to achieve it?
Thanks in advance

Rudy

Re: Auto Refresh Admin Dashboard

Posted: Thu Feb 09, 2012 8:35 pm
by JAY6390
Install Firefox (if you haven't already), then install the Tab Mix Plus extension

Once you restart, you can right click any page, and select how often you want to reload the page, like the following image shows
Image

Re: Auto Refresh Admin Dashboard

Posted: Fri Feb 10, 2012 3:04 am
by i2Paq

Re: Auto Refresh Admin Dashboard

Posted: Fri Apr 10, 2020 8:45 pm
by annettek
It can be done by adding this code to file: admin/view/template/common/dashboard.twig or admin/view/template/common/dashboard.tpl if you want the dashboard to refresh or any other main template file.

Code: Select all

<script language="javascript">
setTimeout(function(){
window.location.reload(1);
}, 30000);
</script>
the 30000 in js script means the amount of time before the page automatically refreshes. 30000 is the equivalent of 30 seconds so you can set it whatever suits your situation.
:)
Hope this helps someone.