Commissions view default date

WCMp Advanced Frontend Manager

Resolved
Viewing 6 reply threads
  • Author
    Posts
    • #190232
      redilson
      Participant

      Hi,

      Is there a way to default the commissions page to show all commissions instead of having to enter in a date range? Having to go and select a date range every time to see commissions is cumbersome (the date picker is kind of buggy sometimes). It makes me miss the WCMP commissions view where they all display like normal posts without a date range applied. Thanks for the help.

    • #190239

      Hi @redilson, the dev team will check and get back to you.
      Kindly provide them some time.

    • #190306

      Hi,
      first of all, update your MultiVendorX plugin from GitHub

      https://github.com/multivendorx/MultiVendorX
      Copy

      .
      then use the below code in your currently active theme functins.php file

      add_filter('mvx_commission_list_args', function($args) {
          unset($args['date_query']);
          return $args;
      });
      Copy
    • #190321

      Hi @redilson, we will add this in our next update.

    • #190335
      redilson
      Participant

      This worked. Thank you! Do I need to remove the code in my functions.php file once you release the update?

    • #190346

      Hi,
      You have to keep this code in your funtions.php file. Because this is your custom requirement, we can’t add this to our core plugin.
      Thanks

    • #193349

      Hi, we haven’t heard back from you for a while. So, we presume this issue is resolved. So, we are closing this thread, if you need any further help, please open another thread.

Viewing 6 reply threads

The topic ‘Commissions view default date’ is closed to new replies.