Page 1 of 1

[SOLVED] - Image at Top of Desktop Email Sales Receipt Too Large - opencart-logo.png

Posted: Wed Dec 06, 2023 6:21 am
by keithdarr
I am having problems changing the size of the image that is sent out as a header on my email receipts. This only is affecting my desktop email. The opencart-logo.png look great on the emails when I look at it on the mobile. I believe that the file that I believe is being sent out in my email receipts is image/catalog/opencart-logo.png and I have been messing around with that image with no success. It is the only image of the same name that is my emails and in my directory tree.

I have been trying to mess with catalog/view/template/mail/order_alert.twig

I thought that the following would be the area that I need to mess with/. I tried to add a border to the image but didn't have any results:

{% if logo %}
<a href="{{ store_url }}" title="{{ store_name }}"><img src="{{ logo }}" alt="{{ store_name }}" style="margin-bottom: 20px; border: double;"/></a>
{% else %}


The problem is a MacOS Mail app related issue. When I go to gmail.google.com the logo image looks correctly and when I run my Windows Outlook it looks right too. It looks right in iPhone Mail app.

Re: Image at Top of Desktop Email Sales Reciept Too Large - opencart-logo.png

Posted: Wed Dec 06, 2023 7:10 pm
by paulfeakins
keithdarr wrote:
Wed Dec 06, 2023 6:21 am
<a href="{{ store_url }}" title="{{ store_name }}"><img src="{{ logo }}" alt="{{ store_name }}" style="margin-bottom: 20px; border: double;"/></a>
Maybe add to the style attribute something like:

Code: Select all

style="margin-bottom: 20px; border: double; width: 100px;"

Re: Image at Top of Desktop Email Sales Reciept Too Large - opencart-logo.png

Posted: Wed Dec 06, 2023 10:59 pm
by keithdarr
No change. Size is still large on Mac Mail. And No border is being shown; even when I use a different mail client. Gmail.google.com looks good; size wise, but there is no border. I really thought that would do the trick.

Re: Image at Top of Desktop Email Sales Reciept Too Large - opencart-logo.png

Posted: Thu Dec 07, 2023 7:14 am
by keithdarr
I clearly don't know which image is being sent out for an email receipt. I thought it was the opencart-logo.png file that is the same image found on my homepage. But I changed it and my email receipt didn't change. The email reciept was the same image and the same x-large size.

I have been thinking the email header image is image/catalog/opencart-logo.png which is the image at my homepage header.

Re: Image at Top of Desktop Email Sales Reciept Too Large - opencart-logo.png

Posted: Thu Dec 07, 2023 8:27 am
by keithdarr
I don't know why, but it started working correctly. I don't know if there was an image that is cached or something. But it is working now. I have no solution.