Adding a clickable URL in email confirmation

theamoreorless
Excursionist
14 0 2

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? 

theamoreorless_0-1614311610876.png

 

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=“https://fifthexpress.com/tracking”>fifthexpress.com/tracking</a> <br/>
Provincial || <a href=“https://app.gogoxpress.com/track/ ”>app.gogoxpress.com/track</a><br/><br/> {% endcapture %}

 

Replies 2 (2)

Jason
Shopify Expert
11190 225 2283

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 in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★
theamoreorless
Excursionist
14 0 2

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