Skip to content

How to use Login-Type "Auto" for Woocommerce? #324

Answered by svenniuwe
svenniuwe asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, and here is one way to even get rid of the click on the button.

Just place in the above mentioned "form-login.php" inside of your child template, after the do_shortcode from above the following code:

` <?php
echo "<script>

jQuery( window ).load(function() {

setTimeout(function() {
		 window.location.href = jQuery('.openid-connect-login-button').children('a').attr('href');
}, 2000);

});

  </script>";

?>

This just get's the URL from the button and redirects the User to it :)

`

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by svenniuwe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant