Personalized checkout and custom promotions with Shopify Scripts
In my registration form I am using: {%- form 'create_customer', return_to: routes.cart_url -%}
This redirect to take the user to the cart page after registration. When you register for the first time it works fine. The problem I have is that when someone registers with an email that has already been used, it does not show me the error "This email has already been used", but rather it sends me to the cart page and the user does not register.
How can I validate that part so that the "This email has already been used" message is displayed before doing the redirection?
Also use this method
<input type="hidden" name="return_to" value="/cart"> and the same thing happens.
I appreciate your help
Hi @cferrufino ,
This is Theodore from PageFly - Shopify Page Builder App.
Here's the solution to prevent redirecting before validation in your Shopify registration form:
Use AJAX with Javascript:
Best regards,
Theodore | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024