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

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


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"

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

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

Users browsing this forum: Semrush [Bot] and 154 guests