How do I change the email background color in order confirmations?

HI,

I AM TRYING TO CHANGE THE BACKGROUND COLOR FOR THE ORDER CONFIRMATION AND THE REST OF THE EMAILS WHICH IS SEND OUT. I DONT KNOW WHICH HTML I SHOULD ADD - OR WHERE TO ADD IT. I WO

ANYBODY WHO CAN HELP ME WITH THIS? :slightly_smiling_face:

BEST NANNA

1 Like

@NF2021

Welcome to the Shopify community!
and Thanks for your Good question.

Please share your code,
So I will check and provide a solution here.

1 Like

Hi @KetanKumar

Thanks. What code are you talking about? I have added the HTML below. :slightly_smiling_face:

{% capture email_title %}Tak for dit køb! {% endcapture %}
{% capture email_body %}
{% if requires_shipping %}
{% case delivery_method %}
{% when ‘pick-up’ %}
Du modtager en e-mail, nĂĽr din ordre er klar til afhentning.
{% when ‘local’ %}
Hej {{ customer.first_name }}! Vi er ved at gøre din ordre klar til levering.
{% else %}
Hej {{ customer.first_name }}! Vi er ved at gøre din ordre klar til afsendelse. Vi giver dig besked, nür den er blevet sendt.
{% endcase %}
{% if delivery_instructions != blank %}

Leveringsoplysninger: {{ delivery_instructions }}

{% 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 %}
Ordre {{ order_name }}

{{ email_title }}

{{ email_body }}

{% if order_status_url %}
Se din ordre
{% if shop.url %}
eller Besøg vores butik
{% endif %}

{% else %}
{% if shop.url %}

Besøg vores butik
{% endif %}

{% endif %}

{% assign gift_card_line_item = line_items | where: “gift_card” %}
{% if gift_card_line_item.first %}

Gavekort

Du modtager separate e-mails for eventuelle gavekort.

{% endif %}

Ordreoversigt

{% 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 %}
Refunderet
{% 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 %}

{% if line.original_line_price != line.final_line_price %} {{ line.original_line_price | money }} {% endif %}

{% if line.final_line_price > 0 %} {{ line.final_line_price | money }} {% else %} Gratis {% endif %}

{% for discount_application in discount_applications %} {% if discount_application.target_selection == 'all' %} {% capture discount_title %} {% if discount_application.title %} {{ discount_application.title | upcase }} {% else %} Rabat {% endif %} {% endcapture %}

{% endif %}
{% endfor %}

{% if delivery_method == ‘pick-up’ %}

{% else %}

{% endif %}

{% if current_total_duties %}

{% endif %}

{% if total_tip and total_tip > 0 %}

{% endif %}

Rabat {{ discount_title }}

-{{ discount_application.total_allocated_amount | money }}

Subtotal

{{ subtotal_price | money }}

Afhentning

{{ shipping_price | money }}

Levering

{{ shipping_price | money }}

Told

{{ current_total_duties | money }}

Afgifter

{{ tax_price | money }}

Tip

{{ total_tip | money }}

I alt

{{ total_price | money_with_currency }}

{% if total_discounts > 0 %}

Du har sparet {{ total_discounts | money }}

{% endif %}

{% assign transaction_size = 0 %}
{% assign transaction_amount = 0 %}
{% for transaction in transactions %}
{% unless transaction.kind == “capture” or transaction.kind == “void” %}
{% assign transaction_size = transaction_size | plus: 1 %}
{% assign transaction_amount = transaction_amount | plus: transaction.amount %}
{% endunless %}
{% endfor %}

{% if transaction_size > 1 or transaction_amount < total_price %}

{% for transaction in transactions %}
{% if transaction.status == “success” and transaction.kind == “authorization” or transaction.kind == “sale” %}
{% if transaction.payment_details.credit_card_company %}
{% capture transaction_name %}{{ transaction.payment_details.credit_card_company }} (der slutter med {{ transaction.payment_details.credit_card_last_four_digits }}){% endcapture %}
{% else %}
{% capture transaction_name %}{{ transaction.gateway_display_name }}{% endcapture %}
{% endif %}

{% endif %}
{% if transaction.kind == ‘refund’ %}
{% if transaction.payment_details.credit_card_company %}
{% assign refund_method_title = transaction.payment_details.credit_card_company %}
{% else %}
{% assign refund_method_title = transaction.gateway %}
{% endif %}

{% endif %}
{% endfor %}

{{transaction_name}}

{{ transaction.amount | money }}

Refunder
{{ refund_method_title | capitalize }}

- {{ transaction.amount | money }}
{% endif %}

Kundeinformation

{% if requires_shipping and shipping_address %} {% endif %} {% if billing_address %} {% endif %}

Leveringsadresse

{{ shipping_address | format_address }}

Faktureringsadresse

{{ billing_address | format_address }}
{% if requires_shipping and shipping_address %} {% endif %} {% assign transaction_count = transactions | size %} {% if transaction_count > 0 %} {% endif %}

Leveringsmetode

{{ shipping_method.title }}

Betalingsmetode

{% for transaction in transactions %} {% if transaction.status == "success" or transaction.status == "pending" %} {% if transaction.kind == "authorization" or transaction.kind == "sale" %} {% if transaction.payment_details.credit_card_company %}

slutter med {{ transaction.payment_details.credit_card_last_four_digits }} — {{ transaction.amount | money }}

{% elsif transaction.gateway_display_name == "Gift card" %}

slutter med {{ transaction.payment_details.gift_card.last_four_characters | upcase }} — {{ transaction.amount | money }}
Gavekortsaldo: {{ transaction.payment_details.gift_card.balance | money }}

{% else %}

{{ transaction.gateway_display_name }} — {{ transaction.amount | money }}

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

Hvis du har spørgsmül, kan du besvare denne e-mail eller kontakte os pü {{ shop.email }}

1 Like

@NF2021

Thanks

can you please try this code

{% capture email_title %}Tak for dit køb! {% endcapture %}
{% capture email_body %}
  {% if requires_shipping %}
  {% case delivery_method %}
      {% when 'pick-up' %}
        Du modtager en e-mail, nĂĽr din ordre er klar til afhentning.
      {% when 'local' %}
        Hej {{ customer.first_name }}! Vi er ved at gøre din ordre klar til levering.
      {% else %}
        Hej {{ customer.first_name }}! Vi er ved at gøre din ordre klar til afsendelse. Vi giver dig besked, nür den er blevet sendt.
    {% endcase %}
      {% if delivery_instructions != blank  %}
        

**Leveringsoplysninger:** {{ delivery_instructions }}

      {% endif %}
  {% endif %}
{% endcapture %}
 

  
  
  
  
  
  

 
  
    <table>

      
        
          <table>

 
  
    
      
 
        <table>

          
            
 
              <table>

                <tr>

                  <td>

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

</td>

 
                    <td>

                      
                        Ordre {{ order_name }}
                      
                    

</td>

                </tr>

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

  
    
      
        <table>

          
            
              
            ## {{ email_title }}
            

{{ email_body }}

            {% if order_status_url %}
              <table>

  <tr>

    <td>

 

</td>

  </tr>

  
    
      <table>

        <tr>

          <td>

Se din ordre

</td>

        </tr>

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

      <tr>

        <td>

eller Besøg vores butik

</td>

      </tr>

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

      
        
          <table>

            <tr>

              <td>

Besøg vores butik

</td>

            </tr>

          </table>
        
      
    </table>
{% endif %}
 
            {% endif %}
 
            
          
        </table>
      
    
  
</table>
 
          {% assign gift_card_line_item = line_items | where: "gift_card" %}
          {% if gift_card_line_item.first %}
            <table>

  
    
      
        <table>

          <tr>

            <td>

              ### Gavekort
            

</td>

          </tr>

        </table>
        <table>

          <tr>

            <td>

              
              

 Du modtager separate e-mails for eventuelle gavekort.

 
            

</td>

          </tr>

        </table>
      
    
  
</table>
          {% endif %}
 
          <table>

  
    
      
        <table>

          <tr>

            <td>

              ### Ordreoversigt
            

</td>

          </tr>

        </table>
        <table>

          
            
              
            

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

    
      <table>

        <td>

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

</td>

        <td>

          {% 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 %}
            Refunderet
          {% 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>

          
            {% if line.original_line_price != line.final_line_price %}
              <del>{{ line.original_line_price | money }}</del>
            {% endif %}
            

              {% if line.final_line_price > 0 %}
                {{ line.final_line_price | money }}
              {% else %}
                Gratis
              {% endif %}
            

          
      </table>
    
  </table>
 
            <table>

  
    <td>

</td>

    
      
        {% for discount_application in discount_applications %}
          {% if discount_application.target_selection == 'all' %}
            {% capture discount_title %}
              {% if discount_application.title %}
                {{ discount_application.title | upcase }}
              {% else %}
                Rabat
              {% endif %}
            {% endcapture %}
            

 
          {% endif %}
        {% endfor %}
 
        

 
        {% if delivery_method == 'pick-up' %}
          

 
        {% else %}
          

 
        {% endif %}
 
        {% if current_total_duties %}
          

 
        {% endif %}
 
        

 
 
        {% if total_tip and total_tip > 0 %}
          

 
        {% endif %}
      <table>
<tr>

  <td>

    

      Rabat
        
          
          {{ discount_title }}
        
    

  

</td>

  <td>

    **-{{ discount_application.total_allocated_amount | money }}**
  

</td>

</tr>
<tr>

  <td>

    

      Subtotal
    

  

</td>

  <td>

    **{{ subtotal_price | money }}**
  

</td>

</tr>
<tr>

  <td>

    

      Afhentning
    

  

</td>

  <td>

    **{{ shipping_price | money }}**
  

</td>

</tr>
<tr>

  <td>

    

      Levering
    

  

</td>

  <td>

    **{{ shipping_price | money }}**
  

</td>

</tr>
<tr>

  <td>

    

      Told
    

  

</td>

  <td>

    **{{ current_total_duties | money }}**
  

</td>

</tr>
<tr>

  <td>

    

      Afgifter
    

  

</td>

  <td>

    **{{ tax_price | money }}**
  

</td>

</tr>
<tr>

  <td>

    

      Tip
    

  

</td>

  <td>

    **{{ total_tip | money }}**
  

</td>

</tr>
</table>
      <table>

        
<tr>

  <td>

    

      I alt
    

  

</td>

  <td>

    **{{ total_price | money_with_currency }}**
  

</td>

</tr>

 
      </table>
 
      {% if total_discounts > 0 %}
        

          Du har sparet {{ total_discounts | money }}
        

      {% endif %}
 
      {% assign transaction_size = 0 %}
      {% assign transaction_amount = 0 %}
      {% for transaction in transactions %}
        {% unless transaction.kind == "capture" or transaction.kind == "void" %}
          {% assign transaction_size = transaction_size | plus: 1 %}
          {% assign transaction_amount = transaction_amount | plus: transaction.amount %}
        {% endunless %}
      {% endfor %}
 
      {% if transaction_size > 1 or transaction_amount < total_price %}
        
 
          {% for transaction in transactions %}
            {% if transaction.status == "success" and transaction.kind == "authorization" or transaction.kind == "sale" %}
              {% if transaction.payment_details.credit_card_company %}
                {% capture transaction_name %}{{ transaction.payment_details.credit_card_company }} (der slutter med {{ transaction.payment_details.credit_card_last_four_digits }}){% endcapture %}
              {% else %}
                {% capture transaction_name %}{{ transaction.gateway_display_name }}{% endcapture %}
              {% endif %}
 
              

 
            {% endif %}
            {% if transaction.kind == 'refund' %}
              {% if transaction.payment_details.credit_card_company %}
                {% assign refund_method_title = transaction.payment_details.credit_card_company %}
              {% else %}
                {% assign refund_method_title = transaction.gateway %}
              {% endif %}
 
              

 
            {% endif %}
          {% endfor %}
        <table>

          <tr>
<td colspan="2">

</td>
</tr>

          <tr>
<td colspan="2">

</td>
</tr>
<tr>

  <td>

    

      {{transaction_name}}
    

  

</td>

  <td>

    **{{ transaction.amount | money }}**
  

</td>

</tr>

  
    

      Refunder
        

        <small>{{ refund_method_title | capitalize }}</small>
    

  
  
    **- {{ transaction.amount | money }}**
  
</table>
      {% endif %}
    
  
</table>
 
 
            
          
        </table>
      
    
  
</table>
 
          <table>

  
    
      
        <table>

          <tr>

            <td>

              ### Kundeinformation
            

</td>

          </tr>

        </table>
        <table>

          
            
              
            
                {% if requires_shipping and shipping_address %}
                
                {% endif %}
                {% if billing_address %}
                
                {% endif %}
              <table>

              <tr>
<td>

                  #### Leveringsadresse
                  {{ shipping_address | format_address }}
                

</td>
<td>

                  #### Faktureringsadresse
                  {{ billing_address | format_address }}
                

</td>
</tr>

            </table>
            
                {% if requires_shipping and shipping_address %}
                
                {% endif %}
                {% assign transaction_count = transactions | size %}
                {% if transaction_count > 0 %}
                
                {% endif %}
              <table>

              <tr>
<td>

                  #### Leveringsmetode
                  

{{ shipping_method.title }}

                

</td>
<td>

                  #### Betalingsmetode
                  {% for transaction in transactions %}
                    {% if transaction.status == "success" or transaction.status == "pending" %}
                      {% if transaction.kind == "authorization" or transaction.kind == "sale" %}
                        {% if transaction.payment_details.credit_card_company %}
                            

                              
                              slutter med {{ transaction.payment_details.credit_card_last_four_digits }} — **{{ transaction.amount | money }}**
                            

                          {% elsif transaction.gateway_display_name == "Gift card" %}
                          

                            
                          slutter med {{ transaction.payment_details.gift_card.last_four_characters | upcase }} — **{{ transaction.amount | money }}** 

                                Gavekortsaldo: {{ transaction.payment_details.gift_card.balance |  money }}
                          

                          {% else %}
                              

                              {{ transaction.gateway_display_name }} — **{{ transaction.amount | money }}**
                              

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

</td>
</tr>

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

  
    
      
        <table>

          <tr>

            <td>

              
              

Hvis du har spørgsmül, kan du besvare denne e-mail eller kontakte os pü [{{ shop.email }}](mailto:{{ shop.email }})

            

</td>

          </tr>

        </table>
      
    
  
</table>
 

 
        
      
    </table>
  

2 Likes

@KetanKumar Thank you. It works.

Can you help me with the font-color? I would like all of it to be dark blue?

1 Like

@NF2021

it’s depends on your color i can’t see this view

1 Like

Hi @KetanKumar

Can the font color be #1C355E ?

Thanks.

1 Like

@NF2021

yes, please share your email screenshot how do you look now

@KetanKumar

Please see screenshot of the email now - I would like all text to be dark blue as the logo.

@NF2021

can you please add me on staff so i will check one by one font color and fix

Hi @NF2021 ,
Not sure if this one has been solved for you, but you might want to check out our app Spently, https://apps.shopify.com/spently. Spently allows you to easily change the styling of all of the store notifications that Shopify sends on your behalf. Bonus, it allows you to add recommended products or a discount code to drive a repeat purchase too!

If you have any questions you can always reach us at support@spentlyhq.com

Many thanks!

Roddy

Hi I’m trying to change the background color on my email notifications. The color changes fine on the preview when I adjust the code per the above, but when I send an actual test email or test order the background is still white. Here is the code i’m using:

{% 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.
{% endcase %}
{% if delivery_instructions != blank %}

Delivery information: {{ delivery_instructions }}

{% endif %} {% if consolidated_estimated_delivery_time %}

Estimated delivery {{ consolidated_estimated_delivery_time }}

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

{{ shop.name }}

{%- endif %}
Order {{ order_name }}

{{ email_title }}

{{ email_body }}

{% assign transaction_count = transactions | size %} {% if transaction_count > 0 %} {% for transaction in transactions %} {% if transaction.show_buyer_pending_payment_instructions? %}

{{transaction.buyer_pending_payment_notice}}

{% for instruction in transaction.buyer_pending_payment_instructions %} {% endfor %} {% for instruction in transaction.buyer_pending_payment_instructions %} {% endfor %}
{{ instruction.header }}Amount
{{ instruction.value }}{{transaction.amount | money}}

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

{% if order_status_url %}

 
View your order
{% if shop.url %}
or Visit our store
{% endif %}

{% else %}
{% if shop.url %}

Visit our store
{% endif %}

{% endif %}

{% assign gift_card_line_item = line_items | where: “gift_card” %}
{% if gift_card_line_item.first %}

Gift card

You’ll receive separate emails for any gift cards.

{% endif %}

Order summary

{% 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 %}

{% if line.original_line_price != line.final_line_price %} {{ line.original_line_price | money }} {% endif %}

{% if line.final_line_price > 0 %} {{ line.final_line_price | money }} {% else %} Free {% endif %}

{% for discount_application in discount_applications %} {% if discount_application.target_selection == 'all' %} {% capture discount_title %} {% if discount_application.title %} {{ discount_application.title | upcase }} {% else %} Discount {% endif %} {% endcapture %}

{% endif %}
{% endfor %}

{% if delivery_method == ‘pick-up’ %}

{% else %}

{% endif %}

{% if total_duties %}

{% endif %}

{% if total_tip and total_tip > 0 %}

{% endif %}

Discount {{ discount_title }}

-{{ discount_application.total_allocated_amount | money }}

Subtotal

{{ subtotal_price | money }}

Pickup

{{ shipping_price | money }}

Shipping

{{ shipping_price | money }}

Duties

{{ total_duties | money }}

Taxes

{{ tax_price | money }}

Tip

{{ total_tip | money }}
{% assign transaction_size = 0 %} {% assign transaction_amount = 0 %} {% for transaction in transactions %} {% unless transaction.kind == "capture" or transaction.kind == "void" %} {% assign transaction_size = transaction_size | plus: 1 %} {% assign transaction_amount = transaction_amount | plus: transaction.amount %} {% endunless %} {% endfor %} {% if payment_terms %} {% assign due_at_date = payment_terms.next_payment.due_at | date: "%b %d, %Y" %}
{% else %}

{% endif %}

Total paid today

{{ transaction_amount | money_with_currency }}

Total due {{ due_at_date }}

{{ payment_terms.next_payment.amount_due | money_with_currency }}

Total

{{ total_price | money_with_currency }}

{% if total_discounts > 0 %}

You saved {{ total_discounts | money }}

{% endif %}

{% unless payment_terms %}
{% if transaction_size > 1 or transaction_amount < total_price %}

{% for transaction in transactions %}
{% if transaction.status == “success” and transaction.kind == “authorization” or transaction.kind == “sale” %}
{% if transaction.payment_details.credit_card_company %}
{% capture transaction_name %}{{ transaction.payment_details.credit_card_company }} (ending in {{ transaction.payment_details.credit_card_last_four_digits }}){% endcapture %}
{% else %}
{% capture transaction_name %}{{ transaction.gateway_display_name }}{% endcapture %}
{% endif %}

{% endif %}
{% if transaction.kind == ‘refund’ %}
{% if transaction.payment_details.credit_card_company %}
{% assign refund_method_title = transaction.payment_details.credit_card_company %}
{% else %}
{% assign refund_method_title = transaction.gateway %}
{% endif %}

{% endif %}
{% endfor %}

{{transaction_name}}

{{ transaction.amount | money }}

Refund
{{ refund_method_title | capitalize }}

- {{ transaction.amount | money }}
{% endif %} {% endunless %}

Customer information

{% if requires_shipping and shipping_address %} {% endif %} {% if billing_address %} {% endif %}

Shipping address

{{ shipping_address | format_address }}

Billing address

{{ billing_address | format_address }}
{% if requires_shipping and shipping_address %} {% endif %} {% assign transaction_count = transactions | size %} {% if transaction_count > 0 %} {% endif %}

Shipping method

{{ shipping_method.title }}

Payment method

{% for transaction in transactions %} {% if transaction.status == "success" or transaction.status == "pending" %} {% if transaction.kind == "authorization" or transaction.kind == "sale" %} {% if transaction.payment_details.credit_card_company %}

{{ transaction.payment_details.credit_card_company }} ending with {{ transaction.payment_details.credit_card_last_four_digits }}

{% elsif transaction.gateway_display_name == "Gift card" %}

ending with {{ transaction.payment_details.gift_card.last_four_characters | upcase }}
    Gift card balance: {{ transaction.payment_details.gift_card.balance | money }}

{% else %}

{{ transaction.gateway_display_name }}

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

If you have any questions, reply to this email or contact us at {{ shop.email }}

1 Like

@mhn234

oh sorry for that issue i can see its work my demo store

where exactly do you insert this code? cant find any sections with that code, pls help me, thx

1 Like

@pViet

oh sorry for that issue can you please send store url

https://vietcoffeelab.myshopify.com/