I would like to make all fields required and show the same error message below each field when they are not filled in
Hi @BB_Tech
To make all fields required for customer registration and display the same error message, you’ll need to modify both the theme’s Liquid template and JavaScript code.
Locate the customers/register.liquid file, this file should contain the registration form.
Make sure that all input fields have the required attribute. For example: First Name
<input type=“text” id=“FirstName” name=“customer[first_name]” required>
Now, add a JavaScript code to show the same error message for all required fields. Add the following code to your theme’s theme.liquid file inside the <head> tag.
Make sure to replace #create-customer with the id attribute of your registration form if it’s different.
Hi @BB_Tech
Can you kindly share your store link (with the password, if any) with us? We will check it and suggest you a solution if possible.
Hello Okur that works pretty well but now it gets rid of the requirments for passwords and doesnt show the pop up message if the email is already used for an account. I sthere a way around this
Hi @BB_Tech ,
We do not know what your theme is and do not have access to modify it, so it is hard to give you a correct solution. But we have a recommendation for you:
The missing notification for customers who have registered by email in the registration form could be caused by the Javascript of the theme. Currently, if the email input exists, the page will immediately redirect to the login form., so you can find the JS code that does, set time out for this, and display the noti for customers.
We hope this can help you.
Hello could you help me with this, I can not find a solution anywhere and have looked all day. My shopify store url is https://biggers-market.myshopify.com/, and the theme is heavily edited debut
