Page 1 of 2

images not visible in order status email

Posted: 04 Mar 2021, 18:51
by Angelo.pe
Good evening,
I have a problem when I send the order status e-mail. The two images of the banner and footer are not visible in this email. Instead there is a question mark and a description of the image. The problem occurs both in the mail to the seller and in the mail to the administration.
https://imgur.com/MRYOOJR

Re: images not visible in order status email

Posted: 06 Mar 2021, 10:17
by jpeters
look at the source of the mail message.
is the image using an relative path or full path?
is the image access rights correct and accessable?
how did you add the image to footer and header (screenshot) or stemps

Re: images not visible in order status email

Posted: 08 Mar 2021, 11:38
by Angelo.pe
Hello,
I added the photo using the editor (insert/edit image).
the path is: public_html/images/namefolder/file
ex: https://www.castaldi.biz/images/gestion ... b-1000.jpg

Thank you

Re: images not visible in order status email

Posted: 09 Mar 2021, 15:14
by jpeters
okay.. internally it works with relative path.
in the mail you need to use ful url
https://www.castaldi.biz/images/gestion ... b-1000.jpg

Re: images not visible in order status email

Posted: 09 Mar 2021, 17:49
by Jan
Hi, yes, for now, the full path needs to be used.

I will try to take a look if there is no option to add the same feature like in Phoca Email, where the relative path is checked and the code tries to change it to full path.

Added to feature request list.
https://github.com/PhocaCz/PhocaCart/issues/48
Jan

Re: images not visible in order status email

Posted: 10 Mar 2021, 19:28
by Angelo.pe
Hello, I tried with full url but doesn't work :-(

Re: images not visible in order status email

Posted: 10 Mar 2021, 19:36
by jpeters
Can you forward me the mail message as attachment..
I sent you PM with mail details

Re: images not visible in order status email

Posted: 10 Mar 2021, 22:07
by jpeters
Issue solved.
Website uses JCE editor as default.
JCE editor (wysiwig) removes full path to relative path on save.

3 options to salve
1 use default joomla editor
2 disable relative path in JCE editor condig
3 add full path in jce editor (code view) and safe.

3.. if open and save in wysiwig it changes the path..

Advise. Use default joomla editor

Re: images not visible in order status email

Posted: 14 Mar 2021, 12:56
by Jan
Great, thank you for the info.

Jan

Re: images not visible in order status email

Posted: 26 Mar 2021, 21:45
by David-Spring
Actually, JCE has a very simple setting to add the full path to all inserted images. Go to Components, JCE Editor, Editor Profiles, Default Editor, Editor Parameters tab and change URL conversion from Relative to Absolute. Full URL for images is important for sending any kind of emails with images. This applies not only to Phoca Cart emails but all emails. The only downside to full URLs is if you change the domain name of your website, you will need to go back and re-insert every image as the full URLs will still use the domain name of your old website. In my view, I think it is best not to change your website name or product or article names as this breaks lots of links on your website - not just image links.