fulfillment.tracking_url in page - how to make it work in 'notifications'

CafelatUK
Tourist
7 0 3

Hi there, I would like to insert {{fulfillment.tracking_url}} in an email when I fulfil the order. But no matter how many times I googled and tested, people cannot click into the link. Here are the codes:

<p>{% if fulfillment.item_count == item_count %}
{% capture email_title %}Your order is on the way{% endcapture %}

{% capture email_body %}</p>

<p>Hello {{ customer.first_name }},</p>
<p>We are pleased to inform you that your Cafelat UK order number {{name}} has shipped.</p>
<p>{% if fulfillment.tracking_number %} The tracking number for your order is <strong>{{ fulfillment.tracking_number }}</strong> with {{ shipping_method.title }} via {{ fulfillment.tracking_company }}. Please click <a href=''{{fulfillment.tracking_url}}'' target="_blank"> <b> HERE </b></a>for more tracking information.</a></p>

{% endif %}
{% endcapture %}

I tested without <a href> and the link appears and works. Anyone can suggest how I can solve this issue please? 

Thank you very much.

Kristal 

 

 

Reply 1 (1)
DP_Development
Pathfinder
82 11 17

Does it work, if you add spaces?

--> {{ fulfillment.tracking_url }}

 

Software Engineer and Frontend Developer
Fast, cheap and straightforward solutions! Shall I do this for you? Just send me a message!
Please click on like and "accepted solution" if my answer helped you.