Thank you, would be really appreciated. Shopify should add a easy section on the main editing with background and text colours in html, it would help a lot.
Still have the problem, still don’t understand where to put the code. I posted a screenshot with the code but I didn’t get any answer. I will keep hoping someone can help…
What do you mean for full code? It is too long to screenshot in one pic. It is not clear from the one I posted? There is not a simple explanation to where to put the colour code? Like for example before or after the “” html code? Why it is so hard to explain this? I appreciate your time dedicate to my issue but we are not going anywhere eheh
yes i need email notification code so i will quick fix this issue
{% 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 %} {% endif %} {% endcapture %} {{ email_title }} .button__cell { background: {{ shop.email_accent_color }}; } a, a:hover, a:active, a:visited { color: {{ shop.email_accent_color }}; }
{% assign gift_card_line_item = line_items | where: “gift_card” %}
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Hi! I am sorry I have been off this site for a few days. Did you figure it out already?
I am pasting some of my code to help you find the location for the color change, just scroll down your code until you find the “” which I find very easy to find in the sea of code ![]()
In my case the color I wanted is that #efe7dd but you can select the color you want from your brand. I hope this helps!
Miriam
thanks for code yes please update this code
{% 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 %}
{% endif %}
{% endcapture %}
<table>
<table>
<table>
<table>
<tr>
<td>
{%- if shop.email_logo_url %}
{%- else %}
#
{{ shop.name }}
{%- endif %}
</td>
<td>
Order {{ 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>
View your order
</td>
</tr>
</table>
{% if shop.url %}
<table>
<tr>
<td>
or Visit our store
</td>
</tr>
</table>
{% endif %}
</table>
{% else %}
{% if shop.url %}
<table>
<table>
<tr>
<td>
Visit our store
</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>
### Gift card
</td>
</tr>
</table>
<table>
<tr>
<td>
You’ll receive separate emails for any gift cards.
</td>
</tr>
</table>
</table>
{% endif %}
<table>
<table>
<tr>
<td>
### Order summary
</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 %}
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>
{% 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 %}
Free
{% 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 %}
Discount
{% 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>
Discount
{{ discount_title }}
</td>
<td>
**-{{ discount_application.total_allocated_amount | money }}**
</td>
</tr>
<tr>
<td>
Subtotal
</td>
<td>
**{{ subtotal_price | money }}**
</td>
</tr>
<tr>
<td>
Pickup
</td>
<td>
**{{ shipping_price | money }}**
</td>
</tr>
<tr>
<td>
Shipping
</td>
<td>
**{{ shipping_price | money }}**
</td>
</tr>
<tr>
<td>
Duties
</td>
<td>
**{{ current_total_duties | money }}**
</td>
</tr>
<tr>
<td>
Taxes
</td>
<td>
**{{ tax_price | money }}**
</td>
</tr>
<tr>
<td>
Tip
</td>
<td>
**{{ total_tip | money }}**
</td>
</tr>
</table>
<table>
<tr>
<td>
Total
</td>
<td>
**{{ total_price | money_with_currency }}**
</td>
</tr>
</table>
{% if total_discounts > 0 %}
You saved {{ 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 }} (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 %}
<table>
<tr>
<td colspan="2">
</td>
</tr>
<tr>
<td colspan="2">
</td>
</tr>
<tr>
<td>
{{transaction_name}}
</td>
<td>
**{{ transaction.amount | money }}**
</td>
</tr>
Refund
<small>{{ refund_method_title | capitalize }}</small>
**- {{ transaction.amount | money }}**
</table>
{% endif %}
</table>
</table>
</table>
<table>
<table>
<tr>
<td>
### Customer information
</td>
</tr>
</table>
<table>
{% if requires_shipping and shipping_address %}
{% endif %}
{% if billing_address %}
{% endif %}
<table>
<tr>
<td>
#### Shipping address
{{ shipping_address | format_address }}
</td>
<td>
#### Billing address
{{ 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>
#### Shipping method
{{ shipping_method.title }}
</td>
<td>
#### 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 %}
ending with {{ transaction.payment_details.credit_card_last_four_digits }} — **{{ transaction.amount | money }}**
{% elsif transaction.gateway_display_name == "Gift card" %}
ending with {{ transaction.payment_details.gift_card.last_four_characters | upcase }} — **{{ transaction.amount | money }}**
Gift card balance: {{ 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>
If you have any questions, reply to this email or contact us at [{{ shop.email }}](mailto:{{ shop.email }})
</td>
</tr>
</table>
</table>
</table>
Thank you so much to have find time to get back to me. I will do it for sure! Thanks again all the best!
Thanks sir.
it’s my pleasure to help us
thanks for the solution you provided, i used the same to update my store background color & its worked.
However, the area around the store logo still White , even though I have changed the store logo photo to PNG.
as shown in the screen shoot , any advice on that?
thanks for update are you sure your logo png?
can you please sent your logo i will check my demo store
Hi @KetanKumar
I also encounter problem like the preview is exactly what I want but test email shows part of the background colour turns white.
Please could you help ammending mine? I attached the code as below. Many thanks.
{% capture email_title %}Your order has been dispatched {% endcapture %}
{% capture email_body %}
Your order is on its way and will arrive soon. Track your shipment to see delivery status.
{% endcapture %}
|
yes its perfect code what’s issue?
It looks perfect in preview but the actual email I send got no change in background colour in main body.
As the screenshot below, only footer has the background colour but in preview it is all filled.
Hi, the background colour is only changed at the preview, but not in real life. What can I do?
I have changed the code as follows:
{{ email_title }} .button__cell { background: {{ shop.email_accent_color }}; } a, a:hover, a:active, a:visited { color: {{ shop.email_accent_color }}; } a, a:hover, a:active, a:visited { color: {{ shop.email_accent_color }}; } body { background-color: #ede6dd; }yes that’s current please try
thanks, but unfortunately it is not working

