Post by keithdarr » Wed Dec 06, 2023 6:21 am

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.
Last edited by keithdarr on Fri Dec 08, 2023 7:18 am, edited 2 times in total.

New member

Posts

Joined
Wed Nov 29, 2023 12:54 pm
Location - Minneapolis, Minnesota, US

Post by paulfeakins » Wed Dec 06, 2023 7:10 pm

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;"

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by keithdarr » Wed Dec 06, 2023 10:59 pm

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.

New member

Posts

Joined
Wed Nov 29, 2023 12:54 pm
Location - Minneapolis, Minnesota, US

Post by keithdarr » Thu Dec 07, 2023 7:14 am

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.

New member

Posts

Joined
Wed Nov 29, 2023 12:54 pm
Location - Minneapolis, Minnesota, US

Post by keithdarr » Thu Dec 07, 2023 8:27 am

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.

New member

Posts

Joined
Wed Nov 29, 2023 12:54 pm
Location - Minneapolis, Minnesota, US
Who is online

Users browsing this forum: No registered users and 3 guests