How to add confirm password field in Shopify registration page

Shopify helps you created a registration page for users to enter their information and create their account. The default registration page of Shopify has only a password field. As the contents of the password that the user is going to set are hidden, there are chances of mistakes. This can cause troubles for the user later if they try to login with the wrong password.

A confirm password field is a good idea to avoid this hassle. If you place a confirm password field in the registration page, users will not make any mistake while setting the password as both fields should match.

In this article, I tell you a code below that you can add to your design and that will add a confirm password field below the password field in Shopify registration page. This will compare the two fields, i.e. the first password entry and the confirm password entry, and will proceed with the remaining registration process if both match. Use this code and save the users from making any mistakes while setting the password.

  1. From your Shopify admin, to to Online Store > Theme.
  2. Find the theme you want to edit and then click Action > Edit code.
  3. In the Templates section, click customers/register.liquid to open the file in the online code editor.
  4. In the online code editor of register page, you add a new field
  5. Add the javascript code to the end of the file.
  6. Click Save and you are done.

Attention: Load the jQuery library before this code.

DEMO

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *