Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

Filter the orders with the sub-order number

General Marketplace Discussion (User’s interaction forum)

Resolved
Viewing 30 reply threads
  • Author
    Posts
    • #124362
      kevajo
      Participant

      When we filter the sub-command number in the commands it does not display any results.
      Not against when it is the main order number the result is displayed in the order searches.
      This poses a huge problem for us because the sellers send us their order number which is the sub-order number and we cannot find a solution. *
      Please allow things to be the same as before, ie we can filter the main order number as well as filter the sub-order number.
      Vidéo link : https://www.loom.com/share/cece948558e947c785b6bd1a7189776c

    • #124419

      Hi @Kevajo , thanks for connecting to us .
      I am sorry but we don’t have the feature to filter by sub-order number.
      But not to worry , you can do it by adding custom code. If you have any developers, ask them to contact us so we can help you out with the coding procedure.
      Alternatively, you may hire our service team (https://multivendorx.com/custom-development/) so they can add this feature in your site.

    • #124420
      kevajo
      Participant

      Since the update, also we are not able to also filter the orders with the name of the seller as the sub-order number.
      Please check this out.

    • #124421
      kevajo
      Participant

      This problem has arisen since updating your plugin.
      Because on our second site the plugin is not updated and all the filters work correctly.

    • #124423
      kevajo
      Participant

      This problem has arisen since updating your plugin.
      Because on our second site the plugin is not updated and all the filters work correctly.
      I am reverting to version 3.7.5 and everything is working fine.
      Check that out.

      NB: I think I am helping you a lot because most of your mistakes were not found by me.

    • #124426

      Hi @Kevajo , we don’t have the feature to search by sub order ID , As you can see in this video , we are using old version of WCMP but can not filter by sub order ID.
      https://www.awesomescreenshot.com/video/4398793?key=e3abf863bd19d94bbabab539a3f40d8a

    • #124726
      kevajo
      Participant

      This is due to your update.
      When I go to update the plugin we can no longer search for a sub-order or the name of a customer.
      Also several of our salespeople have difficulty connecting

    • #124762

      Yes Kevajo, there was an issue. ​For now, we have also added a fix in our GitHub.
      So, after downloading the plugin from here – https://github.com/cool-raju/dc-woocommerce-multi-vendor/archive/refs/heads/fix/901.zip, follow these steps :
      – Delete the installed WC Marketplace via wp-admin >> plugin
      – Unzip the GitHub plugin
      – Rename the folder as “dc-woocommerce-multi-vendor” and remove the master tag. Now, zip this folder again.
      – Install this plugin on your site.
      Please do keep us posted.

    • #124794
      kevajo
      Participant

      I added the filter with the name works but the subcommand does not pass.

    • #124829

      hi
      Please do create a staging site and share a temporary admin, ftp access to that site. Our team will check this on your end.
      While sharing the access, don’t forget to mark the response as private.

    • #124830

      hi
      Please do create a staging site and share a temporary admin, ftp access to that site. Our team will check this on your end.
      While sharing the access, don’t forget to mark the response as private.

    • #124833
      kevajo
      Participant
      This reply has been marked as private.
    • #124854
      This reply has been marked as private.
    • #124860
      kevajo
      Participant
      This reply has been marked as private.
    • #124910
      This reply has been marked as private.
    • #124945
      kevajo
      Participant
      This reply has been marked as private.
    • #125053
      kevajo
      Participant

      need update on this topic

    • #125113
      kevajo
      Participant

      okay

    • #125257
      kevajo
      Participant

      need update on this topic okay

    • #125307

      @kevajo, thanks for your co-operation.
      Our team will check and get back to you by today.

    • #125324

      Hi,
      For now, use this code in your currently active theme functions.php file to fix this issue. We will fix this in our next update

      add_action('init', function() {
          global $WCMp;
          remove_filter('request', array($WCMp->order, 'wc_order_list_filter'), 10, 1);
          add_filter('request', 'wc_order_list_filter_modified', 10, 1);
      });
      function wc_order_list_filter_modified($query) {
          global $typenow;
          $user = wp_get_current_user();
          if ('shop_order' == $typenow) {
              if (current_user_can('administrator') && empty($_REQUEST['s'])) {
                  $query['post_parent'] = 0;
              } elseif(current_user_can('shop_manager') && empty($_REQUEST['s'])) {
                  $query['post_parent'] = 0;
              } elseif(in_array('dc_vendor', $user->roles)){
                  $query['author'] = $user->ID;
              }
              return apply_filters("wcmp_shop_order_query_request", $query);
          }
      
          return $query;
      }
      Copy
    • #125327
      kevajo
      Participant

      its okay good

    • #125378

      Thanks for the update Kevajo 🙂

    • #125927
      MaxenceTP
      Participant

      Hello,

      I have seen that this bug has been fixed in the last version however it was fine for me. Is it possible to have the piece of code to put in my theme so that the sub-orders are not displayed in the search results?

      Thanks 🙂

    • #125966

      Hi,
      Which search do you mean??? Can you please explain?
      Thanks

    • #125968
      MaxenceTP
      Participant

      Here is a screenshot : https://prnt.sc/1jj0vbc
      I hope you’ll understand with that :p

    • #125994

      @MaxenceTP, thanks for the explanation.

      The code to revert this change requires huge custom code, hence sharing snippets won’t be possible. It requires you to use the woocommerce hook/filter to remove the codes for this support.

      If you can do the ode our end, then our team can share the coding procedure with you.

    • #126015
      MaxenceTP
      Participant

      I’m interested to have more information about the custom code this thing require 🙂
      Or maybe you can make an option in WCMp to display or not the suborders in Woocommerce results ?

    • #126076

      Hi,
      Please add this code in the function.php of the current active theme :

      add_filter("wcmp_shop_order_query_request", 'wcmp_order_table_remove_suborders');
      function wcmp_order_table_remove_suborders($query){
          $query['post_parent'] = 0;
          return $query;
      }
      Copy

      Regards,

    • #126125
      MaxenceTP
      Participant

      Thanks! It works

    • #126127

      Thanks for the update @MaxenceTP

Viewing 30 reply threads

The topic ‘Filter the orders with the sub-order number’ is closed to new replies.