Need help editing Return Approved email notification

Hi,

I am trying to edit the Return Approved email notification and have the order number appear in a specific spot. It appears at the top right, which is fine, but I also want it in the return information.

In the below, I want it to appear where it says “Return #####”

<!DOCTYPE html>
<html lang="en">
{%- assign return_delivery_first = return.deliveries | first -%}
{%- assign public_file_url = return_delivery_first.return_label.public_file_url -%}
{%- assign has_label_attached = public_file_url != blank and public_file_url.size > 0 -%}
{%- assign has_tracking_number = return_delivery_first.tracking_number -%}
{% if order.customer_order_url %}
  {%- assign order_details_url = order.customer_order_url -%}
{% else %}
  {%- assign order_details_url = order.order_status_url -%}
{% endif %}
<head>
  <title>{{ email_title }}</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta name="viewport" content="width=device-width">
  <link rel="stylesheet" type="text/css" href="/assets/notifications/styles.css">
  <style>
    .button__cell { background: {{ shop.email_accent_color }}; }
    .actions-buttons .button__cell--primary { background-color: {{ shop.email_accent_color }}; }
    a, a:hover, a:active, a:visited { color: {{ shop.email_accent_color }}; }
  </style>
</head>

<body>
  <table class="body">
    <tr>
      <td>
        <table class="header row">
  <tr>
    <td class="header__cell">
      <center>

        <table class="container">
          <tr>
            <td>

              <table class="row">
                <tr>
                  <td class="shop-name__cell">
                    {%- if shop.email_logo_url %}
                      <img src="{{shop.email_logo_url}}" alt="{{ shop.name }}" width="{{ shop.email_logo_width }}">
                    {%- else %}
                      <h1 class="shop-name__text">
                        <a href="{{shop.url}}">{{ shop.name }}</a>
                      </h1>
                    {%- endif %}
                  </td>

                    <td>
                      <table class="order-po-number__container">
                        <tr>
                          <td class="order-number__cell">
                            <span class="order-number__text">
                              Order {{ order.name }}
                            </span>
                          </td>
                        </tr>
                        {%- if po_number %}
                            <tr>
                              <td class="po-number__cell">
                                <span class="po-number__text">
                                  PO number #{{ po_number }}
                                </span>
                              </td>
                            </tr>
                        {%- endif %}
                      </table>
                    </td>
                </tr>
              </table>

            </td>
          </tr>
        </table>

      </center>
    </td>
  </tr>
</table>

        <table class="row content">
  <tr>
    <td class="content__cell">
      <center>
        <table class="container">
          <tr>
            <td>
              
          <h2>Your return was approved</h2>
          <p class="return-approved__body">
            {% if return_delivery_first %}
              {% if has_label_attached %}
                Print your return shipping label and attach it to the package containing your return items.
              {% else %}
                {% if return_delivery_first.type == 'shopify_label' and return.order_total_outstanding > 0 %}
                  Your return was approved and a balance is due. Pay the outstanding balance, and once you receive your return shipping label, follow the instructions to complete your return.                    
                {% else %}
                  We sent you a return shipping label, or you will receive one soon. Once you receive your return shipping label, follow the instructions to complete your return.
                {% endif %}
              {% endif %}
            {% else %}
<p>Below is the return information for you. </p>
<p>Please include a copy of this e-mail in with the return and use a trackable 
shipping method (e.g., UPS Ground).<br>
<br>
Return #####<br>
<br>
Our return policy can be found in the following section of our website.<br>
<br>
pages/atlantic-jet-sports-return-and-exchange-policy<br>
<br>
Please pack the return well so that nothing is damaged in shipping.<br>
<br>
****** IMPORTANT: Please do not place address labels on the item box or package. 
If the box that the item came in is defaced, it can not be returned.</p>
            {% endif %}

You can pull the order number dynamically using the same variable Shopify is already using at the top of the template.

Replace this:

Return #####

with this:

Return {{ order.name }}

So that section becomes:

<p>
Return {{ order.name }}<br>
</p>

That should automatically display the actual order number inside the return information section instead of the placeholder text.

One thing to watch though is that some return notification templates use return.name instead of order.name depending on how the return was created, so it may be worth testing both variables in preview mode.

Looking at your template, you just need to replace the ##### placeholder with the Liquid variable for the order name. In Shopify, the order number is available as {{ order.name }}.

Find this line:

Return #####<br>

And replace it with:

Return {{ order.name }}<br>

If it doesn’t match, can you send a screenshot of a sample email?

It might be using the different liquid variable which is {{ po_number }}

Thank you!!! I spent hours today trying to figure it out

Glad you got it sorted! Shopify’s notification templates can be a little confusing at first since they use separate Liquid variables from the actual theme files.

Easy thing to miss if you haven’t worked with the email templates much before.