d
Topic
Posts:
4
June 21, 2013

Editing Shopify Error Messages This post is outdated

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! 

i
Replies
Jason Shopify Expert freakdesign.com.au
Posts:
9249
Last edited June 21, 2013

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
Posts:
1
July 19, 2013

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 :)