Post by rudy1976s » Thu Feb 09, 2012 4:54 pm

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

Newbie

Posts

Joined
Sat Jun 04, 2011 11:03 pm

Post by JAY6390 » Thu Feb 09, 2012 8:35 pm

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

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by i2Paq » Fri Feb 10, 2012 3:04 am


Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by annettek » Fri Apr 10, 2020 8:45 pm

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.

Newbie

Posts

Joined
Fri Apr 10, 2020 6:30 pm
Who is online

Users browsing this forum: No registered users and 57 guests