Post by 3PO2017 » Sat Jun 16, 2018 1:55 am

OC Version 3.0.2
My store have a white logo so its not visible in email , i try to add a different logo but its not working.

<div style="width: 680px;"><a href="{{ store_url }}" title="{{ store_name }}"><img src="{{ HTTP_IMAGE }}/image/catalog/emlogo.png" width="100px" height="auto" alt="{{ store_name }}" style="margin-bottom: 20px; border: none;" /></a>


I also tried older solution available on forum and marketplace but no luck.
Please help.

New member

Posts

Joined
Fri Feb 24, 2017 10:27 pm

Post by IP_CAM » Sat Jun 16, 2018 7:23 am

<img src="{{ HTTP_IMAGE }}/image/...
well, is this really the correct link ? I guess, if should rather be:

Code: Select all

<img src="{{ HTTP_IMAGE }}/catalog/... 
Ernie

I'm rarely active at the OC Forum lately. To reach me, contact: jti@jacob.ch
A Demoversion of my free OpenCart LIGHT v.1.5.6.5 Software Edition
can be seen in real Action here: http://www.jti.li/shop/
---
1'300+ FREE OC Extension-Repositories - from OC v.1.5.x up,
on the world's largest OC-related Github Site: https://github.com/IP-CAM
---
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by 3PO2017 » Sat Jun 16, 2018 3:49 pm

IP_CAM wrote:
Sat Jun 16, 2018 7:23 am
<img src="{{ HTTP_IMAGE }}/image/...
well, is this really the correct link ? I guess, if should rather be:

Code: Select all

<img src="{{ HTTP_IMAGE }}/catalog/... 
Ernie
Thank you for reply.
i changed url as you suggested but yet same.

<div style="width: 680px;"><a href="{{ store_url }}" title="{{ store_name }}"><img src="{{ HTTP_IMAGE }}/catalog/emlogo.png" width="100px" height="auto" alt="{{ store_name }}" style="margin-bottom: 20px; border: none;" /></a>

New member

Posts

Joined
Fri Feb 24, 2017 10:27 pm

Post by sw!tch » Sun Jun 17, 2018 2:00 am

Some options to consider.

1. Pay someone to create a simple OCmod for you this would take not even 10 minutes to do.

2. You have to define $variables through the controller, you can't just paste constants into twig files.

3. It's not proper, but in your case if you are not running a multi-store just hardcode the full image URL into the twig template. src="https://domian.com/path/to/my/image.jpg"

Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm
Who is online

Users browsing this forum: No registered users and 94 guests