Missing images in shop status emails and PDF attachment

Phoca Cart - complex e-commerce extension
Andreas26188
Phoca Member
Phoca Member
Posts: 10
Joined: 22 Oct 2024, 14:55

Missing images in shop status emails and PDF attachment

Post by Andreas26188 »

Hi,
I am using Joomla 5.2 with Phoca Cart 5.0.0 Beta 79 and Cassiopeia Template. I added the Phoca PDF component and the Phoca PDF Phoca Cart Plugin, and the Phoca PDF Content Plugin.

If a "customer" (we are now learning and setting up) is placing an order, the system should send out a mail with both HTML and PDF versions of the order (or the invoice).
It works fine - but only without the company logo. It is missing BOTH in PDF and the HTML mail (shown as "broken link"), but in the source code of the mail, the image url is pointing to the correct image (a jpeg, which is displayed in the shop). I could even copy that url and open the image in the browser. This is somewhat strange.
This is the HTML code snippet from the mail - I redacted the name and url a bit:

Code: Select all

<td colspan="5">
<div><h1>xxxxxxxxxxxxxxxx Testshop</h1></div>
<div><img class="ph-idnr-header-img" src="https://shoptest.xxxxxxxxxx.de/images/rbk-logo.jpg" /></div>
</td>
Again, the image is online there. It's a valid url.

Here are two screenshots from what I mean:
This is how the mail looks: https://imgur.com/SSbrzla
And this is how the pdf looks: https://imgur.com/5ExOvak

Has anyone a hint where to look at?
thank you so much!
Andy

Tags:
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9435
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Missing images in shop status emails and PDF attachment

Post by Benno »

Hi,
perhaps this thread helps: viewtopic.php?p=181708#p181708

Received Email:
Image

Attached PDF:
Image


Kind regards,
Benno
Andreas26188
Phoca Member
Phoca Member
Posts: 10
Joined: 22 Oct 2024, 14:55

Re: Missing images in shop status emails and PDF attachment

Post by Andreas26188 »

Hi Benno,
nothing of the hints in the thread helped. My logo settings are there where it should be according to your tipp (Cart settimngs, E-Shop-Logo).

I replaced the jpeg logo with a PNG, didn't work.
I resized the PNG to 429px width, didn't work.
Because the whole subdomain is running behind a .htaccess, I linked an other logo file from the non-protected website, didn't work either.
When inserting the logo via built-in function, it shows the path exactly like:

Code: Select all

images/rbk-logo429.png#joomlaImage://local-images/rbk-logo429.png?width=429&height=289
But this (somewhat strange) path works in the backend: The logo is shown there, but unfortunately never in mail and PDF.

I could manually enter the path to a totally different jpeg on another website, also won't work. Not on the order confirmation, the invoice or the packing list - none.

I went to the backend, the order list, and tried the preview from there, the logo is always missing. Looks like a broken path, but where?

Thanks in advance,
Andy
Andreas26188
Phoca Member
Phoca Member
Posts: 10
Joined: 22 Oct 2024, 14:55

Re: Missing images in shop status emails and PDF attachment

Post by Andreas26188 »

Now THAT is strange:
- I changed the logo just for fun to one of the standard Joomla graphics, and I can see it in the preview from the order list:
https://imgur.com/6W8oUYL and clicking the preview buttons:
https://imgur.com/LMBmVYC
But it's neither in the Email nor in the PDF.

I cleared the logo field and entered it into the next field (E-Shop Informations, this content shows below the logo position), the logo is now in the PDF, but still not in the mail. And, far worse, the logo is too far down on the page. Would prefer to see it on top where it belongs.

Edit:
This is the mail in Outlook:
https://imgur.com/rinroTH


In plugins Phoca PDF and Phoca Cart PDF, there is nothing changed apart from top margin.

greetings,
Andy
Andreas26188
Phoca Member
Phoca Member
Posts: 10
Joined: 22 Oct 2024, 14:55

Re: Missing images in shop status emails and PDF attachment

Post by Andreas26188 »

Adding more pics:
The mail attachment in Outlook:
https://imgur.com/67B4Lbz

The preview of the order from the order list:
https://imgur.com/WFd3mSg

The preview of the invoice from the order list:
https://imgur.com/igXxLI5

If opening a PDF from the order list, the logo is still missing:
https://imgur.com/Z9tNNOR

Andy
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9435
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Missing images in shop status emails and PDF attachment

Post by Benno »

Hi,
Edit:
This is the mail in Outlook:
https://imgur.com/rinroTH
Image

Kind regards,
Benno
Andreas26188
Phoca Member
Phoca Member
Posts: 10
Joined: 22 Oct 2024, 14:55

Missing images in shop status emails and PDF attachment

Post by Andreas26188 »

Hi Benno,
no I cannot get the image with right click. I had a look into the HTML source for the mail, and the URL to the picture is correct. Copying the url to the browser is showing the logo.

But I found the solution:
There was a .htaccess because the shop is still in test and evaluation. Your question made me think about ... why were the logo in the backend but never in mail? I dropped the .htaccess (hope no one finding our testing subdomain ...) and bang! the logo appeared in the mail and the PDF correct!

Thank you so much for your help! I am still not understanding why the server side generated pdf would not contain a logo from the same site, but I won't think about too much as the biggest problem is now solved.

Have a nice weekend,
Andy
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9435
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Missing images in shop status emails and PDF attachment

Post by Benno »

You're welcome!

Kind regards,
Benno
Post Reply