Title: Missing feauture
Last modified: November 1, 2022

---

# Missing feauture

 *  Resolved [perties](https://wordpress.org/support/users/perties/)
 * (@perties)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/missing-feauture/)
 * The reason I was looking for a plugin like this was that it happens sometimes
   that a payment by credit card failed and the user did not continue in purchase.
   In that case we manually change the the order status to Waiting for payment AND
   ALSO change the payment method to Account deposit. This is not supported by your
   plugin. I am pretty sure that this feature would be useful for others.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Moshtafizur](https://wordpress.org/support/users/moshtafizur01/)
 * (@moshtafizur01)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/missing-feauture/#post-16156670)
 * Hello [@perties](https://wordpress.org/support/users/perties/),
 * I hope you are well today.
 * I have passed your request on to the development team. They will check the viability
   of this and get back to you as soon as they can.
 * Kind regards,
    Moshtafizur
 *  Thread Starter [perties](https://wordpress.org/support/users/perties/)
 * (@perties)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/missing-feauture/#post-16201130)
 * Hi, do you have any update?
 *  Plugin Author [Algoritmika](https://wordpress.org/support/users/algoritmika/)
 * (@algoritmika)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/missing-feauture/#post-16206719)
 * Hi [@perties](https://wordpress.org/support/users/perties/),
 * We are still working on it, sorry about that. The release should be ready in 
   the next couple of days.
 *  Plugin Author [Algoritmika](https://wordpress.org/support/users/algoritmika/)
 * (@algoritmika)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/missing-feauture/#post-16209498)
 * Hi, [@perties](https://wordpress.org/support/users/perties/),
 * We’ve decided to make a quick release for you. Please update the plugin to the
   latest v2.9.2 (released just a few minutes ago). Then you can achieve what you
   need with this PHP snippet:
 *     ```
       add_action( 'alg_wc_order_status_rules_after_rule_applied', function ( $order, $rule_id ) {
           $order->set_payment_method( 'cheque' );
           $order->set_payment_method_title( 'Check payments' );
           $order->save();
       }, 10, 2 );
       ```
   
 * You need to replace `cheque` and `Check payments` with the appropriate values.
   You can check your “Account deposit” ID by going to “WooCommerce > Settings >
   Payments” and clicking on your method. Then you should be able to get the method’s
   ID from the URL, e.g.: /wp-admin/admin.php?page=wc-settings&tab=checkout&section
   =**cheque**
 * And the last note – you can also use the `alg_wc_order_status_rules_before_rule_applied`
   action instead of the `alg_wc_order_status_rules_after_rule_applied`. I.e., change
   the payment gateway right _before_ changing the status instead of right _after_
   changing the status.
 * Please let me know what you think.
 *  Thread Starter [perties](https://wordpress.org/support/users/perties/)
 * (@perties)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/missing-feauture/#post-16213344)
 * Hi, thank you very much. I was out of town and just returned tonight. I will 
   test it tomorrow and let you know.
 *  Thread Starter [perties](https://wordpress.org/support/users/perties/)
 * (@perties)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/missing-feauture/#post-16213560)
 * Hi, it looks like it is working. Will you update the next release with the snippet?

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Missing feauture’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/order-status-rules-for-woocommerce_c1eef7.
   svg)
 * [Scheduled & Automatic Order Status Controller for WooCommerce](https://wordpress.org/plugins/order-status-rules-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/order-status-rules-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/order-status-rules-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/order-status-rules-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/order-status-rules-for-woocommerce/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [perties](https://wordpress.org/support/users/perties/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/missing-feauture/#post-16213560)
 * Status: resolved