Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › New orders not showing up without refreshing the browser tab
- This topic has 1 reply, 2 voices, and was last updated 4 years, 7 months ago by Sushobhan.
- AuthorPosts
- April 27, 2020 at 10:59 pm #123831kavindu.wickParticipant
Hey guys,
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? - April 28, 2020 at 2:45 pm #124137SushobhanKeymaster
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!
- AuthorPosts
- You must be logged in to reply to this topic.