Why is basic HTML showing in my product title on abandoned checkout emails?

Hello,

I was going through and testing all my email notifications out and noticed that in my Abandoned Checkout email, that some basic html is showing up in my product title. This basic HTML does not appear in the order confirmation and many other email previews. I have studied the code line by line but can’t seem to find any difference in that part of the table body to make the product title appear different. I have added screen shots to help with my issue. You will see some of my code to bold and put a break on a product in my store. Notice the difference highlighted in red between the two images.

ANY HELP MUCH APPRECIATED!!

Thanks

Ben

@diecasthangar

Thanks

can you please share Notification Email code so i will check.

Hello,

Here is the code from the Notification email:

There error in there somewhere. Again, it only works incorrectly in the Abandoned checkout email.

{% capture email_title %}
  {% if item_count == 1 %}
    You left an item in your cart
  {% else %}
    You left items in your cart
  {% endif %}
{% endcapture %}
{% capture email_body %}
  {% if billing_address.first_name %}
    {% if item_count == 1 %}
      Hi {{ billing_address.first_name }}, you added an item to your shopping cart and haven't completed your purchase. You can complete it now while it's still available.
    {% else %}
      Hi {{ billing_address.first_name }}, you added items to your shopping cart and haven't completed your purchase. You can complete it now while they're still available.
    {% endif %}
  {% else %}
    {% if item_count == 1 %}
      Hi, you added an item to your shopping cart and haven't completed your purchase. You can complete it now while it's still available.
    {% else %}
      Hi, you added items to your shopping cart and haven't completed your purchase. You can complete it now while they're still available.
    {% endif %}
  {% endif %}
{% endcapture %}

  
  
  
  
  
  

  
    <table>

      
        
          <table>

  
    
      

        <table>

          
            

              <table>

                <tr>

                  <td>

                    {%- if shop.email_logo_url %}
                      
                    {%- else %}
                      # 
                        {{ shop.name }}
                      
                    {%- endif %}
                  

</td>

                </tr>

              </table>

            
          
        </table>

      
    
  
</table>

          <table>

  
    
      
        <table>

          
            
              
            ## {{ email_title }}
            {% if custom_message != blank %}
              

{{ custom_message }}

            {% else %}
              

{{ email_body }}

            {% endif %}
            <table>

  <tr>

    <td>

 

</td>

  </tr>

  
    
      <table>

        <tr>

          <td>

Items in your cart

</td>

        </tr>

      </table>
      {% if shop.url %}
    <table>

      <tr>

        <td>

or Visit our store

</td>

      </tr>

    </table>
{% endif %}

    
  
</table>

            
          
        </table>
      
    
  
</table>

          <table>

  
    
      
        <table>

          <tr>

            <td>

              ### Complete your purchase
            

</td>

          </tr>

        </table>
        <table>

          
            
              
            

  {% for line in subtotal_line_items %}
  {% endfor %}
<table>

    
      <table>

        <tr>
<td>

          {% if line.image %}
            
          {% endif %}
        

</td>

        <td>

          {% if line.quantity < line.quantity %}
            {% capture line_display %} {{ line.quantity }} of {{ line.quantity }} {% endcapture %}
          {% else %}
            {% assign line_display = line.quantity  %}
          {% endif %}

          {{ line.title }} × {{ line_display }}

          {% if line.variant_title != 'Default Title' %}
            {{ line.variant_title }}

          {% endif %}

            {% if line.refunded_quantity > 0 %}
              Refunded
            {% endif %}

          {% if line.discount_allocations %}
            {% for discount_allocation in line.discount_allocations %}
              {% if discount_allocation.discount_application.target_selection != 'all' %}
                
                  
                  
                    {{ discount_allocation.discount_application.title | upcase }}
                    (-{{ discount_allocation.amount | money }})
                  
                
              {% endif %}
            {% endfor %}
          {% endif %}
        

</td>

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

            
          
        </table>
      
    
  
</table>

          <table>

            
              
                
                  <table>

                    <tr>

                      <td>

                        

Don't want to receive cart reminders from us? Unsubscribe

                      

</td>

                    </tr>

                  </table>
                
              
            
          </table>
          
        
      
    </table>
  

@diecasthangar

Please give your store access. to check this and provide solution. I have sent store access request from our Shopify Partner account.

Can you check my email code? The preview of the email notification is different from the actual one.

{% capture email_title %}
{% if item_count == 1 %}
THE PERFECT ITEM IS STILL IN YOUR CART.
{% else %}
THE PERFECT ITEMS ARE STILL IN YOUR CART.
{% endif %}
{% endcapture %}
{% capture email_body %}
{% if billing_address.first_name %}
{% if item_count == 1 %}
Hi {{ billing_address.first_name }},

This is just a quick courtesy emal to remind you about your cart which will expire soon. Click below to let us transport you right back where you left off!

Use this exclusive discount code “custom5” to save 5% on orders over $180.
{% else %}
Hi {{ billing_address.first_name }},

This is just a quick courtesy emal to remind you about your cart which will expire soon. Click below to let us transport you right back where you left off!

Use this exclusive discount code “custom5” to save 5% on orders over $180.
{% endif %}
{% else %}
{% if item_count == 1 %}
Hi,

This is just a quick courtesy emal to remind you about your cart which will expire soon. Click below to let us transport you right back where you left off!

Use this exclusive discount code “custom5” to save 5% on orders over $180.
{% else %}
Hi,

This is just a quick courtesy emal to remind you about your cart which will expire soon. Click below to let us transport you right back where you left off!

Use this exclusive discount code “custom5” to save 5% on orders over $180.
{% endif %}
{% endif %}
{% endcapture %}

{{ email_title }} .button__cell { background: {{ shop.email_accent_color }}; } a, a:hover, a:active, a:visited { color: {{ shop.email_accent_color }}; }
{%- if shop.email_logo_url %} {{ shop.name }} {%- else %}

{{ shop.name }}

{%- endif %}

{{ email_title }}

{% if custom_message != blank %}

{{ custom_message }}

{% else %}

{{ email_body }}

{% endif %}
{% for line in subtotal_line_items %} {% endfor %}
{% if line.image %} {% endif %} {% if line.product.title %} {% assign line_title = line.product.title %} {% else %} {% assign line_title = line.title %} {% endif %}

{% if line.quantity < line.quantity %}
{% capture line_display %} {{ line.quantity }} of {{ line.quantity }} {% endcapture %}
{% else %}
{% assign line_display = line.quantity %}
{% endif %}
{{ line_title }} × {{ line_display }}

{% if line.variant.title != ‘Default Title’ %}
{{ line.variant.title }}

{% endif %}
{% if line.selling_plan_allocation %}
{{ line.selling_plan_allocation.selling_plan.name }}

{% endif %}
{% if line.refunded_quantity > 0 %}
Refunded
{% endif %}
{% if line.discount_allocations %}
{% for discount_allocation in line.discount_allocations %}
{% if discount_allocation.discount_application.target_selection != ‘all’ %}



{{ discount_allocation.discount_application.title | upcase }}
(-{{ discount_allocation.amount | money }})


{% endif %}
{% endfor %}
{% endif %}

RECLAIM MY CART!
{% if shop.url %}
or Visit our store


If you have any other concerns, please feel free to message us at service@hexgaming.com {% endif %}

Don't want to receive cart reminders from us? Unsubscribe