• Resolved perties

    (@perties)


    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)
  • Hello @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

    (@perties)

    Hi, do you have any update?

    Plugin Author Algoritmika

    (@algoritmika)

    Hi @perties,

    We are still working on it, sorry about that. The release should be ready in the next couple of days.

    Plugin Author Algoritmika

    (@algoritmika)

    Hi, @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

    (@perties)

    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

    (@perties)

    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.