Links not working in Confirmation Emails

JWC
New Member
10 0 0

Hello community!

I would like links included in the order confirmation email, with specific links showing depending on the product ordered. A client just notified me their email didn't contain the link. Below is a section of the html...anyone see any corrections I can make?

Thanks so much for any assistance!

 

{% capture email_title %}Thank you for your purchase! {% endcapture %}
{% capture email_body %}
{% if requires_shipping %}
Hi {{ customer.first_name }}, we're getting your order ready to be shipped. Please keep in mind all competition suits are custom made. Since suits are not pre-stocked, time is needed to create your suit custom to your measurements.
<br>
<br> You can find your measurement sheet(s) below.
<br>

{% assign show_PDF_link = false %}
{% for line in subtotal_line_items %}
{% for collection in line.product.collections %}
{% if collection.title == 'Bodybuilding Posing Trunks' %}
{% assign show_PDF_link = true %}
{% endif %}
{% endfor %}
{% endfor %}
{% if show_PDF_link == true %}
<p><a href="https://www.jwcouture.ca/pages/bodybuilding-measurement-sheet">Click here to find your Bodybuilding Posing Trunks measurement sheet.</a></p>
{% endif %}

{% assign show_PDF_link = false %}
{% for line in subtotal_line_items %}
{% for collection in line.product.collections %}
{% if collection.title == 'Classic Physique Trunks' %}
{% assign show_PDF_link = true %}
{% endif %}
{% endfor %}
{% endfor %}
{% if show_PDF_link == true %}
<p><a href="https://www.jwcouture.ca/pages/classic-physique-measurement-sheet">Click here to find your Classic Physique measurement sheet.</a></p>
{% endif %}

{% assign show_PDF_link = false %}
{% for line in subtotal_line_items %}
{% for collection in line.product.collections %}
{% if collection.title contains 'Bikini Suit' %}
{% assign show_PDF_link = true %}
{% endif %}
{% endfor %}
{% endfor %}
{% if show_PDF_link == true %}
<p><a href="https://www.jwcouture.ca/pages/bikini-measurement-sheet">Click here to find your Bikini Suit measurement sheet.</a></p>
{% endif %}

{% assign show_PDF_link = false %}
{% for line in subtotal_line_items %}
{% for collection in line.product.collections %}
{% if collection.title contains 'Figure & Women's Physique Suit' %}
{% assign show_PDF_link = true %}
{% endif %}
{% endfor %}
{% endfor %}
{% if show_PDF_link == true %}
<p><a href="https://www.jwcouture.ca/pages/figure-womens-physique-measurement-sheet">Click here to find your Figure or Women's Physique Suit measurement sheet.</a></p>
{% endif %}

{% assign show_PDF_link = false %}
{% for line in subtotal_line_items %}
{% for collection in line.product.collections %}
{% if collection.title contains 'Bikini Wellness Suit' %}
{% assign show_PDF_link = true %}
{% endif %}
{% endfor %}
{% endfor %}
{% if show_PDF_link == true %}
<p><a href="https://www.jwcouture.ca/pages/figure-womens-physique-measurement-sheet">Click here to find your Bikini Wellness Suit measurement sheet.</a></p>
{% endif %}

<br>
<br> Thank you for your order and we will notify you when it has been sent.
<br>

{% endif %}
{% endcapture %}

0 Likes

copy this exact code into a text editor that doesn't  format anything (basically all text) or if you have Visual Studio Pro, Atom or other editor.

DELETE the code from shopify's email template - so it is blank

wait about 5 mins.

COPY your code from the text or editor as it is.

PASTE it into the html template  and SAVE.

Then send yourself a test email and see if this works.

The reason it may not be working is there may be "ghosts" in the code.  When you pasted your code here in the forum (could just be an error) but I noticed it was also adding the link to <Click          

Just a thought.

James Byrne, Owner, Information Architect (USMC VET)
After Dark Grafx - Since 1992
"We Work After Dark, So You Don't Have To!"
https://www.afterdarkgrafx.com

Services: Website Design, Mobile App Development (iOS, Android, Windows), Ecommerce, Magento, Shopify, Miva, BigCommerce, Search Engine Optimization, Wordpress, Hosting, Graphic Design, Merchant Accounts, Consulting and all things web related!

Certified Partner/Developer/Affiliates: Shopify, Google Integrator, Wordpress, Zoho, AuthorizeNet, Geotrust and a Member of the San Diego Regional Chamber of Commerce, Veteran Owned Businesses, Veteran's In Business Network.

I also build custom apps for Shopify!
JWC
New Member
10 0 0

Thanks for the reply! I didn't notice the Click issue, but see it now. I'll give what you said a try.

0 Likes
LitExtension
Shopify Partner
696 71 124

Hi @JWC

You can add me as a staff. I'll check and give you the best solution in this case.

LitExtension - Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Are you looking for a solution to migrate to Shopify? Contact us for further assistance.
Try our FREE DEMO now!
0 Likes
JWC
New Member
10 0 0

For those who might be following along, unfortunately, the approach of clearing/re-pasting the code didn't work.

 

Thanks for the suggestion though! Appreciate the time.

0 Likes