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.
You can find your measurement sheet(s) below.
{% 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 %}
Click here to find your Bodybuilding Posing Trunks measurement sheet.
{% 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 %}
Click here to find your Classic Physique measurement sheet.
{% 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 %}
Click here to find your Bikini Suit measurement sheet.
{% 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 %}
Click here to find your Figure or Women's Physique Suit measurement sheet.
{% 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 %}
Click here to find your Bikini Wellness Suit measurement sheet.
{% endif %}Thank you for your order and we will notify you when it has been sent.
{% endif %}
{% endcapture %}