Order Export omitting orders

WCMp Advanced Frontend Manager

Resolved
Viewing 14 reply threads
  • Author
    Posts
    • #134080
      redilson
      Participant

      Hello WCMP team,

      I came across an issue on the vendor frontend Order Download CSV function. If a vendor product has been Permanently Deleted from Woocommerce, those products are being omitted from the export. As a result, if an order a vendor had only had that 1 product, the orders aren’t included in the export.

      To recreate this, you’ll want to:

      1) Place a couple of orders with a product
      2) Permanently delete that product from Woocommerce
      3) Go back into Orders screen in the front end manager as a Vendor and export the Orders.

      You’ll see that any order that had that deleted product on it is either removed from the “Items bought” column of the Export, or, if that was the only item on the order, the export does not include the order.

      Thank you for looking into it.

    • #134081
      redilson
      Participant

      I also noticed that those same orders, with the permanently deleted products, do not display in the PDF Invoices plugin either for those same exact orders. Both the Order Export and Invoices/Packing Slips should be pulling from Woocommerce’s archived data so they display even if a product is deleted completely, which happens often for historical data.

    • #134161

      @redilson, thanks for reporting this issue.

      Our team will fix this in our next update. You can track this from here : https://github.com/wcmarketplace/dc-woocommerce-multi-vendor/issues/1043

    • #134425
      redilson
      Participant

      Thank you very much! As it’s tax season, this is fairly urgent for vendors to export their orders to get their taxes done.

    • #134445

      @redilson, I have consulted with the dev team, it might take us some time to implement this as we fetch the order details from the database. And we fetch the products are associated with the vendor id. So, as you have deleted the products, so they have also been removed from CSV.

      We will try to add a fix in our future update ASAP

    • #135183
      redilson
      Participant

      Hello WCMP team,

      Any time estimated on this? Businesses are in the middle of tax season and this is an issue. Thank you very much for your efforts.

    • #135230

      @redilson, we will try to work on this by next week, but we are not sure whether deleted products and well as orders can be restored via report.
      I will give you an update by next week.

    • #135353

      @redilson, I have discussed with my team.

      Orders are depended on the products, and the vendors are the owner of that product. Now if you delete a product then the owner of that product is also lost along with another attribute of the products. Thus the order is deleted too.

      So it is quite difficult to restore a vendor of a product that no longer exists. May I know why did you delete a product that was essential for your site?

    • #136272
      redilson
      Participant

      Hello and thank you for discussing this with your team! Products are deleted by vendors all the time. That’s normal activity you’d expect on a marketplace with many vendors. They won’t keep every single product listed if they no longer offer it. Especially if you limit the number of products they can have on the site.

      Woocommerce keeps record of the all products in order data, regardless if the product was deleted or not. The export in the WCMP Frontend should be able to pull that historical data from Woocommerce, so its an accurate export of sales for whatever time period. If you do a test order in Woocommerce and delete the product after, you’ll see in Woocommerce’s Order Export (through the Admin panel) that it still shows that order even though the product was deleted.

      Wouldn’t the sub order be connected to the vendor? I’d think you’d be able to just export data for all sub orders by vendor id within the time period selected?

    • #136273
      redilson
      Participant

      Attached is the sub order with a Deleted product. It has the data retained along with the Vendor for the sub order: Sold By.

    • #136275
      redilson
      Participant

      Without this fix, many users of WCMP will have inaccurate export data for the vendors to do their taxes if they got orders with products that have been deleted after the order took place.

    • #136348

      @redilson, our developer will get back to you on this by tomorrow.

    • #136374

      Redilson please update the plugin to the latest version and add this code in the function.php of the theme :

      add_filter('wcmp_order_export_if_product_exist', '__return_false');
      Copy
    • #136428
      redilson
      Participant

      Thanks! I’ll try to test it out soon.

    • #136438

      Sure

Viewing 14 reply threads

The topic ‘Order Export omitting orders’ is closed to new replies.