Adding a clickable URL in email confirmation

11 0 1

Hi there!

I've been trying to add a URL in the order confirmation email but the links remain unclickable when sent in the email. Is there a way to make the URL work and redirect properly? 



here is the code i added: 

{% if fulfillment.item_count == item_count %} 
  {% capture email_title %}Your new ootd is on the way! {% endcapture %}
  {% capture email_body %} 
    {% if fulfillment.tracking_numbers.size > 0 %}
      {% if fulfillment.tracking_numbers.size == 1 %}
        Tracking number: <a href="{{ fulfillment.tracking_url }}">{{ fulfillment.tracking_numbers.first }}</a>
      {% elsif fulfillment.tracking_numbers.size == 1 %}
        Tracking number: {{ fulfillment.tracking_numbers.first }}
      {% else %}
        Tracking numbers:<br />
        {% for tracking_number in fulfillment.tracking_numbers %}
          {{ tracking_number }}<br />
        {% endfor %}
      {% endif %}
    {% endif %}
  <br/><br/>You can track your orders here: <br/>
Metro Manila || <a href=“”></a> <br/>
Provincial || <a href=“ ”></a><br/><br/> {% endcapture %}


Shopify Expert
10196 137 1923

I would suggest you look at the quotes you have around the order tracking urls. Compare yours to the one further up for the tracking number. See the difference?

You'd want to use these:


not smart quotes like:


 Small but important difference.

If that still fails once you've adjusted that, post again.

I jump on these forums to help and share some insights. Not looking to be hired, and not looking for work.

Don't hand out staff invites or give admin password to forum members unless absolutely needed. In most cases the help you need can be handled without that.

★ ★
11 0 1

Ohh I see! I didn't notice that. Thank so much! It works properly now Appreciate the response!