Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
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=“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 %}
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.
Ohh I see! I didn't notice that. Thank so much! It works properly now 🙂 Appreciate the response!
User | RANK |
---|---|
6 | |
4 | |
4 | |
3 | |
3 |