- Posts: 220
- Thank you received: 8
Getting the correct link for images in emails
4 years 5 months ago #342001
by Udo
Getting the correct link for images in emails was created by Udo
-- HikaShop version -- : 4.5.0
-- Joomla version -- : 3.10.6
-- PHP version -- : 7.4.28
Hi,
I'm changing the images for headers and footers in my emails to customers.
And I'm confused about the correct way of linking to these images
Should {VAR:LIVE_SITE} be followed by a slash? Or not?
In the email order status notification you use links like {VAR:LIVE_SITE}/media/com_hikashop/images/icons/icon-48-order.png
So I added {VAR:LIVE_SITE}/media/com_hikashop/images/mail/myheader.png
With a slash after {VAR:LIVE_SITE}
But in the email templates you use {VAR:LIVE_SITE}media/com_hikashop/images/mail/header.png
Without a slash after {VAR:LIVE_SITE}
That makes me think that {VAR:LIVE_SITE}media/com_hikashop/images/mail/myheader.png is the correct link to add to the order status notification email.
Please advise.
Udo
-- Joomla version -- : 3.10.6
-- PHP version -- : 7.4.28
Hi,
I'm changing the images for headers and footers in my emails to customers.
And I'm confused about the correct way of linking to these images
Should {VAR:LIVE_SITE} be followed by a slash? Or not?
In the email order status notification you use links like {VAR:LIVE_SITE}/media/com_hikashop/images/icons/icon-48-order.png
So I added {VAR:LIVE_SITE}/media/com_hikashop/images/mail/myheader.png
With a slash after {VAR:LIVE_SITE}
But in the email templates you use {VAR:LIVE_SITE}media/com_hikashop/images/mail/header.png
Without a slash after {VAR:LIVE_SITE}
That makes me think that {VAR:LIVE_SITE}media/com_hikashop/images/mail/myheader.png is the correct link to add to the order status notification email.
Please advise.
Udo
Please Log in or Create an account to join the conversation.
4 years 5 months ago #342002
by nicolas
Replied by nicolas on topic Getting the correct link for images in emails
Hi,
Indeed {VAR:LIVE_SITE} already has a trailing / so it should be without like {VAR:LIVE_SITE}media/com_hikashop/images/mail/header.png
Note that browsers and email clients are quite nice with us as the URLs will still work even with extra /
So for a browser www.hikashop.com/media/com_hikashop/images/mail/header.png or www.hikashop.com//media/com_hikashop/images/mail/header.png will be the same.
Thanks for your feedback. We'll remove the useless / in the emails in the next version of HikaShop.
Indeed {VAR:LIVE_SITE} already has a trailing / so it should be without like {VAR:LIVE_SITE}media/com_hikashop/images/mail/header.png
Note that browsers and email clients are quite nice with us as the URLs will still work even with extra /
So for a browser www.hikashop.com/media/com_hikashop/images/mail/header.png or www.hikashop.com//media/com_hikashop/images/mail/header.png will be the same.
Thanks for your feedback. We'll remove the useless / in the emails in the next version of HikaShop.
The following user(s) said Thank You: Udo
Please Log in or Create an account to join the conversation.
Time to create page: 0.039 seconds