We have tried to edit the code of the order confirmation sent to include unqiue text by product tag. In essence we need to ensure customers are aware that the goods will not be delivered to their home address but will be collection from a venue. There are two products that this applies to. I have added the code following previous instructions but the text does not appear at all. Can anyone help please? (code below for reference):
{% capture email_title %}Thank you for your purchase! {% endcapture %}
{% capture email_body %}
{% if requires_shipping %}
{% case delivery_method %}
{% when ‘pick-up’ %}
You’ll receive an email when your order is ready for pickup.
{% when ‘local’ %}
Hi {{ customer.first_name }}, we’re getting your order ready for delivery.
{% else %}
Hi {{ customer.first_name }}, we have received your order.
{% for line in line_items %}
{% for tag in product.tags %}
{% if tag contains ‘UCLphoto’ %}
UNIQUE TEXT HERE
{% else %}
{% if tag contains ‘UCLphotofull’ %}
OTHER UNIQUE TEXT HERE
{% endif %}
{% else %}
If gown hire is required for a certain date and you have not informed us, please email immediately so we can do our best to meet your requirements.
Please note we are operating Monday - Thursday, therefore any orders placed Thursday - Sunday will not be dispatched until the Monday. Please allow at least 1 working day for deliveries. We will notify you when your order has been dispatched.
{% capture email_title %}Thank you for your purchase! {% endcapture %}
{% capture email_body %}
{% if requires_shipping %}
{% case delivery_method %}
{% when 'pick-up' %}
You’ll receive an email when your order is ready for pickup.
{% when 'local' %}
Hi {{ customer.first_name }}, we're getting your order ready for delivery.
{% else %}
Hi {{ customer.first_name }}, we're getting your order ready to be shipped. We will notify you when it has been sent.
{% for line in line_items %}
{% for tag in line.product.tags %}
{% if tag == 'TAG_ONE' %}
{% capture text %}
UNIQUE TEXT HERE
{% endcapture %}
{% elsif tag == 'TAG_TWO' %}
{% capture text %}
OTHER UNIQUE TEXT HERE
{% endcapture %}
{% else %}
{% capture text %}
If gown hire is required for a certain date and you have not informed us, please email immediately so we can do our best to meet your requirements.
Please note we are operating Monday - Thursday, therefore any orders placed Thursday - Sunday will not be dispatched until the Monday. Please allow at least 1 working day for deliveries. We will notify you when your order has been dispatched.
{% endcapture %}
{% endif %}
{% endfor %}
{% endfor %}
{{ text }}
{% endcase %}
{% if delivery_instructions != blank %}
**Delivery information:** {{ delivery_instructions }}
{% endif %}
{% endif %}
{% endcapture %}
Also replace the tag value given as TAG_ONE and TAG_TWO with your tag values.
If helpful then please Like and Accept Solution. Want to modify or custom changes on store Hire me. Feel free to contact me on shopify.dev.34@gmail.com | Shopify Design Changes | Custom Modifications In to Shopify Theme