• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 04.10.22, 10:09
  • Opened by: Thomas Ullrich
  • Closed by: Anonymous Submitter
  • Closed on:
  • Reason: Not a bug

Ticket #23801 - Category picture and description shows dummy text when empty

Hi there,

I sincerely hope you are fine and in a save place. All my best wishes for a peaceful future in freedom.

I have a little problem regarding the design of a custom category page. If I add the category picture and title, blank contens show the dummy text and picture. In other words: it works fine as long a we fill in text for title and a pic for the category. But if one of both does not exist, the dummy text and picture are shown in Frontend. How can I avoid this?

Current status: I use template 66 category_mh_fullwidth for the frontend and I have removed both category title and picture fields in CE to avoid the dummy text and pic being displayed in those cases where we do not have edited the title and pic. But I want both to be shown in case of edited content, of course. What can I do?

Yours
Thomas

Attachments:

dummy text.jpg (246.5 KiB)

Comments

Fred 04 Oct 2022, 17:31

Hi, Thomas.
First of all I want to thank you, we are safe, so don’t worry.
As for the issue, it’s a major problem. Could you please give me a link where I can see it?

Thomas Ullrich 05 Oct 2022, 11:29

Hi Fred,

good to know you are save. Hope our tanks will be with your army soon. Cannot believe it takes so long. But maybe they ship them without being announced publicly, which would make sense to me.

For me, I can see the dummy picture e.g. here: https://musterheld.net/132-vive-maria

This page looks like the first screen attached on my end - which is very trange as I have replaced the dummy picture (http://musterheld.net/img/cms/promokit/testimonial_bg_1.jpg) by a white 1px stripe, which should solve the trick. If I open the picture link in another tab I can see the white line. So I reckon what I see in the link above is a cached picture. What do you see if you open the link?

However,m even if the picture problem is solved if I add the category description I see the dummy text everywhere, where we do not edit the text manually. I don’t know where to edit this dummy text to make a " " out of it.

Yours
Thomas

   

Attachments:

Fred 08 Oct 2022, 11:08

Open the file

/modules/pkelements/classes/WidgetPkcategoryImage.php

find and remove the line

$settings['category']['image']['large']['url'] = Context::getContext()->shop->getBaseURL().'img/cms/promokit/testimonial_bg_1.jpg';