Skip to content

Fix subcategories images#468

Merged
Hlavtox merged 1 commit intoPrestaShop:developfrom
SharakPL:fix-subcategories
Mar 3, 2023
Merged

Fix subcategories images#468
Hlavtox merged 1 commit intoPrestaShop:developfrom
SharakPL:fix-subcategories

Conversation

@SharakPL
Copy link
Contributor

@SharakPL SharakPL commented Mar 3, 2023

Questions Answers
Description? Use correct image as category thumbnail
Type? bug fix
BC breaks? no
Deprecations? no
Fixed ticket? Fixes #467
Sponsor company ~
How to test? Open category with subcategories available and category thumbnail set.

Before

obraz

After

obraz

Copy link
Contributor

@matthieu-rolland matthieu-rolland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@Hlavtox Hlavtox merged commit 56957f5 into PrestaShop:develop Mar 3, 2023
@Hlavtox
Copy link
Contributor

Hlavtox commented Mar 3, 2023

Thanks Tomek :-)

@SharakPL SharakPL deleted the fix-subcategories branch March 3, 2023 15:13
@PrestaShop PrestaShop deleted a comment Mar 3, 2023
@Hlavtox Hlavtox added this to the Beta milestone Jun 13, 2023
@pawelkierklo
Copy link
Contributor

Where is option to disable images, when categories haven't image? Only injecting .subcategory__image { display: none; } in custom.css ??

@Hlavtox
Copy link
Contributor

Hlavtox commented Feb 13, 2024

@pawelkierklo I was thinking that we could loop the subcategories twice. Find out if all of them have an image, if not, do not render them.

@SharakPL
Copy link
Contributor Author

Showing just the name if there's no image should be enough in this layout. If not, then I suggest loading the logo with lowered opacity as a placeholder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong images used for subcategories

4 participants