NF2021
January 21, 2021, 10:11am
1
Hi there,
Is there anybody who can help me change the font color in the order confirmation.
I would like all of the text to be the same color - but I am not sure how to change it in the Liquid.
Anybody who can help me?
Which theme are you using? And what is the link to the order confirmation page?
NF2021
January 21, 2021, 12:39pm
3
Hi @NahinInventoryH
The theme has been changed a lot, but I have attached a picture of the orderconfurmation here and the html is below. I would like all text to be dark blue.
{% 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 }}; }
body {
background-color: #9AB7D2;
}
{%- if shop.email_logo_url %}
{%- else %}
{%- endif %}
Ordre {{ order_name }}
{{ email_title }}
{{ email_body }}
{% if order_status_url %}
{% if shop.url %}
{% endif %}
{% else %}
{% if shop.url %}
{% endif %}
{% endif %}
{% assign gift_card_line_item = line_items | where: âgift_cardâ %}
{% if gift_card_line_item.first %}
Du modtager separate e-mails for eventuelle gavekort.
{% 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 %}
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 %}
{% 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 }}
Inside the style tag of the liquid file, apply this CSS:
table > tr, table > td, table > span, .button__text {
color: blue;
}
You can replace blue with the value of your choice.
NF2021
January 21, 2021, 2:28pm
5
@NahinInventoryH Thanks - can you show me exactly where to put it?