Forum Replies Created
-
AuthorPosts
-
Beats24-7
ParticipantOk, thank you very much.
Beats24-7
ParticipantOk, thanks. Is there a github post to track the progress? Thanks again.
Beats24-7
ParticipantHey @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. ThanksBeats24-7
ParticipantOk, 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?
Beats24-7
ParticipantHello,
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…
ThanksBeats24-7
ParticipantHi 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 ); } }Thanks again
Beats24-7
ParticipantThis reply has been marked as private. -
AuthorPosts
