images not visible in order status email

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

images not visible in order status email

Post 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

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

Re: images not visible in order status email

Post 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
User avatar
Angelo.pe
Phoca Professional
Phoca Professional
Posts: 140
Joined: 02 May 2020, 12:42

Re: images not visible in order status email

Post 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
jpeters
Phoca Professional
Phoca Professional
Posts: 225
Joined: 31 Dec 2020, 09:46

Re: images not visible in order status email

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: images not visible in order status email

Post 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
If you find Phoca extensions useful, please support the project
User avatar
Angelo.pe
Phoca Professional
Phoca Professional
Posts: 140
Joined: 02 May 2020, 12:42

Re: images not visible in order status email

Post by Angelo.pe »

Hello, I tried with full url but doesn't work :-(
jpeters
Phoca Professional
Phoca Professional
Posts: 225
Joined: 31 Dec 2020, 09:46

Re: images not visible in order status email

Post by jpeters »

Can you forward me the mail message as attachment..
I sent you PM with mail details
jpeters
Phoca Professional
Phoca Professional
Posts: 225
Joined: 31 Dec 2020, 09:46

Re: images not visible in order status email

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: images not visible in order status email

Post by Jan »

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: 33
Joined: 15 Dec 2020, 11:21

Re: images not visible in order status email

Post 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.
Post Reply