Sub-order refund flow issue

WCMp Core

Sub-order refund flow issue Resolved

Tagged: 

Viewing 37 reply threads
  • Author
    Posts
    • #78636
      Codrin1
      Participant

      Hello,

      I’ve done some testing in regards to sub-order refunds and have discovered an issue:

      If a vendor makes a refund (partial or full) this does not show up in the Parent Order, just in the Sub-order for the customer. Since customers can buy from multiple vendors in one order they are more likely to look at the Parent Order and not check every sub-order, so it’s very important that the Parent Order to take the actions of the sub-orders. For example, if in the parent order it shows that you bought 1 pair of shoes but in the sub-order the pair of shoes is refunded – it’s very confusing and it doesn’t make any sense for the customer. The customer expects to see the Parent Order as the main place where he checks the products, status of the order and what he has paid, so it would be normal to see any refunds there also. Also, in the Table from Order page under Totals there is no sign of the refund being given even if the vendor made the refund. As I said, refunds made by the vendors are only visible in the sub-order for the customer.

      Can you please have a look at this and let me know what can it be done?

      Thank you very much,

    • #78675
      MOUMITA Haldar
      Participant

      Hi Codrin1, thanks again for reaching WCMp support.

      After hearing from you, we have checked this on our end.

      As you can see in the below video, we did not face any such issue, https://www.loom.com/share/f2b6478775b342bb926b966a895e05d2

      If the order has only one vendor’s product associated with it, then on changing the sub order status from the vendor’s dashboard, the parent order status also changes to “refund” automatically.

      However, if a customer buys products from multiple vendors, processess refunds for only one particular vendor’s product the parent order status does not change to “refunded”, since it will create confusion to the customer that the whole order is cancelled, which is actually not so. However, the customer receives an email regarding the refund.

      Let us know if you have any further query.

    • #78728
      Codrin1
      Participant

      Thanks for getting back to me.

      Sorry I didn’t explain this properly. I’ll explain the flow again using print screens. I wasn’t saying about the order status that is working as it should, I was talking about what happens after a vendor makes a refund (through the vendor dashboard -orders page) and what does the customer see in the Orders page.

      Vendor flow:
      Let’s say that a vendor wants to offer a refund to a customer. So he goes to Orders- finds the Order – Order page. Then he clicks on the Refund button and makes the refund. The page that he is seeing next is this: https://prnt.sc/pu7z0r . (This print screen is with 2 refunds, but it’s the same even if he offers 1 refund). Everything is fine here, the status is working well and the refund button triggers the refund amount as it should.

      Customer flow after refund:
      So, the vendor made a refund for order #24882 and that should be reflected in the parent order (in products refunded and totals) as well but there are no changes at all in the parent order #24880. As it happens from parent to suborder, if a parent order is changed (by the admin) that’s reflected in suborder as well. See the green highlight in the print screen https://prnt.sc/pu8166

      Again, I’m not talking about the Status of the Parent Order, as this shows as Processing as it should. But the refund should be visible like in the green highlighted area with the price cut next to the amount £29.50 – £21.50. As you can see in the red highlight the refund doesn’t show up as it should’ve been.

      So then the customer, will click on the parent order number to see the refunded amount. But again, the refund is not shown in the parent order as it should (https://prnt.sc/pu86qd). As you can see from the print screen the parent order still shows the total amount paid for the order even if some products will not be sent as he got the refund for them. What it should’ve been is that the products refunded to show the amount that has been refunded (the quantity of the products refunded is reduced + Refund section under ‘Payment method’ appears with the refund amount + ‘Total’ section has the amount changed) so the customer knows what products are not sent to him anymore.

      With the current flow, the only way for the customer to see the refund is to look through the suborders and find the one with the refund. And then, the refund is shown there (see print screen with the refunded suborder https://prnt.sc/pu85da). That should be the same in the parent order for the products that have been refunded.

      Basically what I’m saying is the the parent order should reflect the refund action of the suborders. As I mentioned in the previous post, if a customer buys from multiple vendors in the same order (as it is the case in this example) but the Vendor C gives him a refund for one of the items the customer doesn’t see this in the parent order when he checks there. So the parent order shows the total amount paid and the products, even if technically one of the products that is refunded is not coming to him anymore.

      Looking forward to hearing from you about this matter

    • #78923

      @Codrin1, thanks for taking your time and explaining this to us.

      I have forwarded this to our team. They will take further decisions on this. I will keep you posted.

    • #79356
      Codrin1
      Participant

      Hi @moumita,

      Thanks for getting back to me. I’m looking forward to receiving updates on this issue as it is crucial for customers to see exactly what products are refunded.

      Thanks!

    • #79405
      MOUMITA Haldar
      Participant
      This reply has been marked as private.
    • #80469
      Angelo Magrone
      Participant

      Hi @moumita, @sumit-singh and @rajsekharchatterjee11

      This is a great problem!

      Please add this bug “Suborder items/shipping cost refunded not reflecting in parent order” in Github with max priority.

    • #81344
      Codrin1
      Participant

      Hi all,

      Please could you offer an update in regards to this issue?

      Thanks,

    • #81345

      @Codrin1, @Angelo Magrone we are working on this issue.

      When I will have a update will let you know.

    • #85387
      Codrin1
      Participant

      Hi @Moumita, please could you let me know if you have a solution to this problem?

      Looking forward to hearing back from you

    • #85388
      Codrin1
      Participant

      Also, I’ve been trying to post a new topic on the forum but for some reason my query is marked as Suspicious/ Spam and is not sending. Would you mind checking what is going on please?

      Thanks,

    • #85434

      @Codrin1, currently there is no synchronisation between parent order and suborder, once the order is placed. So, in order add this refund flow, we have to create a new module that will create a connection between parent and suborder. That is why it is taking some time.

      Once this module will be ready, I will let you know. As this is a big module, so please do provide us some time.

    • #85435

      @Codrin1, can I reset the password so I can check the issue.

      Also, can you share what were you posting, so I can try to do the same. (you may also send a screenshot)

    • #85527
      Codrin1
      Participant

      Hi @Moumita, thanks for getting back to me. I understand, please keep me posted in regards to the module you’ve mentioned.

      I’ve typed up the issue that I wanted to mention in here, in relation to the Orders page, but it doesn’t send at all. I have no idea why it doesn’t let me post it. The filter from vendor dashboard – orders page doesn’t work for me. If the vendor wants to filter ‘completed’ orders it says ‘no orders found’ and the same problem for ‘processing’ orders too.

      Also, I can only see the following statuses ‘all’, ‘processing’ and ‘completed’ – please help me to add ‘cancelled’ and ‘refunded’ too?
      Thanks,

    • #85627

      @Codrin1, can you share a screenshot We have checked this on our end, did not face any such issues.
      https://www.loom.com/share/9792ba39b8bf41dfabd3e15e09a90cc5

      Now, as you are facing these issues, can you please deactivate all plugins (for testing purpose) except WooCommerce and WCMp and then check.
      If the issue still persists, kindly switch to some default theme, like twenty sixteen and then check.

      Please help us with the result, so that we may assist you accordingly.

      Regarding the forum, please do send me a screenshot of the content you wanted to post, so we can try to redo the same.

    • #85678
      Codrin1
      Participant

      Hi @Moumita,

      I’ve done as you suggested and it seems to be a conflict with the theme. Do you have any idea how to fix this problem?

      Appreciate your help with this,

    • #85770

      @Codrin1, can you share a temporary admin, vendor and ftp access so we can check.

      While sharing the access, don’t forget to mark the response as private.

    • #85845
      Codrin1
      Participant
      This reply has been marked as private.
    • #85949
      This reply has been marked as private.
    • #85985
      Codrin1
      Participant

      Hi @Moumita,

      I’ve just had a look and unfortunately the code doesn’t seem to work. The filter in the Orders page is still not working & the only order statuses that appear are ‘ALL’, ‘Processing’ and ‘Completed’ – I would like to add ‘Cancelled’ and ‘Refunded’ too.

      https://prnt.sc/qbiqw7

      Also, I’ve noticed that some strings have disappeared from Loco Translate I’ve tried to ‘Sync’ them but I can’t find them anymore. These were from ‘Add product’ page. Do you have any idea what could have caused this?

      Thanks a lot,

    • #86059

      @Codrin1, it seems like the error is coming from the child theme. Have you added any code related to order sort there?

    • #86139
      Codrin1
      Participant

      Hello,

      For testing purposes, I’ve removed all the codes that I had in functions.php and the code you have provided did not work.
      The only code that I have that I thought might interfere is the one below. However, as I said I’ve removed all of them and the issue was still there. Is there anything else we can do to fix this please?

      /*** Vendor to see only orders with the following statuses in Orders-Vendor dashboard: processing, completed, cancelled, refunded ****/
      add_filter('wcmp_datatable_get_vendor_all_orders', 'order_status',10,3);
      function order_status($args, $requestData, $post_data){
         $get_value_status = array();
         foreach ($args as $key => $value) {
             $order = wc_get_order($value);
             $details = $order->get_status();
             if($details == 'processing' || $details == 'cancelled' || $details == 'completed' || $details == 'shipped' || $details == 'undelivered' || $details == 'refunded'){
                 $get_value_status[] = $value;
             }
         }
         return $get_value_status;
      }
      
      Copy
    • #86245

      Hi, may I know how did you remove another order status: http://tinyurl.com/rkq7gly

      Because we tested the code you have shared on our end, we didn’t face any issue.

    • #86279
      Codrin1
      Participant

      Hi @Moumita, regarding your question I haven’t removed any order statuses, the field in your print screen was always like that only with 2 statuses: Completed and Processing and I don’t remember it to ever worked. I removed all the plugins and codes and it didn’t fix the issue -it is a theme conflict. It seems that the woocommerce statuses are not linked with those ones.

      I’ve looked into the theme demo itself and it seems to work there too which makes it even more strange. When testing, I didn’t have any orders in the Orders page to filter them but all the order statuses were visible in that field.

      Is there anything else you suggest I do to fix these problems?

      Regards,

    • #86336

      Hi @Codrin1, we presume this issue is related to child theme only.

      Have you tried testing the flow with parent theme?

    • #86405
      Codrin1
      Participant

      @Moumita, indeed you’re correct I’ve tried with the parent theme and all the order statuses appear and the filter is working. It seems that the issue is coming from the child theme, what do you think the problem is and how can I go about to fix this?

      Thank you for your help,

    • #86429

      @Codrin1, it might happen that the child theme was not created properly.

      So, please do create another child theme and check the dashboard page again.

    • #86681
      Codrin1
      Participant

      Hi @Moumita, I’ve managed to solve the issue with the filter on the Orders Page it was a faulty template that was causing the problem.

      I’m now able to see all the order statuses https://prnt.sc/qeov7b however, I would like to hide these ones from view: “Out for delivery”, “Failed”, “Pending payment”, “On hold”. Please could you help me out to do this?

      Regards,

    • #86714
      sumit singh
      Moderator

      Hi, i have added the following code in functions.php of your current theme to hide the “Out for delivery”, “Failed”, “Pending payment”, “On hold” from vendor dashboard orders.

      add_filter('wcmp_vendor_dashboard_order_filter_status_arr', 'remove_order_statuses');
      function remove_order_statuses($statuses) {
        unset($statuses['wc-on-hold']);
        unset($statuses['wc-pending']);
        unset($statuses['wc-failed']);
        unset($statuses['wc-shipped']);
        return $statuses;
      }
      Copy

      /* hide orders with status “Out for delivery”, “Failed”, “Pending payment”, “On hold” */

      add_filter('wcmp_datatable_get_vendor_all_orders', 'remove_order_statuses_row');
      function remove_order_statuses_row( $order_ids ) {
        foreach( $order_ids as $order_id ) {
          $order = wc_get_order( $order_id );
          if( $order->get_status() == 'on-hold' || $order->get_status() == 'pending' || $order->get_status() == 'failed' || $order->get_status() == 'shipped' ) {
            $vendor_order[] = $order_id;
          } else {
            $vendor_orders[] = $order_id;
          }
        }
        return $vendor_orders;
      }
      Copy
    • #87847
      Codrin1
      Participant

      Hi @Moumita,

      Thanks for getting back to me. I’ve updated the plugin and don’t see the fix. I’ve tested the issue by processing a refund as a vendor. So, for example the vendor processed a full refund, the customer does not see this by looking in the Orders Page in the Parent Order. The refund is not visible there, the process seems to be the same as before with the customer needing to look in the suborder to see anything about refunds.

      Thanks,

    • #87939

      @Codrin1, in the last update we have added the refunded shipping cost in the main order : https://prnt.sc/qm5m2f

      However, we are yet to work on this issue: https://github.com/wcmarketplace/dc-woocommerce-multi-vendor/issues/163

    • #88092
      Codrin1
      Participant

      Hi there @Moumita,

      My post is not about the admin’s backend order section that you’ve mentioned here https://github.com/wcmarketplace/dc-woocommerce-multi-vendor/issues/163, hope you realise that. I am talking about the customer’s perspective in regards to refunds (please read my first messages in this thread again). A month ago you’ve said that you are working on implementing the flow that myself and another user Angelo Magrone has mentioned, but it doesn’t seem that you are. I find it strange that when customers receive refunds they have to check to suborder to see this and not the parent order as this is the most important place where customers will look for information about the order they have placed.

      Please let me know what is happening in relation to this

      Regards,

    • #88526

      @Codrin1, our team is looking into this.

      I will keep you posted.

    • #89299
      Codrin1
      Participant

      Hi there, wondering if you have any news in regards to this issue?

      Thanks

    • #89528

      @Codrin1, we are still working on this.

      Currently, we are working on some other modules, hence this delay. I will send this request again to the dev team, so the feature can be added soon.

    • #91774
      Codrin1
      Participant

      Hi @Moumita,

      Is there any news in regards to the issue mentioned in this thread?

      When customers receive refunds they should be able to see this in the Orders page / parent order

      Thanks,

    • #85528
      Codrin1
      Participant

      Please see screen shots with the issue. This is how the Orders page filter shows up for me https://prnt.sc/q987w9 with only these statuses. On WCMP Demo there are the others ones I mentioned as well: https://prnt.sc/q987h7

      When the vendor tries to filter the orders it says ‘no orders found’ https://prnt.sc/q98878

      Thanks,

    • #101109

      @Codrin1, from WCMp 3.5, we have added this refund flow in our plugin.

Viewing 37 reply threads

The topic ‘Sub-order refund flow issue’ is closed to new replies.

Buy any WCMp product at 20% discount, use code "FREEDOM20" or, buy bundle at a slashed price

Buy at Slashed Price