sttaq Posted January 21, 2014 Share Posted January 21, 2014 In 1.5.x when a new order is placed an order notification is displayed at the top in back office. This notification is only updated when a page is reloaded and is therefore not updated in real time. Is there a way this can be configured to update in real time? For example if I am logged in back office and not doing anything else I will only know that a order is placed either through an email alert or whenever I decided to reload the back office page. I don't want to rely on email for notification and I don't want to keep hitting refresh on the website. Link to comment Share on other sites More sharing options...
zaar Posted January 21, 2014 Share Posted January 21, 2014 You can add your own code with ajax and a set timeout interval Link to comment Share on other sites More sharing options...
vekia Posted January 21, 2014 Share Posted January 21, 2014 check this: http://www.prestashop.com/forums/topic/284580-module-new-order-alarm-ps-15/?p=1433697 1 Link to comment Share on other sites More sharing options...
sttaq Posted January 21, 2014 Author Share Posted January 21, 2014 You can add your own code with ajax and a set timeout interval Thanks, would you be able to point out where I should start looking at? Are there any specific methods, service calls that I should be aware of? check this: http://www.prestashop.com/forums/topic/284580-module-new-order-alarm-ps-15/?p=1433697 Thanks, it is really a nice module but I would still want to have notification popup in real time. Link to comment Share on other sites More sharing options...
zaar Posted January 21, 2014 Share Posted January 21, 2014 (edited) in fact there is already a settimeout. you can find it in your file js/notifications.js (line 115 in 1.5.6.1) the default value is 60000, you can set this value to 1000 (1 sec) but it will mean that you put a request evry 1 secondes ( instead of 1 minutes by default) Sorry for my english. Edited January 21, 2014 by zaar (see edit history) 1 Link to comment Share on other sites More sharing options...
zaar Posted January 21, 2014 Share Posted January 21, 2014 you have to set 1 the value of PS_ADMIN_REFRESH_NOTIFICATION in table configuration and becareful you have to correct the name (you will see in your database it's PS_ADMINREFRESH_NOTIFICATION !!) I found this answer in another topic you can found here : http://www.prestashop.com/forums/topic/173394-add-a-sound-when-receiving-new-order/page-2 1 Link to comment Share on other sites More sharing options...
sttaq Posted January 21, 2014 Author Share Posted January 21, 2014 you have to set 1 the value of PS_ADMIN_REFRESH_NOTIFICATION in table configuration and becareful you have to correct the name (you will see in your database it's PS_ADMINREFRESH_NOTIFICATION !!) I found this answer in another topic you can found here : http://www.prestashop.com/forums/topic/173394-add-a-sound-when-receiving-new-order/page-2 Oh brilliant, that does the job! Many thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now