• Resolved ambrosio992

    (@ambrosio992)


    Hello,

    I am using your block in checkout page and when customer (already registered) get access to login page (through direct link beside first step title) arrive to wordpress login page.

    I’d like to re-direct that link to an already created login page with link “web.com/my-account/”.

    I am using the following filters:

    add_filter( ‘register_url’, ‘my_register_url’ );
    function my_register_url( $url ) {
    if( is_admin() ) {
    return $url;
    }
    return “https://www.web.com/my-account/ “;
    }
    add_filter( ‘login_url’, ‘my_login_url’, 10, 2 );
    function my_login_url( $url, $redirect=null ) {
    if( is_admin() ) {
    return $url;
    }
    $r = “”;
    if( $redirect ) {
    $r = “?redirect_to=”.esc_attr($redirect);
    }
    return “https://www.web.com/my-account/ “.$r;
    }

    It works BUT AFTER LOGIN, IT DOES NOT REDIRECT TO “finalize purchase”,
    any idea what could happen or any alternative code?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Denys Zaikin

    (@zdenys)

    Hi there @ambrosio992!

    any idea what could happen or any alternative code?

    This is a fairly complex development topic and falls outside of scope of our support since it involves code snippets. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    I hope that’s helpful.

    Cheers!

    Joey – a11n

    (@jricketts4)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    – Joey

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