Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

category views problem after magento 2.4.4 update #12

Closed
Danieleeffe1 opened this issue Aug 22, 2022 · 2 comments
Closed

category views problem after magento 2.4.4 update #12

Danieleeffe1 opened this issue Aug 22, 2022 · 2 comments

Comments

@Danieleeffe1
Copy link

magento installation 2.4.4
php 7.4
apache 2

dynamics:
updated with composer

problem:
if I enter any category, all the first and second level categories are displayed.

to see the problem reacars at the following address:
problema image categories

@clasteroid
Copy link

clasteroid commented Aug 26, 2022

I encountered the same issues (tons of irrelevant categories show) on 2.4.3 and resolved with the following steps.

Open:
Magepow/Categories/Block/Categories.php

Editing line 141:
Original:
// ->addAttributeToFilter('parent_id', $categoryId)

Revision:
->addAttributeToFilter('parent_id', $categoryId)

I removed "//" which looks like a change made between the last couple versions of this module.
After the change only the relevant sub-categories shown as expected.

Hope this helps or someone can explain why this line was commented out.
Thanks!

@magiccart
Copy link
Contributor

Thanks for report I have updated fix it.

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

No branches or pull requests

3 participants