• Hello Team – I have a question: I need to change the status of a given order via URL. Is it possible to append to OrderID to the “?alg_wc_order_status_rules_process_rules” URL? If not, any workaround?

    Thank you in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @mikg,

    Thanks for reaching out I hope you are well today.

    Regarding the issue, I have escalated this with our development team. They will get back to you as soon as possible.

    Kind regards.

    Plugin Author Algoritmika

    (@algoritmika)

    Hi, @mikg,

    Please add this PHP snippet to your site:

    add_filter( 'alg_wc_order_status_rules_wc_get_orders_args', function ( $args ) {
        if ( isset(
            $_GET['alg_wc_order_status_rules_process_rules'],
            $_GET['my_order_id']
        ) ) {
            $args['post__in'] = array( intval( $_GET['my_order_id'] ) );
        }
        return $args;
    } );

    Then you can use my_order_id in the URL, e.g.:

    https://example.com/?alg_wc_order_status_rules_process_rules&my_order_id=59495

    Please give it a try and let me know what you think.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘OrderID Trigger’ is closed to new replies.