images not visible in order status email

Phoca Cart - complex e-commerce extension
User avatar
Angelo.pe
Phoca Enthusiast
Phoca Enthusiast
Posts: 93
Joined: 02 May 2020, 12:42

images not visible in order status email

Post by Angelo.pe » 04 Mar 2021, 18:51

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

Tags:

jpeters
Phoca Professional
Phoca Professional
Posts: 189
Joined: 31 Dec 2020, 09:46

Re: images not visible in order status email

Post by jpeters » 06 Mar 2021, 10:17

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

User avatar
Angelo.pe
Phoca Enthusiast
Phoca Enthusiast
Posts: 93
Joined: 02 May 2020, 12:42

Re: images not visible in order status email

Post by Angelo.pe » 08 Mar 2021, 11:38

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

jpeters
Phoca Professional
Phoca Professional
Posts: 189
Joined: 31 Dec 2020, 09:46

Re: images not visible in order status email

Post by jpeters » 09 Mar 2021, 15:14

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

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 43983
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: images not visible in order status email

Post by Jan » 09 Mar 2021, 17:49

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
If you find Phoca extensions useful, please support the project

User avatar
Angelo.pe
Phoca Enthusiast
Phoca Enthusiast
Posts: 93
Joined: 02 May 2020, 12:42

Re: images not visible in order status email

Post by Angelo.pe » 10 Mar 2021, 19:28

Hello, I tried with full url but doesn't work :-(

jpeters
Phoca Professional
Phoca Professional
Posts: 189
Joined: 31 Dec 2020, 09:46

Re: images not visible in order status email

Post by jpeters » 10 Mar 2021, 19:36

Can you forward me the mail message as attachment..
I sent you PM with mail details

jpeters
Phoca Professional
Phoca Professional
Posts: 189
Joined: 31 Dec 2020, 09:46

Re: images not visible in order status email

Post by jpeters » 10 Mar 2021, 22:07

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

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 43983
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: images not visible in order status email

Post by Jan » 14 Mar 2021, 12:56

Great, thank you for the info.

Jan
If you find Phoca extensions useful, please support the project

User avatar
David-Spring
Phoca Member
Phoca Member
Posts: 30
Joined: 15 Dec 2020, 11:21

Re: images not visible in order status email

Post by David-Spring » 26 Mar 2021, 21:45

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.

Post Reply