Liquid, JavaScript, themes, sales channels
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
Does it work, if you add spaces?
--> {{ fulfillment.tracking_url }}
I think the liquid variable is fulfillment.tracking_urls , not .url
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024