Order notification plugin Q&A

  • Posts: 238
  • Thank you received: 29
  • Hikashop Business
1 day 12 hours ago #365769

-- HikaShop version -- : 5.1.3
-- Joomla version -- : 5.2.3
-- PHP version -- : 8.1.28

Hi
I just got this plugin and I have some questions about it.
1) In back-end, only the Super Users get notifyed? The question is if the Administrator get notified?
2) In front-end, only the Super Users and vendors?
3) Is not possible to remove the part with the "window.last_interaction", that way the plugin can run all the time based only on "Check frequency"?
Because this is the best part of this plugin, to let us know about new orders without keeping us on that tab.

I don't think I have any other questions now, I'll come back if others arise.
Thank you for your time!

Please Log in or Create an account to join the conversation.

  • Posts: 83303
  • Thank you received: 13466
  • MODERATOR
1 day 5 hours ago #365771

Hi,

1. Anyone with access to the backend will be notified.

2. Yes, only super admins and vendors will be notified on the frontend. And the vendors will only be notified of their orders.

3. The goal of window.last_interaction is that the mechanism starts working only once the user has interacted once with the page.
So even if you leave the page opened and use another tab, you'll get notified.
Note however that browsers slow down the javascript and the timeouts when the tab is not focused:
stackoverflow.com/a/20681583
So this means that even if you set a frequency of 2 seconds, the browser might dynamically change it to 30 seconds or 1 minute if you don't focus the tab. So you'll experience a delay with the notification, but you'll still be notified.
There is nothing we can do to avoid that. You just need to take it into account.

The following user(s) said Thank You: oxido

Please Log in or Create an account to join the conversation.

Time to create page: 0.052 seconds
Powered by Kunena Forum