checkout login form
-
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
- The topic ‘checkout login form’ is closed to new replies.