Viewing 2 replies - 1 through 2 (of 2 total)
  • You have found a solution for this?

    Had a problem with the redirection in WC2.2. class-wc-custom_payment_gateway_x.php should look like this to have even the cart redirection.

    // Remove cart
    //$woocommerce->cart->empty_cart();
    WC()->cart->empty_cart();

    // Return thankyou redirect
    return array(
    ‘result’ => ‘success’,
    ‘redirect’ => $this->get_return_url( $order )
    );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to rirect to Thank You page after order’ is closed to new replies.