[Skip to main content](#vessel-content)

#   Order Creation Notification email image display

##

- **[bmm01](/forum/user/14439-bmm01 "View bmm01's Profile")**
- [![bmm01's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14439-bmm01 "View bmm01's Profile") Topic Author
- [ Offline](/forum/user/14439-bmm01)

Less More

- Posts: 107
- Thank you received: 8
-
-

12 years 7 months ago [\#153356](#153356) by [bmm01](/forum/user/14439-bmm01 "View bmm01's Profile")  *[Order Creation Notification email image display](/forum/35-orders-management/867667-order-creation-notification-email-image-display#153356 "-- url of the page with the problem -- :   midwest.testme.co  -- HikaShop Business version -- : 2.3.0 12 avril 2014 -- Joomla version -- : 3.2 -- PHP version -- : 5.3 -- Browser(s) name and version -- : N/A -- Error-message(debug-mod must be tuned on) -- : N/A -- Email client: Outlook 2010  When I force SSL in the checkout (option YES), my Order Creation Notification email does not display images as the image source path is https  Is there a solution for this? I would like to include my logo as the header image. It works fine if force SSL is set to NO but I need SSL.  Thanks and regards Brett")* was created by *[bmm01](/forum/user/14439-bmm01 "View bmm01's Profile")*

-- url of the page with the problem -- : [ midwest.testme.co](http://midwest.testme.co)
-- HikaShop Business version -- : 2.3.0 12 avril 2014
-- Joomla version -- : 3.2
-- PHP version -- : 5.3
-- Browser(s) name and version -- : N/A
-- Error-message(debug-mod must be tuned on) -- : N/A
-- Email client: Outlook 2010

When I force SSL in the checkout (option YES), my Order Creation Notification email does not display images as the image source path is https

Is there a solution for this? I would like to include my logo as the header image. It works fine if force SSL is set to NO but I need SSL.

Thanks and regards
Brett

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2NzY2Ny1vcmRlci1jcmVhdGlvbi1ub3RpZmljYXRpb24tZW1haWwtaW1hZ2UtZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 7 months ago [\#153428](#153428) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Order Creation Notification email image display](/forum/35-orders-management/867667-order-creation-notification-email-image-display#153428 "-- url of the page with the problem -- :   midwest.testme.co  -- HikaShop Business version -- : 2.3.0 12 avril 2014 -- Joomla version -- : 3.2 -- PHP version -- : 5.3 -- Browser(s) name and version -- : N/A -- Error-message(debug-mod must be tuned on) -- : N/A -- Email client: Outlook 2010  When I force SSL in the checkout (option YES), my Order Creation Notification email does not display images as the image source path is https  Is there a solution for this? I would like to include my logo as the header image. It works fine if force SSL is set to NO but I need SSL.  Thanks and regards Brett")*

Hi,

I think that you will have to edit the email via the menu System &gt; Emails, then in the preload part, add the code: Code:

$image = str_replace('https','http',$image);

Just before: Code:

$cartProduct['PRODUCT_IMG'] = '&lt;img src="'.$image.'" alt="" style="float:left;margin-top:3px;margin-bottom:3px;margin-right:6px;"/&gt;';

To add you logo, you can easily add an img tag in the html version of the email.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2NzY2Ny1vcmRlci1jcmVhdGlvbi1ub3RpZmljYXRpb24tZW1haWwtaW1hZ2UtZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[bmm01](/forum/user/14439-bmm01 "View bmm01's Profile")**
- [![bmm01's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14439-bmm01 "View bmm01's Profile") Topic Author
- [ Offline](/forum/user/14439-bmm01)

Less More

- Posts: 107
- Thank you received: 8
-
-

12 years 7 months ago [\#153775](#153775) by [bmm01](/forum/user/14439-bmm01 "View bmm01's Profile")  Replied by *[bmm01](/forum/user/14439-bmm01 "View bmm01's Profile")* on topic *[Order Creation Notification email image display](/forum/35-orders-management/867667-order-creation-notification-email-image-display#153775 "-- url of the page with the problem -- :   midwest.testme.co  -- HikaShop Business version -- : 2.3.0 12 avril 2014 -- Joomla version -- : 3.2 -- PHP version -- : 5.3 -- Browser(s) name and version -- : N/A -- Error-message(debug-mod must be tuned on) -- : N/A -- Email client: Outlook 2010  When I force SSL in the checkout (option YES), my Order Creation Notification email does not display images as the image source path is https  Is there a solution for this? I would like to include my logo as the header image. It works fine if force SSL is set to NO but I need SSL.  Thanks and regards Brett")*

Thanks Xavier

I tried this but it is not working.

I changed the Pre-load code to:

if(!empty($item-&gt;images[0]-&gt;file_path) &amp;&amp; $config-&gt;get('thumbnail', 1) != 0) {
$img = $imageHelper-&gt;getThumbnail($item-&gt;images[0]-&gt;file_path, array(50, 50), array('forcesize' =&gt; true, 'scale' =&gt; 'outside'));
if($img-&gt;success) {
if(substr($img-&gt;url, 0, 3) == '../')
$image = str_replace('../', HIKASHOP_LIVE, $img-&gt;url);
else
$image = substr(HIKASHOP_LIVE, 0, strpos(HIKASHOP_LIVE, '/', 9)) . $img-&gt;url;
$image = str_replace('https','http',$image);
$cartProduct = '&lt;img src="'.$image.'" alt="" style="float:left;margin-top:3px;margin-bottom:3px;margin-right:6px;"/&gt;';
}
}

It's still generating the email as:

&lt;table class="w600" style="font-family:Arial, Helvetica, sans-serif;font-size:12px;line-height:18px;margin:auto;background-color:#ebebeb;" border="0" cellspacing="0" cellpadding="0" width="600" align="center"&gt;
&lt;tr style="line-height: 0px;"&gt;
&lt;td class="w600" style="line-height:0px" width="600" valign="bottom"&gt;
&lt;img class="w600" src="[ midwest.testme.co/media/com\_hikashop/images/mail/header.png](https://midwest.testme.co/media/com_hikashop/images/mail/header.png)" border="0" alt="Thanks for your order from MidWest Meats" /&gt;
&lt;/td&gt;
&lt;/tr&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2NzY2Ny1vcmRlci1jcmVhdGlvbi1ub3RpZmljYXRpb24tZW1haWwtaW1hZ2UtZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 6 months ago [\#153849](#153849) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Order Creation Notification email image display](/forum/35-orders-management/867667-order-creation-notification-email-image-display#153849 "-- url of the page with the problem -- :   midwest.testme.co  -- HikaShop Business version -- : 2.3.0 12 avril 2014 -- Joomla version -- : 3.2 -- PHP version -- : 5.3 -- Browser(s) name and version -- : N/A -- Error-message(debug-mod must be tuned on) -- : N/A -- Email client: Outlook 2010  When I force SSL in the checkout (option YES), my Order Creation Notification email does not display images as the image source path is https  Is there a solution for this? I would like to include my logo as the header image. It works fine if force SSL is set to NO but I need SSL.  Thanks and regards Brett")*

Hi,

Ok the modification given was for the product images, for your needs, thanks to replace: Code:

&lt;img class="w600" src="{VAR:LIVE_SITE}media/com_hikashop/images/mail/header.png" border="0" alt="" /&gt;

By: Code:

&lt;?php $live = str_replace('https','http',HIKASHOP_LIVE); ?&gt; &lt;img class="w600" src="&lt;?php echo $live; ?&gt;media/com_hikashop/images/mail/header.png" border="0" alt="" /&gt;

You can do this customization for each images in the emails.

The following user(s) said Thank You: [bmm01](/forum/user/14439-bmm01 "View bmm01's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2NzY2Ny1vcmRlci1jcmVhdGlvbi1ub3RpZmljYXRpb24tZW1haWwtaW1hZ2UtZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[bmm01](/forum/user/14439-bmm01 "View bmm01's Profile")**
- [![bmm01's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14439-bmm01 "View bmm01's Profile") Topic Author
- [ Offline](/forum/user/14439-bmm01)

Less More

- Posts: 107
- Thank you received: 8
-
-

12 years 6 months ago [\#153941](#153941) by [bmm01](/forum/user/14439-bmm01 "View bmm01's Profile")  Replied by *[bmm01](/forum/user/14439-bmm01 "View bmm01's Profile")* on topic *[Order Creation Notification email image display](/forum/35-orders-management/867667-order-creation-notification-email-image-display#153941 "-- url of the page with the problem -- :   midwest.testme.co  -- HikaShop Business version -- : 2.3.0 12 avril 2014 -- Joomla version -- : 3.2 -- PHP version -- : 5.3 -- Browser(s) name and version -- : N/A -- Error-message(debug-mod must be tuned on) -- : N/A -- Email client: Outlook 2010  When I force SSL in the checkout (option YES), my Order Creation Notification email does not display images as the image source path is https  Is there a solution for this? I would like to include my logo as the header image. It works fine if force SSL is set to NO but I need SSL.  Thanks and regards Brett")*

Hi Xavier

Fantastic - that's fixed the issue and it's looking really good now.

I added the same code for the Footer.

Thanks
Brett

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2NzY2Ny1vcmRlci1jcmVhdGlvbi1ub3RpZmljYXRpb24tZW1haWwtaW1hZ2UtZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.062 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
