I’m trying to create a specific login modal on home page however when I enter wrong login details it gets redirected to default login page instead of staying on same page where modal is located.. How can I prevent this to happend? There is a way to redirect customers when they succesfull login with this line of code:
As long as you add a custom checkout_url field to your form, you can use the URL query to get back to your custom page AND display a ‘password error’ message there. Check the link above; it’s basically 2 steps to achieve it with a little javascript.