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
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
Once you restart, you can right click any page, and select how often you want to reload the page, like the following image shows
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.
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.
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.
Code: Select all
<script language="javascript">
setTimeout(function(){
window.location.reload(1);
}, 30000);
</script>
Hope this helps someone.
Annette Kennedy
Thanks For Any Help In Advance
Who is online
Users browsing this forum: No registered users and 319 guests