Editing Shopify Error Messages

Highlighted
New Member
4 0 0

Hi. I am hoping someone can point me in the right direction as I am a bit stuck on this.

When someone tries to create an account on my site - but the email is already registered - the following error message appears. 

Email has already been taken and If you have already signed up, or placed an order on this store, you can set up or change your password here.

This seems to be a shopify standard error message - but the grammer isn't very good and it's not how I want to present the message. 

Can I change it? I have tried finding the template or code - also googling for a solution hasn't returned anything. 

 

Thanks in advance for any help! 

0 Likes
Shopify Expert
9965 84 1465

http://wiki.shopify.com/Contact_And_Signup_Forms#Success.3F_Error.3F

So perhaps something like this:

{% if form.errors %}
 {% for field in form.errors %}
   {% if form.errors.messages[field] contains "has already been taken" %}
      Show something else...
   {% endif %}
  {% endfor %}
{% endif %}

 

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
0 Likes
New Member
1 0 0

Hi Jason,

I have the same problem as Mark. I've tried your solution and it works... But now I have two messages displayed: the default one and the new one I've written. How can I hide the Shopify's error message?

Sorry if it's a very obvious question, but I'm learning on the way :)

0 Likes