New orders not showing up without refreshing the browser tab

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Ultimate New orders not showing up without refreshing the browser tab

Viewing 1 reply thread
  • Author
    Posts
    • #123831
      kavindu.wick
      Participant

      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?

    • #124137
      Sushobhan
      Keymaster

      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!

Viewing 1 reply thread
  • You must be logged in to reply to this topic.