Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › New orders not showing up without refreshing the browser tab – 2
- This topic has 6 replies, 5 voices, and was last updated 3 years, 9 months ago by hengsopheakbest.
- AuthorPosts
- April 29, 2020 at 1:05 pm #124546kavindu.wickParticipant
on post #123831 I wrote to you guys about the following issue. But somehow, I got locked out of that post. And the reply is also not visible. I post it here, so someone will benefit from this, if they have a similar issue.
The issue
I run a multi-vendor marketplace for grocery shops.
when a customer places an order, the new order doesn’t show up on the orders tab automatically.
I waited for more than 40 minutes. But new orders doesn’t show up
New orders only show up if I refresh the browser tab. No new notifications too.
But if i refresh the browser tab, the new order and the notification shows up .
The admin dashboard and all vendor dashboards are facing this issue.
can anyone help me to figure out whats wrong?The reply I got
Hi,
Previously we used scheduled ajax calls (60 second interval) to check for any new activity (like new order, inquiry, etc) but it was reported to us by many users that their server is getting overloaded with such calls. Hence we disabled this feature by default from version 3.3.8. If you want that feature kindly use the following snippet-add_filter( 'wcfm_is_allow_desktop_notification', '__return_true' ); add_filter( 'wcfm_is_allow_new_message_check', '__return_true' );
You can also change the default 60 second interval by using the following code-
add_filter( 'wcfm_new_message_check_duration', function($time) { return 100000; // its in milisecond so 100000 = 100s } );
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/
Please note, this will only enable notifications without reloading. But to see the new orders you will still need to refresh the order page.
Let me know how this goes.
Thanks! - April 29, 2020 at 3:38 pm #124600Molay DasKeymaster
Thanks for letting it available for other users. Hope your issue is resolved.
- April 29, 2020 at 7:33 pm #124697djks74Participant
Ok, thats why I did not get notification also on our store manager 🙁
so adding:
add_filter( ‘wcfm_is_allow_desktop_notification’, ‘__return_true’ );
add_filter( ‘wcfm_is_allow_new_message_check’, ‘__return_true’ );should be enough ya?
- May 28, 2020 at 10:41 am #136071Molay DasKeymaster
Yes.
- May 29, 2020 at 2:19 am #136307Ramia KANLINSOUParticipant
Good evening. I made your changes with the code but I no longer receive the notification sound I received before your update. It’s so quiet. I wonder how you can help me.
I also wanted to know if there is the possibility of receiving notifications automatically on your mobile when you are connected to a mobile phone. Type allowed changes that appear in the phone notification bar. - May 29, 2020 at 10:24 am #136411Molay DasKeymaster
Hi,
I made your changes with the code but I no longer receive the notification sound I received before your update. It’s so quiet. I wonder how you can help me.
Sorry there is no code to increase sound in your system. Please check your system’s volume. 🙂I also wanted to know if there is the possibility of receiving notifications automatically on your mobile when you are connected to a mobile phone. Type allowed changes that appear in the phone notification bar.
You can use our “WCFM Store Manager” app to receive notifications in mobile and also have other functionalities available in it.
Details given here: https://wcfm.app/Thanks,
- June 29, 2020 at 11:12 pm #145074hengsopheakbestParticipant
Concern too
- AuthorPosts
- You must be logged in to reply to this topic.