Banner Logo

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

Issues with refunding orders

WCMp Core

Open
Viewing 15 reply threads
  • Author
    Posts
    • #117260
      Beats24-7
      Participant

      Hey there,
      I had two issues with refunding orders lately. I also tested this on a staging site with only WooCommerce and WCMp. Please let me know if you’re able to recreate this.

      1. An order that has been marked as hold due to a Stripe review operation is marked as completed as soon as you refund the payment in Stripe. This should not happen as it sends out a complete order e-mail to the customer although the order has been refunded. After a manual refund in Stripe the order should be set to refunded or don’t do anything at all so we can set it to refunded manually. See here: http://www.prnt.sc/10hd5dl

    • #117261
      Beats24-7
      Participant
      This reply has been marked as private.
    • #117322

      Hi @Beats24-7, our replies are inline :

      1. An order that has been marked as hold due to a Stripe review operation is marked as completed as soon as you refund the payment in Stripe. This should not happen as it sends out a complete order e-mail to the customer although the order has been refunded. After a manual refund in Stripe the order should be set to refunded or don’t do anything at all so we can set it to refunded manually. See here: http://www.prnt.sc/10hd5dl

      >> Are you using WooCommerce Stripe plugin or WCMp Stripe Marketplace plugin?
      =============================================================================

      2. Refunding a parent order does not set sub orders as refunded as well. They remain completed. Is this a wanted behaviour because your plugin cannot recognize if the complete payment has been refunded and if all or just a part of the sub orders need to be marked as refunded? Or is this a bug? Let me know. See here: http://www.dropbox.com/s/iuzla5f92eocmgi/Sub%20orders%20get%20completed%20when%20parent%20order%20refunded.avi?dl=0

      >> A parent order may have orders from many vendors, hence main can have many suborders. So, if you change the status of the main order, that doesn’t mean that status applies to other vendor’s orders too.

      However, you can change the status of the sub order, if the parent order is changed too, by adding a custom code. This link will help you out further: https://multivendorx.com/support-forum/topic/suborders-not-completing/#post-104440

    • #117331
      Beats24-7
      Participant

      Hi Moumita,
      1. I am using the WooCommerce Stripe plugin.

      2. Ok, I understand that. However, I asked that question a couple of months ago already but I didn’t get any reply. The link you sent does not provide code for refunding orders automatically and this one I changed it to doesn’t work:

      
      //Auto complete sub orders to refunded
      add_action( 'woocommerce_order_status_refunded', 'wcmp_suborder_status_change_to_refund' ); 
         function wcmp_suborder_status_change_to_refund( $order_id ) { 
          global $WCMp;  
          $suborder_details = get_wcmp_suborders( $order_id );  
          foreach ( $suborder_details as $key => $value ) { 
              $suborder_fetch = array('ID' => $value->get_id(),'post_status'=> 'wc-refunded',);    
          wp_update_post( $suborder_fetch );  } 
      }  
      
      Copy

      Thanks again

    • #117360

      Hello,

      By default flow, in WCMp money is refunded manually. However we do have a plan to introduce automatic refund using stripe gateway in our future enhancement.

    • #117364
      Beats24-7
      Participant

      Hello,
      sure, but that was not my question…? Why did it change the “on hold” order to “completed” automatically after it has been refunded manually in Stripe? This has to be a bug. Please read my post properly and check this.

      Furthermore, what about the custom code? It’s not working so please don’t simply ignore this again…
      Thanks

    • #117375

      As we can understand, Stripe is manually reviewing that order and has sent you the order status as complete.
      Please note, this whole flow is getting carried out by Stripe plugin and WooCommerce. WCMp is not controlling any of this.

      I would request you to contact WooCommerce Stripe plugin author, they will be able to help you out better. Please do keep us posted.

    • #117382
      Beats24-7
      Participant

      Ok, thanks for the clarification on the first part. I will ask them.

      However, this is the third time you are ignoring my question about the custom code for auto refunding sub orders.

      Why?

    • #117452

      @Beats24-7, can you please share the flow you need for this i.e. how should auto refund work, so we can help you out.

    • #117670
      Beats24-7
      Participant

      Hey @Moumimta,
      sure. I never refund orders partially, only the complete order/payment. So when I refund a parent order all linked sub orders should be set to refunded as well, if possible. Thanks

    • #117713

      Thank you for sharing the details. We do have a plan to introduce this flow in our feature update.

    • #117722
      Beats24-7
      Participant

      Ok, thanks. Is there a github post to track the progress? Thanks again.

    • #117739

      Sorry we do not have any github link at the moment as it is in our future enhancement list.

    • #117794
    • #117814
      Beats24-7
      Participant

      Ok, thank you very much.

    • #117830

      We will keep you posted.

Viewing 15 reply threads

The forum ‘WCMp Core’ is closed to new topics and replies.