Why isn't my email_body text appearing in my notification email?

Hello,

Can someone help me figure out why the email_body text is not showing up in my Notification Email (see image in attached PPT file?

I don’t know HTML but I thought I was making a simple addition.

Thank you,

Oliver

{% if fulfillment.item_count == item_count %}
{% capture email_title %}Your order has been delivered{% endcapture %}
{% capture email_body %}It’s time to boil your kettle or warm-up your coffee machine. Your order has been delivered.

We want to thank you again for purchasing our coffee and let you know that 3.21% of the price you paid is being directed to supporting people with Down syndrome. Do you know why 3.21%? People with Down syndrome have 3 copies of their 21st chromosome which contributes to their uniqueness. Our financial contribution helps fund life enriching supports.



Track your shipment to see the delivery status.{% endcapture %}
{% elsif fulfillment.item_count > 1 %}
{% if fulfillment_status == ‘fulfilled’ %}
{% capture email_title %}The last items in your order have been delivered{% endcapture %}
{% capture email_body %}The last items in your order have been delivered. Track your shipment to see the delivery status.{% endcapture %}
{% else %}
{% capture email_title %}Some items in your order have been delivered{% endcapture %}
{% capture email_body %}Some items in your order have been delivered. Track your shipment to see the delivery status.{% endcapture %}
{% endif %}
{% else %}
{% if fulfillment_status == ‘fulfilled’ %}
{% capture email_title %}The last item in your order has been delivered{% endcapture %}
{% capture email_body %}The last item in your order has been delivered. Track your shipment to see the delivery status.{% endcapture %}
{% else %}
{% capture email_title %}One item in your order has been delivered{% endcapture %}
{% capture email_body %}One item in your order has been delivered. Track your shipment to see the delivery status.{% endcapture %}
{% endif %}
{% endif %}

Hi @OliverW

Maybe I suggest code below

{% if fulfillment.item_count == item_count %}
	{% capture email_title %}Your order has been delivered{% endcapture %}
	{% capture email_body %}
		It's time to boil your kettle or warm-up your coffee machine. Your order has been delivered.
		
 We want to thank you again for purchasing our coffee and let you know that 3.21% of the price you paid is being directed to supporting people with Down syndrome. Do you know why 3.21%? People with Down syndrome have 3 copies of their 21st chromosome which contributes to their uniqueness. Our financial contribution helps fund life enriching supports.
		

		
Track your shipment to see the delivery status.
	{% endcapture %}
{% elsif fulfillment.item_count > 1 %}
	{% if fulfillment_status == 'fulfilled' %}
		{% capture email_title %}The last items in your order have been delivered{% endcapture %}
		{% capture email_body %}
			It's time to boil your kettle or warm-up your coffee machine. Your order has been delivered.
			
 We want to thank you again for purchasing our coffee and let you know that 3.21% of the price you paid is being directed to supporting people with Down syndrome. Do you know why 3.21%? People with Down syndrome have 3 copies of their 21st chromosome which contributes to their uniqueness. Our financial contribution helps fund life enriching supports.
			

			

			The last items in your order have been delivered. Track your shipment to see the delivery status.
			{% endcapture %}
	{% else %}
		{% capture email_title %}Some items in your order have been delivered{% endcapture %}
		{% capture email_body %}
			It's time to boil your kettle or warm-up your coffee machine. Your order has been delivered.
			
 We want to thank you again for purchasing our coffee and let you know that 3.21% of the price you paid is being directed to supporting people with Down syndrome. Do you know why 3.21%? People with Down syndrome have 3 copies of their 21st chromosome which contributes to their uniqueness. Our financial contribution helps fund life enriching supports.
			

			

			Some items in your order have been delivered. Track your shipment to see the delivery status.
		{% endcapture %}
	{% endif %}
{% else %}
	{% if fulfillment_status == 'fulfilled' %}
		{% capture email_title %}The last item in your order has been delivered{% endcapture %}
		{% capture email_body %}
			It's time to boil your kettle or warm-up your coffee machine. Your order has been delivered.
			
 We want to thank you again for purchasing our coffee and let you know that 3.21% of the price you paid is being directed to supporting people with Down syndrome. Do you know why 3.21%? People with Down syndrome have 3 copies of their 21st chromosome which contributes to their uniqueness. Our financial contribution helps fund life enriching supports.
			

			

			The last item in your order has been delivered. Track your shipment to see the delivery status.
		{% endcapture %}
	{% else %}
		{% capture email_title %}One item in your order has been delivered{% endcapture %}
		{% capture email_body %}
			It's time to boil your kettle or warm-up your coffee machine. Your order has been delivered.
			
 We want to thank you again for purchasing our coffee and let you know that 3.21% of the price you paid is being directed to supporting people with Down syndrome. Do you know why 3.21%? People with Down syndrome have 3 copies of their 21st chromosome which contributes to their uniqueness. Our financial contribution helps fund life enriching supports.
			

			

			One item in your order has been delivered. Track your shipment to see the delivery status.
		{% endcapture %}
	{% endif %}
{% endif %}

Hello and thank you very much for your help. I added in your code but the ‘body’ text is still not showing up in the email.

I wonder if there’s a separate setting in Shopify that omits body text in a Shipping Confirmation email.

Oliver

Hi @OliverW

It seems we have a mistake here. Your screenshot is the deliveried email. It’s not the shipping confirmation email. Could you recheck?

I’m sorry, I made a mistake in my email. I meant to say “Shipping Delivered”. That’s where I’ve added the code that isn’t showing the ‘body’ text in the email (screenshot).

Oliver

Hi @OliverW

You can refer the screenshot below to add code


{{ email_body }} 

Thank you very much. It worked and I learn something.

Cheers!