Banner Logo

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

Duplicate order from api

WCMp Advanced Frontend Manager

Resolved
Viewing 13 reply threads
  • Author
    Posts
    • #115365
      trainingday
      Participant

      Hi,

      In another post, you said the fix where suborders are not part of api. I have DHL and Mailchimp installed and the suborders are being sent over causing duplicates. I do see on wcmp-order line #75 the hidden hook but it’s not working.

    • #115366
      trainingday
      Participant

      added image

    • #115438

      Hello,

      Thank you for reaching out to us.

      Can you please help me by explaining the issue that you are facing in details as we are unable to recreate the issue at our end.
      A video will be much appreciated.

    • #117730
      trainingday
      Participant
      This reply has been marked as private.
    • #117792

      Hello,

      If you put vendor id then you will get vendor order. You can refer to our Rest API doc https://wc-marketplace.github.io/rest-api-docs/#orders which support Rest API v2
      Now, if you remove vendor=[vendor_id] then you find woocommerce parent orders only.

    • #117811
      trainingday
      Participant

      Hello, I appreciate your response. The flow in getting orders through the API is I goto woocoommerce->setting and generate api keys. I then go to the shipping site and only input the API keys for woocommerce. So I do not understand how I can exclude vendor=[vendor_id]?

    • #117878

      Hi,
      Rest APIs are used by other plugins to display some other site data. So your site’s third-party plugins may also use rest API to display orders. If they run …wp-json/wc/v2/orders this rest API then they will not get any suborders on the list of site orders.

    • #117882
      trainingday
      Participant
      This reply has been marked as private.
    • #118005

      We have found the issue at our end and we will fix it in our next update.

    • #118020
      trainingday
      Participant

      I really appreciate that. Is there a temporary solution or code I can get from your github until the official update comes out? Also, I have made a lot of changes to the files that are not templates files so if I update the plugin those changes will be lost. Each time I try to add the code to functions.php It never works but when I edit it on the file level is fine. For instance Classes/class-wcmp-product,class-wcmp-vendor-dashboard.php.

    • #118090

      I will request you remove the previous plugin and install the updated plugin and check the same. So, after downloading the plugin from here – https://github.com/cool-raju/dc-woocommerce-multi-vendor/tree/fix/775, 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.

    • #118106

      @trainingday, we have added the fix, it will be released in our next update. You can download the plugin from here – https://github.com/cool-raju/dc-woocommerce-multi-vendor/archive/refs/heads/fix/775.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.

    • #118117
      trainingday
      Participant

      You all are so awesome! Also, I have made a lot of changes to the files that are not templates files so if I update the plugin those changes will be lost. Each time I try to add the code to functions.php It never works but when I edit it on the file level is fine. For instance Classes/class-wcmp-product,class-wcmp-vendor-dashboard.php. How do I app the custom script to the child function, please? thanks

    • #118154

      Hello,

      You can refer all the changes from this link https://github.com/wcmarketplace/dc-woocommerce-multi-vendor/pull/776/commits/95157fc7ce95bee8774f242f3746f4518d06376d

      Kindly let us know if you need any further assistance.

Viewing 13 reply threads

The topic ‘Duplicate order from api’ is closed to new replies.